Token trade history on pancake

Returns the latest 10 DEX trades on Ethereum and BNB Chain, where base currency is 0xca08…6d1f, exchange name is Pancake or Pancake v2 and date since 2021-12-09: timestamp time, block height, trade index, protocol, full name, address address, annotation and 7 more fields.

By gaurav · saved 7 January 2022 · run 1 time · Bitquery API v1

What it returns

Filters

The query

query ($network: EthereumNetwork!, $token: String!, $limit: Int!, $offset: Int!, $from: ISO8601DateTime, $till: ISO8601DateTime) {
  ethereum(network: $network) {
    dexTrades(
      options: {desc: ["block.height", "tradeIndex"], limit: $limit, offset: $offset}
      date: {since: $from, till: $till}
      baseCurrency: {is: $token}
      exchangeName: {in: ["Pancake", "Pancake v2"]}
    ) {
      block {
        timestamp {
          time(format: "%Y-%m-%d %H:%M:%S")
        }
        height
      }
      tradeIndex
      protocol
      exchange {
        fullName
      }
      smartContract {
        address {
          address
          annotation
        }
      }
      baseAmount
      baseCurrency {
        address
        symbol
      }
      quoteAmount
      quoteCurrency {
        address
        symbol
      }
      transaction {
        hash
      }
    }
  }
}

Variables

{
  "limit": 10,
  "offset": 0,
  "network": "bsc",
  "token": "0xca08805a2f31b374b9dc8cbb7aa16b7c425b6d1f",
  "from": "2021-12-09",
  "till": "2022-01-07T23:59:59",
  "dateFormat": "%Y-%m-%d"
}

Similar queries