Price of a USDT token in terms of WBNB on opBNB

Streams the latest 10 DEX trades on opBNB as they happen, where sell currency smart contract is 0x4200…0006 and buy currency smart contract is 0x9e5A…96f3: block time, buy amount, buy price, buy currency name, buy currency symbol, buy smart contract, sell amount and 4 more fields.

By Akshat · saved 11 April 2024 · run 1 time · Bitquery API v2

What it returns

Filters

The subscription

subscription {
  EVM(network: opbnb) {
    DEXTrades(
      where: {Trade: {Sell: {Currency: {SmartContract: {is: "0x4200000000000000000000000000000000000006"}}}, Buy: {Currency: {SmartContract: {is: "0x9e5AAC1Ba1a2e6aEd6b32689DFcF62A509Ca96f3"}}}}}
      limit: {count: 10}
      orderBy: {descending: Block_Time}
    ) {
      Block {
        Time
      }
      Trade {
        Buy {
          Amount
          Price_in_terms_of_buy_currency: Price
          Currency {
            Name
            Symbol
            SmartContract
          }
        }
        Sell {
          Amount
          Price_in_terms_of_buy_currency: Price
          Currency {
            Symbol
            SmartContract
            Name
          }
        }
      }
    }
  }
}

Similar queries