🎯
Decision: Python FastAPI over SvelteKit for Hedge Backend
P3 - LowDecision 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
- ML/Quant Libraries: pandas, ta-lib, scikit-learn work natively in Python
- Backtesting: backtrader is Python-native, no good JS alternatives
- Trading Libraries: alpaca-py is the official SDK
- 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: Wed, Feb 18, 2026, 1:45 AM by bob
Updated: Wed, Feb 18, 2026, 1:45 AM
Last accessed: Wed, Apr 1, 2026, 11:56 PM
ID: 4e93ba85-50ab-4611-8c48-5ed12494ee34