Latest data
GET /v1/ohlcv/:symbol_id/latest
Get OHLCV latest timeseries data returned in time descending 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
OHLCV Latest endpoint is providing real-time data without delay. The OHLCV Historical endpoint data can be delayed a few seconds.
Path Parameters
- symbol_id string required
Symbol identifier of requested timeseries (from the Metadata -> Symbols)
Query Parameters
- period_id string
Identifier of requested timeseries period (required, e.g.
5SEC
or2MTH
) - limit int32
Default value:
100
Amount of items to return (optional, 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? (optional, default value is
false
, possible values aretrue
orfalse
)
- 200
successful operation
- text/plain
- application/json
- text/json
- application/x-msgpack
- Schema
- Example (from schema)
- Example response
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-time nullable
The time when the price opened.
- time_close date-time nullable
The time when the price closed.
- price_open double nullable
The opening price.
- price_high double nullable
The highest price during the time period.
- price_low double nullable
The lowest price during the time period.
- price_close double nullable
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.
- ]
[
{
"time_period_start": "2024-04-24T17:11:55.850Z",
"time_period_end": "2024-04-24T17:11:55.850Z",
"time_open": "2024-04-24T17:11:55.850Z",
"time_close": "2024-04-24T17:11:55.850Z",
"price_open": 0,
"price_high": 0,
"price_low": 0,
"price_close": 0,
"volume_traded": 0,
"trades_count": 0
}
]
[
{
"time_period_start": "2017-08-09T14:31:00.0000000Z",
"time_period_end": "2017-08-09T14:32:00.0000000Z",
"time_open": "2017-08-09T14:31:01.0000000Z",
"time_close": "2017-08-09T14:31:46.0000000Z",
"price_open": 3255.59,
"price_high": 3255.59,
"price_low": 3244.74,
"price_close": 3244.74,
"volume_traded": 16.90327455,
"trades_count": 31
},
{
"time_period_start": "2017-08-09T14:30:00.0000000Z",
"time_period_end": "2017-08-09T14:31:00.0000000Z",
"time_open": "2017-08-09T14:30:05.0000000Z",
"time_close": "2017-08-09T14:30:35.0000000Z",
"price_open": 3256,
"price_high": 3256.01,
"price_low": 3247,
"price_close": 3255.6,
"volume_traded": 58.13139792,
"trades_count": 33
}
]
- Schema
- Example (from schema)
- Example response
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-time nullable
The time when the price opened.
- time_close date-time nullable
The time when the price closed.
- price_open double nullable
The opening price.
- price_high double nullable
The highest price during the time period.
- price_low double nullable
The lowest price during the time period.
- price_close double nullable
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.
- ]
[
{
"time_period_start": "2024-04-24T17:11:55.850Z",
"time_period_end": "2024-04-24T17:11:55.850Z",
"time_open": "2024-04-24T17:11:55.850Z",
"time_close": "2024-04-24T17:11:55.850Z",
"price_open": 0,
"price_high": 0,
"price_low": 0,
"price_close": 0,
"volume_traded": 0,
"trades_count": 0
}
]
[
{
"time_period_start": "2017-08-09T14:31:00.0000000Z",
"time_period_end": "2017-08-09T14:32:00.0000000Z",
"time_open": "2017-08-09T14:31:01.0000000Z",
"time_close": "2017-08-09T14:31:46.0000000Z",
"price_open": 3255.59,
"price_high": 3255.59,
"price_low": 3244.74,
"price_close": 3244.74,
"volume_traded": 16.90327455,
"trades_count": 31
},
{
"time_period_start": "2017-08-09T14:30:00.0000000Z",
"time_period_end": "2017-08-09T14:31:00.0000000Z",
"time_open": "2017-08-09T14:30:05.0000000Z",
"time_close": "2017-08-09T14:30:35.0000000Z",
"price_open": 3256,
"price_high": 3256.01,
"price_low": 3247,
"price_close": 3255.6,
"volume_traded": 58.13139792,
"trades_count": 33
}
]
- Schema
- Example (from schema)
- Example response
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-time nullable
The time when the price opened.
- time_close date-time nullable
The time when the price closed.
- price_open double nullable
The opening price.
- price_high double nullable
The highest price during the time period.
- price_low double nullable
The lowest price during the time period.
- price_close double nullable
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.
- ]
[
{
"time_period_start": "2024-04-24T17:11:55.850Z",
"time_period_end": "2024-04-24T17:11:55.850Z",
"time_open": "2024-04-24T17:11:55.850Z",
"time_close": "2024-04-24T17:11:55.850Z",
"price_open": 0,
"price_high": 0,
"price_low": 0,
"price_close": 0,
"volume_traded": 0,
"trades_count": 0
}
]
[
{
"time_period_start": "2017-08-09T14:31:00.0000000Z",
"time_period_end": "2017-08-09T14:32:00.0000000Z",
"time_open": "2017-08-09T14:31:01.0000000Z",
"time_close": "2017-08-09T14:31:46.0000000Z",
"price_open": 3255.59,
"price_high": 3255.59,
"price_low": 3244.74,
"price_close": 3244.74,
"volume_traded": 16.90327455,
"trades_count": 31
},
{
"time_period_start": "2017-08-09T14:30:00.0000000Z",
"time_period_end": "2017-08-09T14:31:00.0000000Z",
"time_open": "2017-08-09T14:30:05.0000000Z",
"time_close": "2017-08-09T14:30:35.0000000Z",
"price_open": 3256,
"price_high": 3256.01,
"price_low": 3247,
"price_close": 3255.6,
"volume_traded": 58.13139792,
"trades_count": 33
}
]
- Schema
- Example (from schema)
- Example response
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-time nullable
The time when the price opened.
- time_close date-time nullable
The time when the price closed.
- price_open double nullable
The opening price.
- price_high double nullable
The highest price during the time period.
- price_low double nullable
The lowest price during the time period.
- price_close double nullable
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.
- ]
[
{
"time_period_start": "2024-04-24T17:11:55.850Z",
"time_period_end": "2024-04-24T17:11:55.850Z",
"time_open": "2024-04-24T17:11:55.850Z",
"time_close": "2024-04-24T17:11:55.850Z",
"price_open": 0,
"price_high": 0,
"price_low": 0,
"price_close": 0,
"volume_traded": 0,
"trades_count": 0
}
]
[
{
"time_period_start": "2017-08-09T14:31:00.0000000Z",
"time_period_end": "2017-08-09T14:32:00.0000000Z",
"time_open": "2017-08-09T14:31:01.0000000Z",
"time_close": "2017-08-09T14:31:46.0000000Z",
"price_open": 3255.59,
"price_high": 3255.59,
"price_low": 3244.74,
"price_close": 3244.74,
"volume_traded": 16.90327455,
"trades_count": 31
},
{
"time_period_start": "2017-08-09T14:30:00.0000000Z",
"time_period_end": "2017-08-09T14:31:00.0000000Z",
"time_open": "2017-08-09T14:30:05.0000000Z",
"time_close": "2017-08-09T14:30:35.0000000Z",
"price_open": 3256,
"price_high": 3256.01,
"price_low": 3247,
"price_close": 3255.6,
"volume_traded": 58.13139792,
"trades_count": 33
}
]