safemoon smartcontract

Returns 10 DEX trades on Ethereum and BNB Chain, where base currency is 0x8076…d8d3 and date since 2022-03-29, sorted by count, highest first: quote currency symbol, quote currency name, quote currency address and count.

By Aman · saved 1 April 2022 · Bitquery API v1

What it returns

Filters

The query

query ($network: EthereumNetwork!, $from: ISO8601DateTime, $till: ISO8601DateTime, $baseCurrency: String, $limit: Int!, $offset: Int!) {
  ethereum(network: $network) {
    dexTrades(
      baseCurrency: {is: $baseCurrency}
      date: {since: $from, till: $till}
      options: {desc: "count", limit: $limit, offset: $offset}
    ) {
      quoteCurrency {
        symbol
        name
        address
      }
      count
    }
  }
}

Variables

{
  "limit": 10,
  "offset": 0,
  "network": "bsc",
  "baseCurrency": "0x8076c74c5e3f5852037f31ff0093eeb8c8add8d3",
  "from": "2022-03-29",
  "till": null,
  "dateFormat": "%Y-%m-%d"
}

Similar queries