feat(kevin): SA models for bridge audit + backtest persistence
Some checks failed
ci/woodpecker/push/woodpecker Pipeline was canceled

3 tables (kevin_signal_bridge_state, kevin_backtest_runs,
kevin_backtest_trades) all UUID-keyed for consistency with Trade/Position.
KEVIN_STRATEGY_UUID constant pinned for FK joins from Trade.strategy_id.
This commit is contained in:
Viktor Barzin 2026-05-24 00:49:52 +00:00
parent 6636054742
commit 4d40536da7
7 changed files with 367 additions and 0 deletions

View file

11
shared/constants/kevin.py Normal file
View file

@ -0,0 +1,11 @@
"""Constants shared across the Kevin strategy code.
KEVIN_STRATEGY_UUID is the fixed UUID for the seeded `strategies.kevin` row.
Pinning the UUID at code level lets the live bridge, backtest, API filters,
and dashboard all reference the same identity without a runtime lookup.
"""
import uuid
KEVIN_STRATEGY_UUID: uuid.UUID = uuid.UUID("4b8d1c2a-5e7f-4d3b-9a1c-6f8b2e4d7a90")
KEVIN_STRATEGY_NAME: str = "kevin"