Skip to main content

Historical data

GET 

/v1/ohlcv/:symbol_id/history

Get OHLCV timeseries data returned in time ascending order. Data can be requested by the period and for the specific symbol eg BITSTAMP_SPOT_BTC_USD, if you need to query timeseries by asset pairs eg. BTC/USD, then please reffer to the Exchange Rates Timeseries data

info

The OHLCV Historical endpoint data can be delayed a few seconds. Use OHLCV Latest endpoint to get real-time data without delay.

Request

Path Parameters

    symbol_id stringrequired

    Symbol identifier of requested timeseries (from the Metadata -> Symbols)

Query Parameters

    period_id stringrequired

    Identifier of requested timeseries period (e.g. 5SEC or 2MTH)

    time_start string

    Timeseries starting time in ISO 8601

    time_end string

    Timeseries ending time in ISO 8601

    limit int32

    Default value: 100

    Amount of items to return (mininum is 1, maximum is 100000, default value is 100, if the parameter is used then every 100 output items are counted as one request)

    include_empty_items boolean

    Include items with no activity? (default value is false, possible values are true or false)

Responses

successful operation

Schema

  • Array [

  • time_period_start date-time

    The start time of the time period.

    time_period_end date-time

    The end time of the time period.

    time_open date-timenullable

    The time when the price opened.

    time_close date-timenullable

    The time when the price closed.

    price_open doublenullable

    The opening price.

    price_high doublenullable

    The highest price during the time period.

    price_low doublenullable

    The lowest price during the time period.

    price_close doublenullable

    The closing price.

    volume_traded double

    The total volume traded during the time period.

    trades_count int64

    The number of trades executed during the time period.

  • ]

Loading...