How kryptccgit/krytrader works
Krypt Trader is a local-first desktop app for Kalshi market discovery, analysis, and manual or automated trading. Users configure credentials and strategy in the UI, monitor signals or markets, then review positions and results; automation can submit and reconcile orders. The app bridges React through Electron IPC to a Python backend, with SQLite-backed state and external market feeds. README capabilities include 15-minute crypto, scripts and backtests, terminal trading, cross-venue comparison, standing rules, and remote control. Some feature links are documented rather than source-verified, so those edges are dashed.
Main entry points: service.py Python service · crypto15m.py 15-minute crypto · crypto15m_trader.py Crypto executor · trader.py Auto-trader
Components 23
Desktop shell
- App UI
src/App.tsx - UI state
src/state/AppStateProvider.tsx - IPC handlers
electron/ipc.ts - Python service
python/service.py - Settings and keys
electron/system/settings-store.ts
Trading engine
- Auto-trader
python/trader.py - Crypto executor
python/crypto15m_trader.py - Kalshi API
python/kalshi_api.py - Credentials and signing
python/kalshi_auth.py
Trading features
- Whale and momentum scanner
python/scanner.py - 15-minute crypto
python/crypto15m.py - Manual terminal
python/terminal.py - Strategy scripts
python/script_engine.py - Script sandbox
python/script_sandbox.py - Script backtests
python/script_backtest.py - Remote control
python/remote.py - Cross-venue prices
python/crossvenue.py
Persistence and feeds
- Local SQLite
python/db.py - Polymarket feed
python/polymarket_public.py - Crypto feeds
python/spot_ws.py - Kalshi live feed
python/kalshi_ws.py
Other components
- Trader
- Discord or Telegram
Connections 29
- Trader → App UI: uses
- App UI → UI state: renders
src/App.tsx - UI state → IPC handlers: requests data
- IPC handlers → Python service: dispatches
- IPC handlers → Settings and keys: loads settings
electron/ipc.ts - Python service → Whale and momentum scanner: runs
python/service.py - Python service → Auto-trader: runs
python/service.py - Python service → 15-minute crypto: runs
python/service.py - Python service → Crypto executor: runs
python/service.py - Python service → Strategy scripts: runs
python/service.py - Python service → Manual terminal: serves
python/service.py - Python service → Remote control: runs
python/service.py - Python service → Cross-venue prices: runs
python/service.py - Auto-trader → Kalshi API: places orders
python/trader.py - Auto-trader → Local SQLite: reads and writes
python/trader.py - Kalshi API → Credentials and signing: signs requests
python/kalshi_api.py - 15-minute crypto → Kalshi API: reads markets
python/crypto15m.py - 15-minute crypto → Crypto feeds: reads prices
python/crypto15m.py - 15-minute crypto → Kalshi live feed: reads quotes
python/crypto15m.py - Crypto executor → 15-minute crypto: uses signals
python/crypto15m_trader.py - Crypto executor → Kalshi API: places orders
python/crypto15m_trader.py - Crypto executor → Local SQLite: reads and writes
python/crypto15m_trader.py - Strategy scripts → Script sandbox: executes hooks
python/script_engine.py - Strategy scripts → Local SQLite: reads and writes
python/script_engine.py - Script backtests → Script sandbox: runs scripts
python/script_backtest.py - Script backtests → Local SQLite: reads history
python/script_backtest.py - Cross-venue prices → Polymarket feed: compares prices
- Remote control → Discord or Telegram: connects
- Remote control → Auto-trader: requests trades