Commit Graph

49 Commits

Author SHA1 Message Date
00e613e27a Fix: Strip query params from path before signing 2026-03-16 12:12:44 -07:00
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
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
7ba11ecdcb Refactor: Set paper trade notifications to priority 1 2026-03-15 21:19:56 -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
b8f2406622 Fix: SurrealDB update syntax and add orphan checking 2026-03-15 18:39:51 -07:00
684ba9173c Fix: Add open ticker polling for delayed Kalshi results 2026-03-15 18:35:46 -07:00
c4fc90094e Fix: Reset preserves open positions, fixes balance race 2026-03-15 17:58:14 -07:00
0acc63c512 Fix: Normalize result case, settle orphans, add reset 2026-03-15 17:35:43 -07:00
c377c56975 Refactor: Per-strategy isolated balance and PnL 2026-03-15 16:50:34 -07:00
0adcc947ce Feat: Add martingale-alpha coin-flip 3-round strat 2026-03-15 16:50:25 -07:00
647b46d1b8 Fix: Handle dollar-string WS fields, fix orderbook 2026-03-15 15:47:51 -07:00
c2f878b23d Fix: Parse new Kalshi WS dollar-string format 2026-03-15 15:47:45 -07:00
aedb6aeda5 Fix: reduce Kalshi 400/429 spam 2026-03-15 15:34:14 -07:00
eda38cb58e Fix: normalize Surreal query response 2026-03-15 15:06:35 -07:00
d7dabea20f Fix: robust quote/orderbook parsing 2026-03-15 15:06:23 -07:00
3c48e2bd50 Fix: unwrap WS payloads + safer reconnect 2026-03-15 15:06:16 -07:00
1c57c60770 Fix: Harden RSA key env parsing 2026-03-15 14:55:02 -07:00
96f1f9359e Fix: Rank BTC events and expose candidates 2026-03-15 14:54:58 -07:00
d57c0402d1 Fix: Skip empty events and pick tradable market 2026-03-15 14:54:51 -07:00
51177b5b8a Refactor: hardcode series ticker, keep dynamic 2026-03-15 14:42:51 -07:00
6921fb1cdd Fix: empty markets fallback + rotation fix 2026-03-15 14:40:21 -07:00
677050a224 Fix: robust active event discovery 2026-03-15 14:40:15 -07:00
8c76087b6a Fix: make Kalshi API base configurable 2026-03-15 14:40:09 -07:00
d2d742df3b Feat: Add Web Crypto session signing and verification 2026-03-15 14:22:16 -07:00
13904dc641 Feat: ntfy notification helper 2026-03-15 13:09:08 -07:00
95fb54dd5a Feat: SurrealDB client singleton 2026-03-15 13:09:03 -07:00
8c0b750085 Feat: Paper trading engine with virtual balance 2026-03-15 13:08:56 -07:00
0019f088c4 Feat: Threshold strategy — contrarian bet at extremes 2026-03-15 13:08:51 -07:00
491465dbde Feat: Martingale strategy — bets against 70%+ side 2026-03-15 13:08:46 -07:00
72d313f286 Feat: Base strategy interface for all strategies 2026-03-15 13:08:42 -07:00
d1683eaa11 Feat: Market tracker auto-rotates BTC 15m markets 2026-03-15 13:08:36 -07:00
807e065436 Feat: Kalshi WebSocket client for live orderbook 2026-03-15 13:08:30 -07:00
0599b05ffe Feat: Kalshi REST client for markets and orderbook 2026-03-15 13:08:25 -07:00
d8c6bfe24f Feat: Kalshi RSA auth signing for API requests 2026-03-15 13:08:21 -07:00