BIT-1234

Returns the latest DEX trade on Ethereum and BNB Chain, where base currency is 0xbb4c…095c, quote currency is 0x55d3…7955 and smart contract address is 0x9099…08ea: timestamp time, quote amount, quote price, trade index, base amount, base currency symbol, base currency address and 2 more fields.

By Remach · saved 16 June 2022 · Bitquery API v1

What it returns

Filters

The query

{
  ethereum(network: bsc) {
    usdt: dexTrades(
      options: {desc: ["block.timestamp.time"], limit: 1}
      baseCurrency: { is: "0xbb4cdb9cbd36b01bd1cbaebf2de08d9173bc095c"}
      quoteCurrency: {is: "0x55d398326f99059ff775485246999027b3197955"}
      date: {since: "2022-06-16" }
    ) {
      block {
        timestamp {
          time
        }
      }
      quoteAmount
      quotePrice
      tradeIndex
    }
    pair: dexTrades(
      options: {desc: ["block.timestamp.time"], limit: 1}
      smartContractAddress: {is: "0x9099502f8f2db7fbd442d0d1bbd63310eff908ea"}
      baseCurrency: {not: "0xbb4cdb9cbd36b01bd1cbaebf2de08d9173bc095c"}
      date: {since: "2022-06-16" }
    ) {
      block {
        timestamp {
          time
        }
      }
      baseAmount
      baseCurrency {
        symbol
        address
      }
      quoteAmount
      quotePrice
      quoteCurrency {
        symbol
        address
      }
      tradeIndex
    }
  }
}

Similar queries