Get Spot Feed History Candles

Method Name

public/get_spot_feed_history_candles

Get spot feed history candles by currency

DB: read replica

Parameters

currency string required
Currency
end_timestamp integer required
End timestamp
period string required
Period
enum 900 3600 14400 28800 86400 604800
start_timestamp integer required
Start timestamp

Response

id string or integer required
result object required
result.currency string required
Currency
result.spot_feed_history array of objects required
Spot feed history candles
result.spot_feed_history[].close_price string required
Close price
result.spot_feed_history[].high_price string required
High price
result.spot_feed_history[].low_price string required
Low price
result.spot_feed_history[].open_price string required
Open price
result.spot_feed_history[].price string required
Spot price
result.spot_feed_history[].timestamp integer required
Timestamp of when the spot price was recored into the database
result.spot_feed_history[].timestamp_bucket integer required
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}