Get an asset's discount history
Query Parameters
Page size, clamped to [1, 5000]. Default 500. A window holding
more rows than this comes back newest-first with truncated: true and
next_from / next_to cursors for the next, older page (raw samples arrive every
few seconds, so the default 24h window usually needs several pages, or
bucket=1m with limit=1440).
Response
Time series of discount values, newest first (empty when the asset has no samples in the window)
List envelope: { ok, generated_at, count, data: [...] }.
Present only when truncated is true: the EFFECTIVE lower bound of
this window (RFC3339, microsecond, Z), i.e. the from the request
sent or the default it got (now minus 24h). Pass it back as from
with next_to: the default from is Utc::now() - 24h, not
to - 24h, so paging without from keeps from at now-24h and, once
next_to is older than 24h, the request returns 400 invalid_range.