price of the token in different pools

Returns 10 DEX trades on BNB Chain, where buy currency smart contract is not 0xbb4c…095c or 0x55d3…7955, sell currency smart contract is not 0xbb4c…095c or 0x55d3…7955 and buy currency smart contract is 0x2859…dd4d: buy amount, buy buyer, buy currency name, buy smart contract, buy currency symbol, buy price, buy price in USD and 10 more fields.

By Vishal · saved 27 May 2024 · run 5 times · Bitquery API v2

What it returns

Filters

The query

query MyQuery {
  EVM(dataset: combined, network: bsc) {
    DEXTrades(
      where: {Block: {Date: {is: "2024-05-27"}}, Trade: {Buy: {Currency: {SmartContract: {notIn: ["0xbb4cdb9cbd36b01bd1cbaebf2de08d9173bc095c", "0x55d398326f99059ff775485246999027b3197955"]}}}, Sell: {Currency: {SmartContract: {notIn: ["0xbb4cdb9cbd36b01bd1cbaebf2de08d9173bc095c", "0x55d398326f99059ff775485246999027b3197955"]}}}}, any: {Trade: {Buy: {Currency: {SmartContract: {is: "0x2859e4544c4bb03966803b044a93563bd2d0dd4d"}}}, Sell: {Currency: {SmartContract: {is: "0x2859e4544c4bb03966803b044a93563bd2d0dd4d"}}}}}}
      limitBy: {by: Trade_Dex_Pair_Name}
      limit: {count: 10}
    ) {
      Trade {
        Buy {
          Amount
          Buyer
          Currency {
            Name
            SmartContract
            Symbol
          }
          Price
          PriceInUSD
          Seller
        }
        Sell {
          Amount
          Buyer
          PriceInUSD
          OrderId
          Seller
          Currency {
            Name
            SmartContract
          }
        }
        Dex {
          OwnerAddress
          SmartContract
        }
      }
    }
  }
}

Similar queries