List All Orders Stats
Orders
List All Orders Stats
Aggregate stats over all open orders matching the same filters as GET /orders/all. Independent of pagination — counts and sums reflect the entire filtered set even at 100k+ rows.
Powers the CRM Orders page KPI tiles, which previously computed from the loaded 200-row page and were wrong at scale. PnL is read from the snapshot column (open_orders.profit) which the PnL engine flushes every 60s; freshness is acceptable for KPI display.
Long/short exposure is in USD via open_orders.exposure_usd (populated by execute_order SP at fill time, frozen).
GET
List All Orders Stats