How rich-hyun/check_bit works
check_bit is a small Bitcoin market-data collector with a FastAPI control and status API and a browser dashboard. The workflow is: an operator starts collection in the dashboard, the API launches the collector, and Upbit trade and order-book messages are combined into CSV rows; the dashboard polls status and can stop collection or request a download. The README documents no additional capabilities. The excerpts show the start path, but stop only clears the API flag and does not stop the WebSocket loop.
Main entry points: main.py FastAPI routes · collector.py Message handler · app.js Dashboard controls · btc_anomaly_dataset.csv BTC dataset
Components 10
Dashboard
- Dashboard controls
app.js
Control API
- FastAPI routes
main.py - Collector thread
main.py - CSV download
main.py
Market collection
- Upbit WebSocket
- Message handler
collector.py - Latest order book
collector.py - Trade row writer
collector.py
Dataset
- BTC dataset
btc_anomaly_dataset.csv
Other components
- Operator
Connections 15
- Operator → Dashboard controls: uses
app.js - Dashboard controls → FastAPI routes: requests status
app.js - Dashboard controls → FastAPI routes: starts collector
app.js - Dashboard controls → FastAPI routes: stops collector
app.js - FastAPI routes → Collector thread: spawns thread
main.py - Collector thread → Message handler: starts collection
main.py - Message handler → Upbit WebSocket: subscribes to
collector.py - Upbit WebSocket → Message handler: sends messages
collector.py - Message handler → Latest order book: updates order book
collector.py - Message handler → Trade row writer: saves trades
collector.py - Trade row writer → Latest order book: reads snapshot
collector.py - Trade row writer → BTC dataset: appends rows
collector.py - FastAPI routes → BTC dataset: counts rows
main.py - FastAPI routes → CSV download: serves file
main.py - CSV download → BTC dataset: reads CSV
main.py