v2 bsc latest trade for currency

Returns the latest DEX trade by token on BNB Chain, where currency smart contract is 0x51fd…85c8, side currency smart contract is 0x55d3…7955 and block time till 2024-10-23: block number, block time, price in USD, currency symbol and side currency symbol.

By gaurav · saved 23 October 2024 · run 2 times · Bitquery API v2

What it returns

Filters

The query

{
  EVM(network: bsc, dataset: combined) {
    DEXTradeByTokens(
      limit: {count: 1}
      orderBy: {descending: Block_Number}
      where: {Trade: {Currency: {SmartContract: {is: "0x51fd1845d74eca21b36070bf5ebf04afaa2185c8"}}, Side: {Currency: {SmartContract: {in: ["0x55d398326f99059ff775485246999027b3197955"]}}}}, Block: {Time: {till: "2024-10-23T00:00:00Z"}}}
    ) {
      Block {
        Number
        Time
      }
      Trade {
        PriceInUSD
        Currency {
          Symbol
        }
        Side {
          Currency {
            Symbol
          }
        }
      }
    }
  }
}

Similar queries