🧠 All Projects
🎯

Decision: Python FastAPI over SvelteKit for Hedge Backend

P3 - Low
Decision Hedge

Python FastAPI chosen for Hedge backend due to superior ML/trading library ecosystem

Decision

Chose Python FastAPI for Hedge backend instead of keeping everything in SvelteKit.

Reasoning

  1. ML/Quant Libraries: pandas, ta-lib, scikit-learn work natively in Python
  2. Backtesting: backtrader is Python-native, no good JS alternatives
  3. Trading Libraries: alpaca-py is the official SDK
  4. Future AI: anthropic/openai SDKs more mature in Python

Tradeoffs

  • Two codebases to maintain (SvelteKit frontend + Python backend)
  • Need tunnel/hosting for Python backend
  • More complex deployment

Hosting Decision

Ubuntu server + Cloudflare Tunnel over Railway:

  • Free (no $5/mo Railway cost)
  • No resource limits
  • Always-on (systemd service)
  • Full control

Created: Tue, Feb 17, 2026, 5:45 PM by bob

Updated: Tue, Feb 17, 2026, 5:45 PM

Last accessed: Sat, Mar 7, 2026, 9:25 PM

ID: 4e93ba85-50ab-4611-8c48-5ed12494ee34