Trade Frequency Sample

Returns 10 DEX trades on Ethereum and BNB Chain, where base currency is 0xe2F9…97Bd, date since 2019-12-31 and date till 2022-11-16, sorted by trade amount, highest first: count, taker address, annotation and trade amount.

By wisoxe8356@jernang.com · saved 16 November 2022 · run 2 times · Bitquery API v1

What it returns

Filters

The query

query ($network: EthereumNetwork!, $from: ISO8601DateTime, $till: ISO8601DateTime, $limit: Int!, $offset: Int! $tokenAddress: String!) {
  ethereum(network: $network) {
    dexTrades(
      options: {desc: "tradeAmount", limit: $limit, offset: $offset}
      date: {since: $from, till: $till}
      baseCurrency: {is: $tokenAddress}
    ) {
      trades: count
      address: taker {
        address
        annotation
      }
      tradeAmount(in: USD)
      buy_currency_count: count(uniq: buy_currency)
      sell_currency_count: count(uniq: sell_currency)
    }
  }
}

Variables

{
  "limit": 10,
  "offset": 0,
  "network": "bsc",
  "from": "2019-12-31",
  "till": "2022-11-16T23:59:59",
  "dateFormat": "%Y-%m-%d",
  "tokenAddress": "0xe2F92881d607cE6Dc34C35Ef307d3EC4B60f97Bd"
}

Similar queries