binance token trade

Returns trades, where date since 2022-02-08 and date till 2022-03-09, sorted by date date: date date and count big int.

By Shashank · saved 9 March 2022 · run 40 times · Bitquery API v1

What it returns

Filters

The query

query ($token: String!, $dateFormat: String!, $from: ISO8601DateTime, $till: ISO8601DateTime, $token1: String!) {
  binance {
    trades(
      any: [{baseCurrency: {is: $token}}, {quoteCurrency: {is: $token1}}]
      date: {since: $from, till: $till}
      options: {asc: "date.date"}
    ) {
      date {
        date(format: $dateFormat)
      }
      baseCount: countBigInt(baseCurrency: {is: $token})
      quoteCount: countBigInt(quoteCurrency: {is: $token1})
    }
  }
}

Variables

{
  "limit": 10,
  "offset": 0,
  "token": "BNB",
  "token1": "BUSD-BD1",
  "from": "2022-02-08",
  "till": "2022-03-09T23:59:59",
  "dateFormat": "%Y-%m-%d"
}

Similar queries