token_bsc

Returns 10 DEX trades on Ethereum and BNB Chain, where maker or taker is 0xE3A7…b081, sorted by count, highest first: sell currency symbol, sell currency address, sell amount, buy currency symbol, buy currency address, buy amount, count and 3 more fields.

By Oluwatomisin · saved 18 March 2024 · run 29 times · Bitquery API v1

What it returns

Filters

The query

query ($network: EthereumNetwork!, $limit: Int!, $offset: Int!, $from: ISO8601DateTime, $till: ISO8601DateTime, $address: String!) {
  ethereum(network: $network) {
    dexTrades(
      options: {desc: "count", limit: $limit, offset: $offset}
      date: {since: $from, till: $till}
      makerOrTaker: {is: $address}
    ) {
      sellCurrency {
        symbol
        address
      }
      sellAmount
      sell_amount_usd: sellAmount(in: USD)
      buyCurrency {
        symbol
        address
      }
      buyAmount
      buy_amount_usd: buyAmount(in: USD)
      count
      median_price: price(calculate: median)
      last_price: maximum(of: block, get: price)
      dates: count(uniq: dates)
      started: minimum(of: date)
    }
  }
}

Variables

{
  "limit": 10,
  "offset": 0,
  "network": "bsc",
  "address": "0xE3A73d32E49802D201eAb55F46C17a4AE87cb081",
  "from": null,
  "till": null,
  "dateFormat": "%Y-%m"
}

Similar queries