Method Name
public/get_spot_feed_history
public/get_spot_feed_history
Get spot feed history by currency
DB: read replica
Parameters
currency
string
required
Currency |
end_timestamp
integer
required
End timestamp |
period
integer
required
Period |
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 |
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}