Database
API keys, statistics baseline, maintenance lock and the danger zone live here.
API keys
DB is the source of truth — env values are only used as fallback at boot.
Statistics baseline
Mark the moment a new period of stats should start. Nothing is deleted — KPI and charts simply filter on ts ≥ baseline.
PAPER
current modeNo baseline set — KPI use rolling windows since start.
LIVE
No baseline set — KPI use rolling windows since start.
Maintenance lock
Pauses trading without restarting the bot. Read-only data still flows. Use before a deploy.
ACTIVE
Trading is activeDanger zone
Destructive controls live here. Read each label carefully before clicking.
Wipe paper data
This deletes every simulated trade, position, feed event and PnL snapshot. The action is irreversible.
paper-only