Skip to main content

v1/getHistoricalExchangeRates RPC Method

Get the historical exchange rates between two assets in the form of the timeseries.

Updated on
Jan 30, 2025

v1/getHistoricalExchangeRates RPC Method

Parameters

assetBase
string
REQUIRED
Requested exchange rates base asset identifier (from the Metadata -> Assets)
assetQuote
string
REQUIRED
Requested exchange rates base asset identifier (from the Metadata -> Assets)
period_id
string
REQUIRED
Identifier of requested timeseries period (required, e.g. 5SEC or 1HRS)
time_start
string
REQUIRED
Timeseries starting time in ISO 8601 (required)
time_end
string
REQUIRED
Timeseries ending time in ISO 8601 (required)
limit
integer
Amount of items to return (optional, mininum is 1, maximum is 100000, default value is 100, if the parameter is used then every 100 output items are counted as one request)

Returns

result
array
Array of historical exchange rate information
time_period_start
string
Gets or sets the start time of the period
time_period_end
string
Gets or sets the end time of the period
time_open
string
Gets or sets the opening time of the period
time_close
string
Gets or sets the closing time of the period
rate_open
integer
Gets or sets the opening rate for the period
rate_high
integer
Gets or sets the highest rate for the period
rate_low
integer
Gets or sets the lowest rate for the period
rate_close
integer
Gets or sets the closing rate for the period
Request
Don't have an account yet?
Create your QuickNode endpoint in seconds and start building
Get started for free