How ishaanman7898/btc_survivor works
BTC Survivor runs a live, paper-trading population: market events enter through an exchange feed, the engine updates market state and evaluates bots, simulated fills affect bot accounts, and results are persisted for monitoring and analysis. Bot learning and evolutionary replacement are distinct parts of that loop; replay, read-only reports, and the dashboard provide supporting capabilities. The README documents these capabilities; some implementation details and connections are not shown in the excerpts, so uncertain links are omitted.
Main entry points: engine.py Simulation Engine · runner.py Live Runner · store.py SQLite Store · bot.py Bot Learning And Decisions
Components 24
Live Runtime
- Live Runner
src/btc_survivor/runner.py - Configuration
src/btc_survivor/config.py - Host Safety Guard
src/btc_survivor/guard.py - Clock
src/btc_survivor/clock.py - Simulation Engine
src/btc_survivor/engine.py
Market Data
- Exchange Feed
src/btc_survivor/feed/coinbase.py - Order Book
src/btc_survivor/feed/book.py - Candles And Health
src/btc_survivor/feed/candles.py
Learning And Decisions
- Feature Builder
src/btc_survivor/features.py - Forward Labels
src/btc_survivor/labels.py - Feature Standardizer
src/btc_survivor/standardizer.py - Bot Learning And Decisions
src/btc_survivor/bot.py - Neural Model
src/btc_survivor/model.py
Trading And Evolution
- Paper Account
src/btc_survivor/account.py - Simulated Broker
src/btc_survivor/broker.py - Population Evolution
src/btc_survivor/population.py - Deterministic Seeds
src/btc_survivor/seeds.py
Persistence And Insight
- SQLite Store
src/btc_survivor/store.py - Raw Message Recorder
src/btc_survivor/recorder.py - Replay Harness
src/btc_survivor/replay.py - CLI Reports
src/btc_survivor/cli - Read-Only Dashboard
src/btc_survivor/dashboard.py
Other components
- Operator
- Coinbase Public Feed
Connections 31
- Operator → Live Runner: starts run
README.md - Live Runner → Configuration: loads settings
src/btc_survivor/runner.py - Live Runner → Host Safety Guard: checks host
src/btc_survivor/runner.py - Live Runner → Clock: uses time
src/btc_survivor/runner.py - Live Runner → Exchange Feed: creates feed
src/btc_survivor/runner.py - Coinbase Public Feed → Exchange Feed: streams market data
README.md - Exchange Feed → Simulation Engine: delivers events
- Live Runner → Simulation Engine: starts and ticks
src/btc_survivor/runner.py - Live Runner → SQLite Store: opens store
src/btc_survivor/runner.py - Live Runner → Raw Message Recorder: records raw messages
src/btc_survivor/runner.py - Simulation Engine → Order Book: updates and reads
src/btc_survivor/engine.py - Simulation Engine → Candles And Health: uses candle history
src/btc_survivor/engine.py - Simulation Engine → Feature Builder: builds features
src/btc_survivor/engine.py - Simulation Engine → Forward Labels: matures samples
src/btc_survivor/engine.py - Simulation Engine → Feature Standardizer: uses scaling
src/btc_survivor/engine.py - Simulation Engine → Population Evolution: runs population
src/btc_survivor/engine.py - Population Evolution → Bot Learning And Decisions: creates bots
src/btc_survivor/population.py - Population Evolution → Deterministic Seeds: derives seeds
src/btc_survivor/population.py - Bot Learning And Decisions → Neural Model: trains and predicts
src/btc_survivor/bot.py - Bot Learning And Decisions → Paper Account: checks account
src/btc_survivor/bot.py - Simulation Engine → Simulated Broker: schedules and executes
src/btc_survivor/engine.py - Simulated Broker → Order Book: walks book
src/btc_survivor/broker.py - Simulation Engine → SQLite Store: persists results
src/btc_survivor/engine.py - Simulation Engine → Paper Account: updates balances
src/btc_survivor/engine.py - Operator → CLI Reports: requests reports
README.md - CLI Reports → SQLite Store: reads results
- Operator → Read-Only Dashboard: opens dashboard
README.md - Read-Only Dashboard → SQLite Store: queries read-only
src/btc_survivor/dashboard.py - Operator → Replay Harness: runs replay
README.md - Replay Harness → Simulation Engine: replays events
src/btc_survivor/replay.py - Replay Harness → SQLite Store: uses persistence
src/btc_survivor/replay.py