Quick Start
What Gets Recorded
From backtests
record_backtest_result writes an outcome fact. If Sharpe is 1.0 or above, an edge_detected fact is added too. record_backtest_failure logs what did not work.From live trading
record_fill (confidence 1.0), record_settlement (also expires stale relationships), record_regime_change, record_edge_decay, record_price_move (expires after 24h).Relationships
link_correlated_markets (expires old correlation first), link_market_to_event (creates event entity if needed), link_hedge_pair.Batch sync
sync_discovery_to_graph bulk-imports Market objects or dicts, links each to its exchange entity.Backtest Recording
min(0.95, max(0.1, 0.3 + 0.4 * min(1.0, n_trades / 50))).
Failures are logged with confidence 0.8:
Live Events
severe, under 50% is moderate, rest is mild.
Settlement also expires active correlated_with and hedges relationships on the settled market.
Relationships
link_correlated_markets expires any existing correlation between the pair before writing the new one.
Context Queries
Batch Sync
id, name, exchange keys.
Pruning
Causal Context
Backtest results storemarket_conditions, parameters, events, and regime in their metadata when provided. This lets you compare what conditions a strategy ran under across different time periods.