USDT trade stats on Tron

Returns DEX trades on Tron, where base currency is TR7NHq…Lj6t, date since 2023-08-08 and date till 2023-08-15, sorted by date date: date date, count big int, buy amount, base currency symbol and buy currency name.

By Divyasshree N · saved 15 August 2023 · Bitquery API v1

What it returns

Filters

The query

query ($network: TronNetwork!, $dateFormat: String!, $token: String!, $from: ISO8601DateTime, $till: ISO8601DateTime) {
  tron(network: $network) {
    dexTrades(
      options: {asc: "date.date"}
      date: {since: $from, till: $till}
      baseCurrency: {is: $token}
    ) {
      date: date {
        date(format: $dateFormat)
      }
      trades: countBigInt
      buyAmount(calculate: sum)
      buy_amount_usd: buyAmount(in: USD)
      baseCurrency {
        symbol
      }
      contracts: countBigInt(uniq: smart_contracts)
      currencies: countBigInt(uniq: quote_currency)
      buyCurrency {
        name
      }
    }
  }
}

Variables

{
  "network": "tron",
  "token": "TR7NHqjeKQxGTCi8q8ZY4pL8otSzgjLj6t",
  "from": "2023-08-08",
  "till": "2023-08-15T23:59:59",
  "dateFormat": "%Y-%m-%d"
}

Similar queries