Historical [OND]

Retrieves the historical (time series) trade data for the specified pool/pair.
Asset information can be used from the metadata payload.
Base & Quote information is using the first and second asset in a pool/pair, which is the represented price.

Note: This endpoint returns a max of 1 hour historical data per request. In order to get more than 1 hour you must use the startDate & endDate parameters to move the time frame window to get the next n hours/days/months of data.

Response Data

Field

Type

Description

data

object

The trade data corresponding to the columns fields.

[EXCHANGE]

array

The array containing arrays 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

The timestamp associated with this record.

timestampNanoseconds

number

The nanosecond part of the timestamp where applicable.

isBuy

bool

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

The exchange provided id of the trade.

logIndex

number

The index of the log within the transaction which included this trade event.

pairAddress

string

The address of the pair.

amountInBase

number

The amount of the Base asset accepted in the trade.

amountInQuote

number

The amount of the Quote asset accepted in the trade.

amountOutBase

number

The amount of the Base asset returned in the trade.

amountOutQuote

number

The amount of the Quote asset accepted in the trade.

fromAddress

string

the address which started the trade, ie the sender

toAddress

string

the recipient of the trade, ie the receiver

Language
Authentication
Header
Click Try It! to start a request and see the response here!