Get order stats
Returns order counts for a trailing window, optionally filtered by account. A one-day window uses hourly buckets; longer windows use daily buckets. previous carries the same totals for the window of equal length immediately before this one, which is the baseline a period-over-period change is measured against.
Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Query Parameters
Trading account ID
Required. Which environment the read covers. Resolved to the organization's accounts in that environment, including disabled and deleted ones, since the ledger stores no environment of its own. Rejected with 400 when it disagrees with the account named alongside it.
paper, live Trailing days, clamped to 1 through 90, then to the window the caller's plan grants
Response
Order stats retrieved
x >= 0x >= 0The same counts broken down over the lookback window, oldest bucket first.
Every bucket in the window is present even when nothing happened in it, so the series can be plotted without the caller filling gaps. The top-level counts are the sum of the buckets.
x >= 0x >= 0The same totals for the window of equal length immediately before this one: the 24 hours before the reported 24, the 7 days before the reported 7.
This is the baseline a period-over-period change is measured against.
Deriving one from data alone would only ever compare the window
against itself, which reports a lull in the second half as a fall even
when the window matches the one before it.
x >= 0