Historical prices

What is this endpoint for?

This endpoint returns our historical values for our Reference Rates. To subscribe to the live rate, please use Kaiko Streamarrow-up-right. More information on the rates and its methodology can be found herearrow-up-right.

Endpoint

https://us.market-api.kaiko.io/v2/data/index.v1/digital_asset_rates_price/{index_code}

Path Parameters

Parameter
Required
Description
Example

index_code

Yes

The desired rate ticker

KK_BRR_BTCUSD

Query Parameters

Parameter
Required
Description
Example

start_time

Yes

Starting time in ISO 8601 (inclusive).

2023-01-25T00:00:00.000Z

end_time

Yes

Ending time in ISO 8601 (exclusive).

2023-01-26T00:00:00.000Z

parameters

No

boolean. If true, returns the underlying composition data of the rate such as exchanges and calculation window Default: false

detail

No

boolean. If true, returns the underlying partition data for each publication Default: false

page_size

No

(min: 1, default: 100, max: 5000). See Paginationarrow-up-right

Automatically included in continuation tokens.

continuation_token

No

sort

No

Return the data in ascending (asc) or descending (desc) order. Default desc

Automatically included in continuation tokens.

Fields

Field
Description
Example

interval_start

Starting timestamp of calculation window

2023-01-25T01:01:00.000Z

interval_end

Ending timestamp of calculation window

2023-01-25T01:02:00.000Z

price

Price of the reference rate at interval_end

67685.61363636363

parameters

Underlying composition data of the rate such as exchanges and calculation window

'asset': 'btc',

'exchanges': ['cbse', 'gmni', 'krkn', 'lmax', 'stmp'],

'calc_window': 300

detail

Underlying partition data for each publication including price, volume, trade count and underlying data of the trade selected from the partition.

'partition': 0,

'price': 67678,

'volume': 5.14445852,

'count': 125,

'underlying_trade': {'datetime': '2024-10-27T15:55:17.334Z',

'exchange': 'stmp',

'volume': 0.20137745,

'id': '366038625'}

Request examples

Response example

Last updated

Was this helpful?