Latest Trades of Tokens in Network

Streams the latest 10 DEX trades on BNB Chain as they happen, where sell currency smart contract is 0x89af…e27e: chain ID, block number, block time, transaction hash, buy smart contract, buy currency symbol, buy amount and 7 more fields.

By Foo · saved 30 December 2024 · Bitquery API v2

What it returns

Filters

The subscription

subscription ($network: evm_network, $limit: Int!) {
  EVM(network: $network) {
    DEXTrades(
      orderBy: {descending: Block_Number}
      limit: {count: $limit}
      where: {Trade: {Sell: {Currency: {SmartContract: {is: "0x89af13a10b32f1b2f8d1588f93027f69b6f4e27e"}}}}}
    ) {
      ChainId
      Block {
        Number
        Time
      }
      Transaction {
        Hash
      }
      Trade {
        Buy {
          Currency {
            SmartContract
            Symbol
          }
          Amount
          Price
          Buyer
          Seller
        }
        Sell {
          Seller
          Amount
          Currency {
            Symbol
            SmartContract
          }
        }
      }
    }
  }
}

Variables

{
  "network": "bsc",
  "limit": 10,
  "offset": 0
}

Similar queries