Report single-sided traded shares and taker notional by event and market

This commit is contained in:
2026-12-03 05:15:50 +08:00
parent 7fd67e7c8e
commit fae9f26829
9 changed files with 212 additions and 2 deletions
+1
View File
@@ -128,6 +128,7 @@ CREATE TABLE IF NOT EXISTS execution_context (
execution INTEGER PRIMARY KEY, taker_order INTEGER REFERENCES orders(seq)
);
CREATE INDEX IF NOT EXISTS account_orders_history ON orders(account,seq);
CREATE INDEX IF NOT EXISTS market_buy_orders ON orders(market,seq) WHERE side='buy';
CREATE INDEX IF NOT EXISTS fills_by_bid ON fills(bid,seq);
CREATE INDEX IF NOT EXISTS fills_by_ask ON fills(ask,seq);
CREATE INDEX IF NOT EXISTS paired_by_yes ON paired_fills(yes_order,seq);