Price of a USDT token in terms of WBNB on opBNB

Returns the latest DEX trade by token on opBNB, where currency smart contract is 0x9e5A…96f3 and side currency smart contract is 0x4200…0006: block time, trade amount, trade price, currency symbol, currency name, side amount, side currency name and side currency symbol.

By Akshat · saved 10 April 2024 · run 7 times · Bitquery API v2

What it returns

Filters

The query

query MyQuery {
  EVM(network: opbnb) {
    DEXTradeByTokens(
      where: {Trade: {Currency: {SmartContract: {is: "0x9e5AAC1Ba1a2e6aEd6b32689DFcF62A509Ca96f3"}}, Side: {Currency: {SmartContract: {is: "0x4200000000000000000000000000000000000006"}}}}}
      limit: {count: 1}
      orderBy: {descending: Block_Time}
    ) {
      Block {
        Time
      }
      Trade {
        Amount
        Price_of_a_token_in_BNB: Price
        Currency {
          Symbol
          Name
        }
        Side {
          Amount
          Currency {
            Name
            Symbol
          }
        }
      }
    }
  }
}

Similar queries