OHLCV bar history — cursor-paginated, real data, is_closed label
Paginated OHLCV bar history from the canonical price_bars store.
Results are ordered DESC by bar_start (newest first). Paginate via next_cursor — pass it as ?cursor= on the next request. When next_cursor is null the result is exhausted. Empty range returns 200 with bars: [].
Tier depth gates:
- Free: 30 days
- Basic: 1 year
- Pro+: full history (daily back to 1996 for XAU/USD; intraday from 2006)
Intraday intervals (1m, 5m, 15m, 30m, 1h, 2h, 4h) require Pro+.
Query parameters
Symbol in slash or dash form. E.g. "XAU/USD", "XAU-USD-SPOT", "GLD".
Symbol in slash or dash form. E.g. "XAU/USD", "XAU-USD-SPOT", "GLD".
Bar interval. One of: 1m, 5m, 15m, 30m, 1h, 2h, 4h, 1d.
Bar interval. One of: 1m, 5m, 15m, 30m, 1h, 2h, 4h, 1d.
ISO-8601 start (inclusive).
ISO-8601 start (inclusive).
ISO-8601 end (inclusive).
ISO-8601 end (inclusive).
Max bars per page (1-10000). Default 100.
Max bars per page (1-10000). Default 100.
Opaque keyset pagination cursor from a prior response's next_cursor. When set, returns bars older than the cursor within the from/to window.
Opaque keyset pagination cursor from a prior response's next_cursor. When set, returns bars older than the cursor within the from/to window.
Response
Successful Response
Changes
Changed in 1 of the 7 revisions of this API.1216
- ▲
the response property
messagebecame optional for the status400response-property-became-optional
- ▲
the response property
messagebecame optional for the status401response-property-became-optional
- ▲
the response property
messagebecame optional for the status403response-property-became-optional
- ▲
the response property
messagebecame optional for the status404response-property-became-optional
- ▲
the response property
messagebecame optional for the status429response-property-became-optional
- ▲
the response property
messagebecame optional for the status503response-property-became-optional
- ▲
response property
messagelist-of-types was widened by adding typesnullto media typeapplication/jsonof response400response-property-list-of-types-widened
- ▲
response property
messagelist-of-types was widened by adding typesnullto media typeapplication/jsonof response401response-property-list-of-types-widened
- ▲
response property
messagelist-of-types was widened by adding typesnullto media typeapplication/jsonof response403response-property-list-of-types-widened
- ▲
response property
messagelist-of-types was widened by adding typesnullto media typeapplication/jsonof response404response-property-list-of-types-widened
- ▲
response property
messagelist-of-types was widened by adding typesnullto media typeapplication/jsonof response429response-property-list-of-types-widened
- ▲
response property
messagelist-of-types was widened by adding typesnullto media typeapplication/jsonof response503response-property-list-of-types-widened
- ●
removed the optional property
detailfrom the response with the422statusresponse-optional-property-removed
- ○
the endpoint scheme security
ApiKeyAuthwas added to the APIapi-security-added
- ○
the endpoint scheme security
BearerAuthwas added to the APIapi-security-added
- ○
added the non-success response with the status
500response-non-success-status-added
- ○
added the required property
detailsto the response with the422statusresponse-required-property-added
- ○
added the required property
errorto the response with the422statusresponse-required-property-added
- ○
added the required property
messageto the response with the422statusresponse-required-property-added
This revision also has 4 changes that name no endpoint, such as unreferenced schemas being removed. See the revision's changelog
- ▲