DextradeTokens API link.

Returns DEX trades on Ethereum, where transaction hash is 0x2665…50df and DEX smart contract is 0x6a68…279f: transaction hash, buy amount, buy buyer, buy currency name, buy seller, buy price in USD, sell amount and 4 more fields.

By Vishal · saved 6 June 2024 · Bitquery API v2

What it returns

Filters

The query

{
  EVM(dataset: archive, network: eth) {
    DEXTrades(
     where: {Transaction: {Hash: {is: "0x2665058c01f53a68dc570255f6d4d0da43a08050fdde1705acbd4cb4df8850df"}}, Trade: {Dex: {SmartContract: {is: "0x6a68dc44a6d446734fe0a4e5ec7bb37f1862279f"}}}}
    ) {
      Transaction {
        Hash
      }
      Trade {
        Buy {
          Amount
          Buyer
          Currency {
            Name
          }
          Seller
          Currency {
            Name
          }
          Amount
          PriceInUSD
        }
        Sell {
          Amount
          Buyer
          Currency {
            Name
          }
          Seller
          Currency {
            Name
          }
          Amount
          PriceInUSD
        }
      }
    }
  }
}

Similar queries