V2 EVM dex trades on an token

Returns the latest 10 DEX trades on Ethereum, where buy currency smart contract is 0x1f98…f984 and sell currency smart contract is 0x1f98…f984: block number, block time, sender, sell amount, sell amount in USD, sell smart contract, sell currency name and 5 more fields.

By Qadir · saved 6 February 2025 · run 101 times · Bitquery API v2

What it returns

Filters

The query

query MyQuery {
  EVM(dataset: realtime, network: eth) {
  Buy_trades: DEXTrades(
      where: {Trade: {Buy: {Currency: {SmartContract: {is: "0x1f9840a85d5af5bf1d1762f925bdaddc4201f984"}}}}}
      orderBy: {descending: Block_Time}
      limit: {count: 10}
    ) {
      Block {
        Number
        Time
      }
      Trade {
        Sender
        Sell {
          Amount
          AmountInUSD
          Currency {
            SmartContract
            Name
          }
        }
        Buy {
          Amount
          AmountInUSD
          Currency {
            SmartContract
            Name
          }
        }
      }
      Transaction {
        Hash
      }
    }
  }
Sell_trades: EVM(dataset: realtime, network: eth) {
    DEXTrades(
      where: {Trade: {Sell: {Currency: {SmartContract: {is: "0x1f9840a85d5af5bf1d1762f925bdaddc4201f984"}}}}}
      orderBy: {descending: Block_Time}
      limit: {count: 10}
    ) {
      Block {
        Number
        Time
      }
      Trade {
        Sender
        Sell {
          Amount
          AmountInUSD
          Currency {
            SmartContract
            Name
          }
        }
        Buy {
          Amount
          AmountInUSD
          Currency {
            SmartContract
            Name
          }
        }
      }
      Transaction {
        Hash
      }
    }
  }
}

Similar queries