bsc_dextrade_pancake

Returns the latest DEX trade on Ethereum and BNB Chain, where exchange name is Pancake or Pancake v2, base currency is ECIO and quote currency is BUSD: transaction hash, trade index, address address, contract type, currency name, block height, base currency symbol and 11 more fields.

By pablo · saved 23 July 2024 · run 1 time · Bitquery API v1

What it returns

Filters

The query

{
  ethereum(network: bsc) {
    dexTrades(
      options: {desc: ["block.height", "tradeIndex"], limit: 1}
      exchangeName: {in: ["Pancake", "Pancake v2"]}
      baseCurrency: {in: ["ECIO"]}
      quoteCurrency: {in: ["BUSD"]}
      date: {since: "2024-05-20"}
    ) {
      transaction {
        hash
      }
      tradeIndex
      smartContract {
        address {
          address
        }
        contractType
        currency {
          name
        }
      }
      tradeIndex
      block {
        height
      }
      baseCurrency {
        symbol
        address
      }
      quoteCurrency {
        symbol
        address
      }
      quotePrice
      baseCurrency {
        symbol
        address
        decimals
        name
      }
      baseAmount
      quoteCurrency {
        symbol
        address
      }
      quoteAmount
      trades: count
      quotePrice
      maximum_price: quotePrice(calculate: maximum)
      minimum_price: quotePrice(calculate: minimum)
      open_price: minimum(of: block, get: quote_price)
      close_price: maximum(of: block, get: quote_price)
    }
  }
}

Similar queries