get https://web3api.io/api/v2/market/spot/trades//historical
Retrieves the historical (time series) trade data 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 |
---|---|---|
data | object | The trade data corresponding to the columns fields. |
[EXCHANGE] | array | The array containing array s of trade data. |
metadata | object | The metadata associated with the trade data. |
columns | array | The name of the columns associated with the returned data e.g. [ timestamp, tradeId, ...] . |
timestamp | number | string | The timestamp at which the trade was executed. |
timestampNanoseconds | number | The nanosecond part of the timestamp where applicable. |
isBuy | boolean | true if the trade is a buy, false otherwise. |
price | number | The price at which the asset was traded. |
volume | number | The total amount of that asset that was traded. |
tradeId | number | string | The exchange provided id of the trade. |