Commit Graph

136 Commits

Author SHA1 Message Date
4b403e4aba Fix: Use correct Kalshi time_in_force value 2026-03-16 12:02:55 -07:00
b1a442e129 Fix: Use IOC instead of FoK, fix count calc 2026-03-16 11:47:21 -07:00
9577e55c95 Fix: Import kalshiFetch from correct module path 2026-03-16 11:38:38 -07:00
556cdc0ff1 Feat: Export getPositions + getBalance for live 2026-03-16 11:31:45 -07:00
e7198fede5 Feat: Worker runs both paper + live engines 2026-03-16 11:31:35 -07:00
c1bc4750bc Feat: Add nav link to live dashboard 2026-03-16 11:31:26 -07:00
32e1fa31f7 Feat: Full live trading dashboard with toggles 2026-03-16 11:31:15 -07:00
da882a7d46 Refactor: Redirect /dashboard to /dash 2026-03-16 11:31:12 -07:00
72dc03dffd Feat: Login redirects to /dash 2026-03-16 11:31:07 -07:00
3da40a1bf9 Feat: Redirect to /dash after login 2026-03-16 11:31:02 -07:00
7115c0ae08 Feat: Protect live API routes in middleware 2026-03-16 11:30:59 -07:00
1d99902ca3 Feat: Add strategy enable/disable + pause API 2026-03-16 11:30:54 -07:00
9015d0f524 Feat: Add live trades history API endpoint 2026-03-16 11:30:49 -07:00
b92e03370a Feat: Add live state API endpoint 2026-03-16 11:30:44 -07:00
551db9d5bc Feat: Add live trading engine with Kalshi API 2026-03-16 11:30:34 -07:00
3eef181780 Refactor: Reduce default betSize from 2 to 1 2026-03-16 10:45:13 -07:00
d4b2830943 Delete lib/strategies/martingale.js 2026-03-16 10:23:55 -07:00
c649e6fb8f Delete lib/strategies/sniper-reversal.js 2026-03-16 10:23:41 -07:00
fc8565e562 Feat: Auto-load strategies dynamically from folder 2026-03-16 00:33:56 -07:00
29fd889acb Fix: Add mutex lock to prevent trade evaluation race condition during settlement 2026-03-16 00:29:06 -07:00
7ba11ecdcb Refactor: Set paper trade notifications to priority 1 2026-03-15 21:19:56 -07:00
2948312619 Refactor: Register new strategies in worker 2026-03-15 20:44:34 -07:00
caca6d29b6 Feat: Add Don't Doubt Bull strategy 2026-03-15 20:44:13 -07:00
cffb156231 Feat: Add Momentum Rider strategy 2026-03-15 20:44:07 -07:00
f3910603fb Feat: Add Sniper Reversal strategy 2026-03-15 20:44:02 -07:00
4feed18ce0 Feat: Add Bull Dip Buyer strategy 2026-03-15 20:43:40 -07:00
1999377682 Fix: SurrealDB v2 compatible record IDs for trade history 2026-03-15 20:14:08 -07:00
04bd2fada6 Fix: Auto-reconnect to SurrealDB on token expiration 2026-03-15 20:11:56 -07:00
11339a0900 Fix: Explicitly set Surreal record IDs to save history 2026-03-15 20:11:28 -07:00
9f0ff58118 Fix: Prevent bot from placing 100¢ trades with zero profit potential 2026-03-15 18:49:43 -07:00
cf35715302 Fix: Prevent bot from placing 100¢ trades with zero profit potential 2026-03-15 18:49:39 -07:00
bd0811e113 Fix: UI incorrectly marking break-even wins as losses 2026-03-15 18:49:31 -07:00
02651535e6 Fix: Block new trades if strategy has unresolved positions 2026-03-15 18:42:09 -07:00
83ab2830b6 Feat: Add orphan polling task for delayed Kalshi results 2026-03-15 18:39:58 -07:00
b8f2406622 Fix: SurrealDB update syntax and add orphan checking 2026-03-15 18:39:51 -07:00
aa96eac863 Fix: Setup background task to poll delayed results 2026-03-15 18:35:54 -07:00
684ba9173c Fix: Add open ticker polling for delayed Kalshi results 2026-03-15 18:35:46 -07:00
a1c81c8c46 Fix: Block trades/settlements during reset, sync state 2026-03-15 17:58:24 -07:00
c4fc90094e Fix: Reset preserves open positions, fixes balance race 2026-03-15 17:58:14 -07:00
8363c85f38 Refactor: Convert to light mode 2026-03-15 17:36:17 -07:00
23d8df2116 Fix: Light mode, reset btn, history=settled only 2026-03-15 17:36:09 -07:00
3b1c594636 Feat: Protect /api/reset behind auth 2026-03-15 17:36:04 -07:00
eb36190254 Feat: Add paper trading reset endpoint 2026-03-15 17:36:01 -07:00
0bcb9666b0 Fix: Only return settled trades in history 2026-03-15 17:35:57 -07:00
1e04e0c558 Fix: Settle orphans on startup, reset flag, norm result 2026-03-15 17:35:51 -07:00
0acc63c512 Fix: Normalize result case, settle orphans, add reset 2026-03-15 17:35:43 -07:00
9c82b49ed9 Feat: Redirect login to /paper instead of /dashboard 2026-03-15 16:51:47 -07:00
b6b0d990d4 Feat: Placeholder live trading dashboard 2026-03-15 16:51:40 -07:00
32341e76b0 Refactor: Redirect dashboard to /paper for now 2026-03-15 16:51:30 -07:00
5ce2fa6924 Feat: Per-strategy paper dashboard for strat hunting 2026-03-15 16:51:19 -07:00