Price of given token in specific pool bsc

Returns the latest DEX trade on BNB Chain, where sell currency smart contract is 0x55d3…7955, DEX smart contract is 0x11c4…12dc and buy currency smart contract is 0x82f5…ffd3: block time, transaction hash, transaction index, buy amount, buy seller, buy price, buy currency name and 16 more fields.

By Vishal · saved 24 May 2024 · run 26 times · Bitquery API v2

What it returns

Filters

The query

{
  EVM(dataset: combined, network: bsc) {
    DEXTrades(
      limit: {count: 1}
      where: {Trade: {Sell: {Currency: {SmartContract: {is: "0x55d398326f99059ff775485246999027b3197955"}}}, Dex: {SmartContract: {is: "0x11c468c077cb597775e73633dfc7233c876312dc"}}, Buy: {Currency: {SmartContract: {is: "0x82f516f960b428c0a31f1f127057eec3e03effd3"}}}}, Block: {Date: {is: "2024-05-24"}}}
      orderBy: {descending: Block_Time}
    ) {
      Block {
        Time
      }
      Transaction {
        Hash
        Index
      }
      Trade {
        Buy {
          Amount
          Seller
          Price
          Currency {
            Name
            SmartContract
          }
          Buyer
          PriceInUSD
        }
        Dex {
          ProtocolName
          OwnerAddress
          SmartContract
          Pair {
            Name
            SmartContract
            Symbol
          }
          ProtocolFamily
        }
        Sell {
          Amount
          Buyer
          Seller
          Price
          Currency {
            Name
            SmartContract
          }
          PriceInUSD
        }
      }
    }
  }
}

Similar queries