HomeDocumentationAPI Reference
Log In
API Reference

Get Index Chart Data

Method Name

public/get_index_chart_data

Get index chart data (spot OHLC candles from ClickHouse) by currency

DB: clickhouse read replica

Parameters

currencystringrequired
Currency
end_timestampintegerrequired
End timestamp in UTC seconds
periodstringrequired
Period in seconds
enum 6030090018003600144002880086400604800
start_timestampintegerrequired
Start timestamp in UTC seconds

Response

idstring or integerrequired
resultarray of objectsrequired
result[].close_pricestringrequired
Close price
result[].high_pricestringrequired
High price
result[].low_pricestringrequired
Low price
result[].open_pricestringrequired
Open price
result[].pricestringrequired
Spot price
result[].timestampintegerrequired
Timestamp of when the spot price was recored into the database
result[].timestamp_bucketintegerrequired
Timestamp bucket; this value is regularly spaced out with period seconds between data points, missing values are forward-filled from earlier data where possible, if no earlier data is available, values are back-filled from the first observed data point

Example

{request_example_shell}
{request_example_javascript}
{request_example_python}

The above command returns JSON structured like this:

{response_example_json}