Assets

Retrieve historical data for a specific asset

Changed on

Retrieve historical data for a specific asset by slug (id). 'interval' is REQUIRED (one of m1, m5, m15, m30, h1, h2, h6, h12, d1). 'start' and 'end' (UNIX ms) must be provided together — sending 'start' alone returns HTTP 400. Omit both to get the most recent window.

get/assets/{slug}/history

Request

Path parameters

slugstring required

The slug of the asset

Query parameters

interval'm1' | 'm5' | 'm15' | 'm30' | 'h1' | 'h2' | 'h6' | 'h12' | 'd1' required

interval choices m1 m5 m15 m30 h1 h2 h6 h12 d1

startinteger

UNIX time in milliseconds. Omitting will return the most recent asset history.

endinteger

The end timestamp for the historical data.

Response

Historical data for the asset

timestampinteger

Changes

    • breaking

      the query request parameter interval was restricted to a list of enum values

    • info

      the endpoint scheme security apiKey was added to the API

    • info

      added the new enum value d1 to the query request parameter interval

    • info

      added the new enum value h1 to the query request parameter interval

    • info

      added the new enum value h12 to the query request parameter interval

    • info

      added the new enum value h2 to the query request parameter interval

    • info

      added the new enum value h6 to the query request parameter interval

    • info

      added the new enum value m1 to the query request parameter interval

    • info

      added the new enum value m15 to the query request parameter interval

    • info

      added the new enum value m30 to the query request parameter interval

    • info

      added the new enum value m5 to the query request parameter interval