Subscription latest Trades of Token_dextrades

Streams the latest 10 DEX trades by token on Ethereum as they happen, where currency smart contract is 0x4d9b…6539: chain ID, block number, block time, seller, buyer, trade amount, amount in USD and 8 more fields.

By Nadia · saved 17 February 2025 · Bitquery API v2

What it returns

Filters

The subscription

subscription ($network: evm_network, $limit: Int!, $token: String!) {
  EVM(network: $network) {
    DEXTradeByTokens(
      orderBy: {descending: Block_Number}
      limit: {count: $limit}
      where: {Trade: {Currency: {SmartContract: {is: $token}}}}
    ) {
      ChainId
      Block {
        Number
        Time
      }
      Trade {
        Seller
        Buyer
        Amount
        AmountInUSD
        Currency {
          SmartContract
          Symbol
        }
        Price
        Side {
          Amount
          AmountInUSD
          Currency {
            SmartContract
            Symbol
          }
        }
      }
      Transaction {
        Hash
      }
    }
  }
}

Variables

{
  "network": "eth",
  "limit": 10,
  "offset": 0,
  "token": "0x4d9bd3ac5590552ee51d92e3400f80dc28716539"
}

Similar queries