get historical dextrades of a token on arbitrum

Returns the latest 1000 DEX trades by token on Arbitrum, where currency smart contract is 0xFa7F…F7f0 and block time since 2024-12-13: block time, trade amount, amount in USD, buyer, currency name, currency symbol, smart contract and 14 more fields.

By Akshat · saved 13 December 2024 · Bitquery API v2

What it returns

Filters

The query

query MyQuery {
  EVM(network: arbitrum) {
    DEXTradeByTokens(
      where: {Trade: {Currency: {SmartContract: {is: "0xFa7F8980b0f1E64A2062791cc3b0871572f1F7f0"}}}, Block: {Time: {since: "2024-12-13T00:00:00Z"}}}
      limit: {count: 1000}
      orderBy: {descending: Block_Time}
    ) {
      Block {
        Time
      }
      Trade {
        Amount
        AmountInUSD
        Buyer
        Currency {
          Name
          Symbol
          SmartContract
        }
        Dex {
          ProtocolName
          ProtocolFamily
          SmartContract
        }
        Price
        PriceInUSD
        Seller
        Side {
          Currency {
            SmartContract
            Symbol
            Name
          }
          Buyer
          AmountInUSD
          Amount
          Seller
        }
      }
      Transaction {
        From
        Hash
      }
    }
  }
}

Similar queries