Get price bars
get_barsOHLCV price bars for an instrument over a time range. Instrument ids are bare Hyperliquid symbols (BTC, HYPE) or dex-prefixed HIP-3 symbols (xyz:TSLA) — exactly the symbol values scan_markets returns. For a US stock, pass ref:eq:TICKER (for example ref:eq:NVDA): it reads the Databento US equity bars, which include pre-market and post-market minutes. Intervals are 1m/5m/15m/1h/1d; start/end default to the last 24h. Returns [timestamp, {o,h,l,c,v}] series with a meta envelope (caps applied server-side). (Requires api:read.)
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"instrument_id": "<instrument_id>",
"interval": "<interval>"
},
"name": "get_bars"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| end | No | RFC 3339 end, e.g. 2026-07-02T00:00:00Z (default: start+24h, or now) | |
| start | No | RFC 3339 start, e.g. 2026-07-01T00:00:00Z (default: end-24h, or now-24h) | |
| interval | Yes | ||
| max_points | No | ||
| instrument_id | Yes |