| Broker | API | Cost | Best For |
|---|---|---|---|
| Alpaca | REST + WebSocket ยท official docs alpaca.markets โ | FREE tier ยท paper API ยท live IEX feed | โ Starting point. Free, clean API, paper-to-live one flag swap. |
| Tradier | REST ยท brokerage tradier.com โ | $10/mo ยท sandbox free | Real options trading. Solid for multi-leg. |
| Polygon | REST + WS ยท data only polygon.io โ | $29-199/mo | Best data feed. Pair with another broker for execution. |
| Interactive Brokers | TWS API ยท complex ibkr.com โ | Pro ยท per-share fees | For large accounts. Most product coverage. Complex setup. |
| Finnhub | WebSocket ยท data only finnhub.io โ | FREE tier | Free real-time US equities. Already wired in settings.html. |
Pick from above. I recommend Alpaca for first-timers โ fully digital, takes ~10 minutes, free paper account immediately, can flip to live with $0 funding requirement.
Apply at alpaca.markets. Click "Sign up", complete KYC (SSN, address), select individual account, accept agreements. Approval is usually instant.
Once logged in, go to: Dashboard โ Paper Trading โ API Keys โ Generate. Copy the Key ID and Secret Key. Save them โ secret won't show again.
For LIVE keys (real money), use Live Trading โ API Keys. Same process. Always use paper first.
Open settings.html. Select provider = Alpaca. Paste your Key ID + Secret. Toggle "Enable Live Feed". Click Save & Connect. Within 30 seconds the data pill in the nav should turn green ("LIVE FEED").
Don't trade yet. Watch Model Results and Autopilot Paper with real-quote data. Real prices may differ from synthetic โ model might re-calibrate. If accuracy holds for a week, you're ready.
Switch to live keys in settings.html. Fund the account with the minimum you can afford to lose โ $500-2000 to start. The model's real win rate may differ from paper by 5-10% due to slippage. Plan accordingly.
First 20 trades: take only โฅ80% confidence calls. Size = 0.5% of account. Re-evaluate after 20.
If first 20 trades are profitable AND match paper hit rate within 5%: scale risk to 1% of account. After 50 trades: 1.5%. Never more than 2% per trade. Use Risk Sizer PRO for exact sizing.
localStorage under bpleone_data_v1.