Get the raw bars
get_barsGet the bars themselves — open, high, low, close and volume at a fixed step — for a stretch of time. Reach for it when the tools above do not shape the data the way you need it: your own measure, your own chart, a window none of them draw. For a moment read against its own history, use get_market_state; for the path around moments as percent from each, use get_price_paths, which is what the searches compare on. asset takes a symbol from list_coverage and step one of its scales — an asset kept at one value a day has only 1d. since and until are UTC ISO-8601 bounds; left out, the whole history at that step comes back, and a stretch too long to serve is refused in those words rather than truncated quietly, so narrow it or take a longer step. BTC at 1d is about five thousand bars and comes back whole; BTC at 1h needs a since. Nothing later than the end of the data is returned, so a window running into the present ends where the data does.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| step | No | Bar size. One of 5m, 15m, 30m, 1h, 2h, 4h, 1d | 1d |
| asset | No | Asset symbol, e.g. BTC. list_coverage lists them. | BTC |
| since | No | From this UTC moment, ISO 8601 | |
| until | No | To this UTC moment, ISO 8601 |