DEX Trades Historical

Retrieves the historical (time series) DEX trades.

📘

Related Endpoints

You can query this endpoint using the information found in

🚧

Time Range Limit

The maximum time range (difference between endDate and startDate) is 366 days.

📘

Not specifying startDate and endDate

If the startDate and endDate query parameters are not provided, the API will return the data from the previous 7 days.

📘

Historical Coverage

The API provides a rolling 2 year history of trade data. If you require data older than two years, please contact your Amberdata Account Executive to discuss bulk data delivery options.

Data Use-cases

You can use this trade data to

  1. Analyze the assets that a specific wallet is swapping
  2. Compare and contrast the trading volume of various assets by protocol, blockchain and more...
  3. Create technical indicators just as VWAP and TWAP
  4. Analyze price movements, by creating candlestick (OHLCV) data
Response Data

Fields and paths are relative to the top-level payload field i.e. metadata.next is equivalent to payload.metadata.next.

JSON Field/PathValue TypeOptionalDescription
data[index].assetBoughtAddressstringThe smart contract address of the asset that was bought in this trade.
data[index].assetBoughtAmountstringThe amount of the asset bought normalized to its decimals.
data[index].assetBoughtAmountRawstringThe amount of the asset bought unnormalized.
data[index].assetBoughtDecimalsintegerThe bought asset's decimals for normalizing its native units.
data[index].assetBoughtPricestringThe price of the bought asset in relation to 1 unit of the sold asset.
data[index].assetBoughtSymbolstringThe short-form, human readable, abbreviated identifier of the asset.
data[index].assetPairstringAn hyphenated (-) concatenation of the sold and bought assets' addresses.
data[index].assetSoldAddressstringThe smart contract address of the asset that was sold in this trade.
data[index].assetSoldAmountstringThe amount of the asset sold normalized to its decimals.
data[index].assetSoldAmountRawstringThe amount of the asset sold unnormalized.
data[index].assetSoldDecimalsintegerThe sold asset's decimals for normalizing its native units.
data[index].assetSoldPricestringThe price of the sold asset in relation to 1 unit of the sold asset.
data[index].assetSoldSymbolstringThe short-form, human readable, abbreviated identifier of the asset.
data[index].blockNumberinteger
data[index].blockchainstringThe blockchain this trade occurred on.
data[index].callerAddressstring
data[index].eventstringThe decoded, human readable interpretation of the smart contract function.
data[index].liquidityPoolAddressstringThe smart contract address of the liquidity pool where the sold and bought asset trade.
data[index].logIndexinteger
data[index].projectstring
data[index].protocolNamestringThe human readable name of the DEX protocol this trade happened on.
data[index].receiverAddressstring
data[index].timestampstringThe timestamp at which this trade occurred in ISO8601 format by default.
data[index].tradeFeeBoughtstringThe amount of trading fees generated in terms of the bought asset.
data[index].tradeFeeSoldstringThe amount of trading fees generated in terms of the sold asset.
data[index].tradeIdstringAn underscore (_) concatenation of the transactionHash and the logIndex.
data[index].transactionFeestring
data[index].transactionFromAddressstring
data[index].transactionGasPricestringThe price of gas for this transaction
data[index].transactionGasUsedstringThe amount of gas used for this transaction
data[index].transactionHashstring
data[index].transactionToAddressstring
Language
Credentials
Header
Click Try It! to start a request and see the response here!