HomeDocumentationAPI Reference
Log In
API Reference

Get Spot Feed History Candles

Method Name

public/get_spot_feed_history_candles

Get spot feed history candles by currency

DEPRECATION NOTICE: This RPC is deprecated in favor of get_index_chart_data and get_tradingview_chart_data

Parameters

currencystringrequired
Currency
end_timestampintegerrequired
End timestamp
periodstringrequired
Period
enum 6030090018003600144002880086400604800
start_timestampintegerrequired
Start timestamp

Response

idstring or integerrequired
resultobjectrequired
result.currencystringrequired
Currency
result.spot_feed_historyarray of objectsrequired
Spot feed history candles
result.spot_feed_history[].close_pricestringrequired
Close price
result.spot_feed_history[].high_pricestringrequired
High price
result.spot_feed_history[].low_pricestringrequired
Low price
result.spot_feed_history[].open_pricestringrequired
Open price
result.spot_feed_history[].pricestringrequired
Spot price
result.spot_feed_history[].timestampintegerrequired
Timestamp of when the spot price was recored into the database
result.spot_feed_history[].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}