date filter

Returns 100 DEX trades on Ethereum and BNB Chain, where base currency is 0xe283…f688, date since 2021-06-01 and date till 2021-06-05, sorted by trade amount, highest first: timestamp time, block height, trade index, full name, base amount, base currency address, base currency symbol and 10 more fields.

By gaurav · saved 8 June 2021 · run 17 times · Bitquery API v1

What it returns

Filters

The query

query ($network: EthereumNetwork!, $token: String!, $limit: Int!, $offset: Int!, $since: ISO8601DateTime, $till: ISO8601DateTime) {
  ethereum(network: $network) {
    dexTrades(
      options: {desc: ["tradeAmount"], limit: $limit, offset: $offset}
      date: {since: $since, till: $till}
      baseCurrency: {is: $token}
    ) {
      block {
        timestamp {
          time(format: "%Y-%m-%d %H:%M:%S")
        }
        height
      }
      tradeIndex
      exchange {
        fullName
      }
      baseAmount
      baseCurrency {
        address
        symbol
      }
      quoteAmount
      quoteCurrency {
        address
        symbol
      }
      transaction {
        hash
        txFrom {
          address
        }
      }
      tradeAmount(in: USD)
      buyAmount(in: USD)
      sellAmount(in: USD)
      gasPrice
      gasValue(in: USD)
    }
  }
}

Variables

{
"wallet": "0x64edCA441aaE7B3dDA4B23f2cd6546c501ab894f",
"limit": 100,
"offset": 0,
"network": "bsc",
"token": "0xe283d0e3b8c102badf5e8166b73e02d96d92f688",
"since": "2021-06-01",
"till": "2021-06-05",
"dateFormat": "%Y-%m-%d"
}

Similar queries