Price of a BNB token in terms of USDT on matic

Returns the latest DEX trade by token on Polygon, where currency smart contract is 0x3BA4…42c3 and side currency smart contract is 0xc213…8e8F: 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 · Bitquery API v2

What it returns

Filters

The query

query MyQuery {
  EVM(network: matic) {
    DEXTradeByTokens(
      where: {Trade: {Currency: {SmartContract: {is: "0x3BA4c387f786bFEE076A58914F5Bd38d668B42c3"}}, Side: {Currency: {SmartContract: {is: "0xc2132D05D31c914a87C6611C10748AEb04B58e8F"}}}}}
      limit: {count: 1}
      orderBy: {descending: Block_Time}
    ) {
      Block {
        Time
      }
      Trade {
        Amount
        Price_of_a_BNB_token_in_USDT: Price
        Currency {
          Symbol
          Name
        }
        Side {
          Amount
          Currency{
            Name
            Symbol
          }
        }
      }
    }
  }
}

Similar queries