get https://web3api.io/api/v2/market/spot/tickers//historical
Retrieves the historical ticker, bid/ask/mid/last, for the specified pair.
Time Range Limit
The maximum time range (difference between startDate and endDate) is 1 hour.
In order to get more than the maximum allowed, you can use the
startDate
&endDate
parameters to move the time frame window to get the next n days/hours/minutes of data.
Not specifying startDate and endDate
If the startDate and endDate query parameters are not provided, the API will return the data from the previous hour.
Response Data
Field | Type | Description |
---|---|---|
metadata | object | The metadata associated with the ticker data. |
data | object | The ticker data corresponding to the columns fields. |
columns | array | The name of the columns associated with the returned data e.g. [ timestamp, bid, ...] . |
timestamp | string | The timestamp at which the order was placed. |
bid | number | The bid of the market pair. |
ask | number | The ask of the market pair. |
mid | number | The mid of the market pair. |
last | number | The last of the market pair. |
sequence | number | null | The sequence for pair (equal to null if it is not provided by the exchange). |
bidVolume | number | null | It represents the requested order size of all best bids. |
askVolume | number | null | It represents the requested order size of all best asks. |