bars

Latest bar for a symbol+interval — the most-recent settled or forming bar

Return 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).

get/v1/bars/latest

Query parameters

symbolstring required

Symbol in slash or dash form. E.g. "XAU/USD", "GLD".

Symbol in slash or dash form. E.g. "XAU/USD", "GLD".

intervalstring

Bar interval. One of: 1m, 5m, 15m, 30m, 1h, 2h, 4h, 1d.

Bar interval. One of: 1m, 5m, 15m, 30m, 1h, 2h, 4h, 1d.

Response

Successful Response

symbolstring required
intervalstring required

Changes

Changed in 1 of the 7 revisions of this API.1017

  • b7c4b36e1fa11017See the full diff
    • the response property message became optional for the status 401

      response-property-became-optional

    • the response property message became optional for the status 403

      response-property-became-optional

    • the response property message became optional for the status 404

      response-property-became-optional

    • the response property message became optional for the status 429

      response-property-became-optional

    • the response property message became optional for the status 503

      response-property-became-optional

    • response property message list-of-types was widened by adding types null to media type application/json of response 401

      response-property-list-of-types-widened

    • response property message list-of-types was widened by adding types null to media type application/json of response 403

      response-property-list-of-types-widened

    • response property message list-of-types was widened by adding types null to media type application/json of response 404

      response-property-list-of-types-widened

    • response property message list-of-types was widened by adding types null to media type application/json of response 429

      response-property-list-of-types-widened

    • response property message list-of-types was widened by adding types null to media type application/json of response 503

      response-property-list-of-types-widened

    • removed the optional property detail from the response with the 422 status

      response-optional-property-removed

    • the endpoint scheme security ApiKeyAuth was added to the API

      api-security-added

    • the endpoint scheme security BearerAuth was added to the API

      api-security-added

    • added the non-success response with the status 500

      response-non-success-status-added

    • removed the non-success response with the status 400

      response-non-success-status-removed

    • added the required property details to the response with the 422 status

      response-required-property-added

    • added the required property error to the response with the 422 status

      response-required-property-added

    • added the required property message to the response with the 422 status

      response-required-property-added

    This revision also has 4 changes that name no endpoint, such as unreferenced schemas being removed. See the revision's changelog