Get A Bucketed OHLC Price Series For One Or More Assets
Returns a dense, ascending OHLC candle series per requested asset between from and to, one candle per bucket. Buckets with no ticks are gap-filled: close is carried forward, open/high/low equal that close, and tick_count is 0. The server clamps rather than rejects: a to of 0 or in the future becomes now, and from is raised so the series holds at most 3600 candles. That count is the only size limit, so the widest window scales with the bucket: an hour at 1S, 60 hours at 1M, 150 days at 1H. The effective bounds are echoed on each series. Duplicate assets are deduped; the response holds one series per distinct asset. Match a series to a requested asset by its asset field, never by position: the order is not guaranteed, and the REST surface returns the series sorted by symbol because a repeated query parameter does not keep its order. An unknown symbol in a known class returns an empty series, not an error; an unknown class is rejected.
Query Parameters
Assets in canonical : form (gateway.types.v1.AssetId), e.g. crypto:btc. Repeat the query parameter to request multiple, e.g. ?assets=crypto:btc&assets=crypto:eth. At most 10; duplicates are deduped server-side.
Unix-seconds start of the window. Required. Aligned down to the bucket, and raised when the window would exceed 3600 candles; the effective start is echoed in AssetPriceSeries.from.
Unix-seconds end of the window. 0 or a future value means now. The in-progress bucket is included. A past value is aligned up to 10 s for sub-minute buckets, or to one bucket otherwise; the effective end is echoed in AssetPriceSeries.to.
Candle width. Required; ASSET_PRICE_BUCKET_UNSPECIFIED is rejected.
ASSET_PRICE_BUCKET_1S, ASSET_PRICE_BUCKET_5S, ASSET_PRICE_BUCKET_15S, ASSET_PRICE_BUCKET_1M, ASSET_PRICE_BUCKET_5M, ASSET_PRICE_BUCKET_15M, ASSET_PRICE_BUCKET_1H, ASSET_PRICE_BUCKET_1D Response
Asset price series
One series per distinct requested asset. Match by the asset field, never by position: the order is not guaranteed and REST returns the series sorted by symbol