missing currency

Returns 30 DEX trades on Ethereum and BNB Chain, where base currency is 0x8ac7…580d, 0x2170…33f8 or 3 more, buy currency is 0x1111…c302 and exchange name is Pancake v2, sorted by trades, highest first: address address, quote currency address, count, trade amount, full name and sell currency address.

By Michael · saved 3 May 2022 · Bitquery API v1

What it returns

Filters

The query

query ($after: ISO8601DateTime, $tokenId: String!, $network: EthereumNetwork!, $baseCurrencies: [String!]!) {
  ethereum(network: $network) {
    dexTrades(
      baseCurrency: {in: $baseCurrencies}
      buyCurrency: {is: $tokenId}
      options: {desc: "trades", limit: 30}
      tradeAmountUsd: {gt: 0}
      exchangeName: {is: "Pancake v2"}
      date: {after: $after}
    ) {
      poolToken: smartContract {
        address {
          address
        }
      }
      pair: quoteCurrency {
        address
      }
      trades: count
      volume: tradeAmount(in: USD)
      exchange {
        fullName
      }
      sellCurrency {
        address
      }
    }
  }
}

Variables

{
  "baseCurrencies": [
    "0x8ac76a51cc950d9822d68b83fe1ad97b32cd580d",
    "0x2170ed0880ac9a755fd29b2688956bd959f933f8",
    "0x0e09fabb73bd3ade0a17ecc321fd13a19e81ce82",
    "0xbb4cdb9cbd36b01bd1cbaebf2de08d9173bc095c",
    "0xe9e7cea3dedca5984780bafc599bd69add087d56"
  ],
  "network": "bsc",
  "after": "2022-05-01T00:00:00Z",
  "tokenId": "0x111111111117dc0aa78b770fa6a73803420c302"
}

Similar queries