betting_combat.trading.records
What one decision produces: its record (DecisionRecord: a trade, a shadow trade or a
named no-trade) and its orders (OrderIntent), with the deterministic ids that make a
retry harmless.
Classes
DecisionRecord
OrderIntent
Functions
book_json
book_json(quotes: dict[tuple[str, str], Quote]) -> dict[str, Any]client_order_id
client_order_id(decision: str, venue: str, market_id: str) -> strDeterministic per decision, venue and market: a retry or a relaunch can never submit twice (a decision may buy several markets on one venue).
decision_id
decision_id(card_date: dt.date, fight_id: str, strategy: str, clock_min: int) -> str