Use this file to discover all available pages before exploring further.
SimGraphBridge writes events from backtests and live trading into the knowledge graph. Backtest outcomes, fills, settlements, regime changes, edge decay, and price moves all become graph facts. Strategies keep context across sessions instead of starting from zero.
fund = FundManager(FundConfig(total_capital=100_000))fund.sim_graph.record_backtest_result(...)fund.sim_graph.strategy_history_for_market("will-x-win")
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.
Edge decay is classified by remaining ratio: under 30% is severe, under 50% is moderate, rest is mild.Settlement also expires active correlated_with and hedges relationships on the settled market.
Backtest results store market_conditions, parameters, events, and regime in their metadata when provided. This lets you compare what conditions a strategy ran under across different time periods.