price in usd of a token

Returns the latest DEX trade on BNB Chain, where buy currency smart contract is 0xbb4C…095c: block number, block time, from, to, transaction hash, buy amount, buy buyer and 14 more fields.

By gaurav · saved 8 May 2025 · run 1 time · Bitquery API v2

What it returns

Filters

The query

query {
  EVM(network: bsc) {
    DEXTrades(
      limit:{count:1}
      orderBy:{descending:Block_Time}
      where: {Trade: {Buy: {Currency: {SmartContract: {is: "0xbb4CdB9CBd36B01bD1cBaEBF2De08d9173bc095c"}}}}}
    ) {
      Block {
        Number
        Time
      }
      Transaction {
        From
        To
        Hash
      }
      Trade {
        Buy {
          Amount
          Buyer
          Currency {
            Name
            Symbol
            SmartContract
          }
          Seller
          Price
          PriceInUSD
        }
        Sell {
          Amount
          Buyer
          Currency {
            Name
            SmartContract
            Symbol
          }
          Seller
          Price
        }
        PriceAsymmetry(selectWhere: {lt: 1})
      }
    }
  }
}

Similar queries