Get order stats
Returns order counts and commission totals in hourly buckets for one day, otherwise daily New York buckets. previous covers the preceding window of equal length. Nonzero unpriced_fill_count means some filled orders lack a configured commission rate, so fees is incomplete.
Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Query Parameters
Trading account ID
Required broker environment. Includes disabled and deleted accounts. A named account must belong to this environment.
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 >= 0See [OrderStatsBucket::fees].
See [OrderStatsBucket::unpriced_fill_count].
x >= 0