Price of token

Returns the latest 2 DEX trades on BNB Chain, where sell currency smart contract is 0x55d3…7955, DEX owner address is 0xcA14…0c73 and buy currency smart contract is 0x82f5…ffd3: block time, transaction hash, transaction index, buy amount, buy seller, buy price, buy currency name and 18 more fields.

By Vishal · saved 29 May 2024 · run 12 times · Bitquery API v2

What it returns

Filters

The query

{
  EVM(dataset: combined, network: bsc) {
    DEXTrades(
      limit: {count: 2}
      where: {Trade: {Sell: {Currency: {SmartContract: {is: "0x55d398326f99059ff775485246999027b3197955"}}}, Dex: {OwnerAddress: {is: "0xcA143Ce32Fe78f1f7019d7d551a6402fC5350c73"}}, 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
          ProtocolVersion
        }
        Sell {
          Amount
          Buyer
          Seller
          Price
          Currency {
            Name
            SmartContract
          }
          PriceInUSD
          AmountInUSD
        }
      }
    }
  }
}  

Similar queries