get https://web3api.io/api/v2/market/swaps/ohlcv//historical
Retrieves the historical time series OHLCV data for the specified instrument and exchange(s).
Time Range Limit
The maximum time range (difference between startDate and endDate) is 1 day.
Not specifying startDate and endDate
If the
startDate
andendDate
query parameters are not provided, the API will return the data from the previous 1 day with a 1 minute frequency.
RESPONSE DATA
Field | Type | Description |
---|---|---|
{metadata} | object | The metadata associated with the data. |
{metadata}.startDate | number | string | The first date/time for which data is available. |
{metadata}.endDate | number | string | The last date/time for which data is available. |
[data] | array | The OHLCV data corresponding to the columns fields, aggregated by exchange. |
[data].exchange | string | The name of the exchange. |
[data].timestamp | number | string | The timestamp associated with this record. |
[data].open | number | The value when the bar/time interval started. |
[data].high | number | The highest value within the bar/time interval. |
[data].low | number | The lowest value within the bar/time interval. |
[data].close | number | The value when the bar/time interval closed. |
[data].volume | number | The volume within the bar/time interval. |