token price in bsc with Dexs and pools address

Returns the latest 5 DEX trades on BNB Chain, where sell currency smart contract is 0x55d3…7955, DEX smart contract is 0x11c4…12dc and block date is 2024-05-24: 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 7 times · Bitquery API v2

What it returns

Filters

The query

{
  EVM(dataset: combined, network: bsc) {
    DEXTrades(
      limit: {count: 5}
      where: {Trade: {Sell: {Currency: {SmartContract: {is: "0x55d398326f99059ff775485246999027b3197955"}}}, Dex: {SmartContract: {is: "0x11c468c077cb597775e73633dfc7233c876312dc"}}}, 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