Latest Aave price against WBNB

Getting latest Aave price against WBNB by using only realtime dataset.

Returns the latest DEX trade on BNB Chain, where buy currency smart contract is 0xfb61…f802 and sell currency smart contract is 0xbb4c…095c: buy amount, buy buyer, buy currency name, buy currency symbol, buy smart contract, buy seller, buy price and 10 more fields.

By gaurav · saved 31 July 2023 · run 4 times · Bitquery API v2

What it returns

Filters

The query

{
  EVM(dataset: realtime, network: bsc) {
    buyside: DEXTrades(
      limit: {count: 1}
      orderBy: {descending: Block_Time}
      where: {Trade: {Buy: {Currency: {SmartContract: {is: "0xfb6115445bff7b52feb98650c87f44907e58f802"}}}, Sell: {Currency: {SmartContract: {is: "0xbb4cdb9cbd36b01bd1cbaebf2de08d9173bc095c"}}}}}
    ) {
      Trade {
        Buy {
          Amount
          Buyer
          Currency {
            Name
            Symbol
            SmartContract
          }
          Seller
          Price
        }
        Sell {
          Amount
          Buyer
          Currency {
            Name
            SmartContract
            Symbol
          }
          Seller
          Price
        }
        Dex {
          ProtocolFamily
          ProtocolName
          SmartContract
          Pair {
            SmartContract
          }
        }
      }
    }
  }
}

Similar queries