TRON Token trades

Returns the latest 10 DEX trades on Tron, where date since 2021-10-31: timestamp time, block height, trade index, protocol, full name, address address, annotation and 8 more fields.

By Mann · saved 31 October 2021 · run 4 times · Bitquery API v1

What it returns

Filters

The query

query ($network: TronNetwork!, $limit: Int!, $offset: Int!, $from: ISO8601DateTime, $till: ISO8601DateTime) {
  tron(network: $network) {
    dexTrades(
      options: {desc: ["block.height", "tradeIndex"], limit: $limit, offset: $offset}
      date: {since: $from, till: $till}
    ) {
      block {
        timestamp {
          time(format: "%Y-%m-%d %H:%M:%S")
        }
        height
      }
      tradeIndex
      protocol
      exchange {
        fullName
      }
      smartContract {
        address {
          address
          annotation
        }
      }
      buyAmount
      buyCurrency {
        address
        symbol
        tokenType
      }
      sellAmount
      sellCurrency {
        address
        symbol
        tokenType
      }
      transaction {
        hash
      }
    }
  }
}

Variables

{
  "limit": 10,
  "offset": 0,
  "network": "tron",
  "from": "2021-10-31",
  "till": null,
  "dateFormat": "%Y-%m-%d"
}

Similar queries