Latest bar for a symbol+interval — the most-recent settled or forming bar
Changed onReturn the single most-recent bar for a symbol+interval.
Ordered by bar_start DESC, returns the first row. Provisional (forming) bars are returned with is_closed=False. Empty → 200 with bar: null, never 404. No tier gate on this endpoint (latest bar is the lightest read; depth-gating only applies to ranges).
Request
- Base URLhttps://api.goldprice.dev
- URLhttps://api.goldprice.dev/v1/bars/latest
- Auth
- none
- or HTTP bearer
- or API key in header X-API-Key
Query parameters
Symbol in slash or dash form. E.g. "XAU/USD", "GLD".
Bar interval. One of: 1m, 5m, 15m, 30m, 1h, 2h, 4h, 1d.
Response
Successful Response
Changes
- breaking
the response property
became optional for the status - breaking
the response property
became optional for the status - breaking
the response property
became optional for the status - breaking
the response property
became optional for the status - breaking
the response property
became optional for the status - breaking
response property
messagelist-of-types was widened by adding typesnullto media typeapplication/jsonof response401 - breaking
response property
messagelist-of-types was widened by adding typesnullto media typeapplication/jsonof response403 - breaking
response property
messagelist-of-types was widened by adding typesnullto media typeapplication/jsonof response404 - breaking
response property
messagelist-of-types was widened by adding typesnullto media typeapplication/jsonof response429 - breaking
response property
messagelist-of-types was widened by adding typesnullto media typeapplication/jsonof response503 - warning
removed the optional property
from the response with the status - info
the endpoint scheme security
ApiKeyAuthwas added to the API - info
the endpoint scheme security
BearerAuthwas added to the API - info
added the non-success response with the status
- info
removed the non-success response with the status
- info
added the required property
to the response with the status - info
added the required property
to the response with the status - info
added the required property
to the response with the status
- breaking