tron_dex

Returns the latest 10 DEX trades on Tron, where base currency is TNUC9Q…jWFR, date since 2024-08-23 and date till 2024-08-30: timestamp time, block height, trade index, protocol, full name, address address, annotation and 7 more fields.

By George · saved 30 August 2024 · run 5 times · Bitquery API v1

What it returns

Filters

The query

query ($network: TronNetwork!, $token: String!, $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}
      baseCurrency: {is: $token}
      tradeAmountUsd: {is: 1.5}
    ) {
      block {
        timestamp {
          time(format: "%Y-%m-%d %H:%M:%S")
        }
        height
      }
      tradeIndex
      protocol
      exchange {
        fullName
      }
      smartContract {
        address {
          address
          annotation
        }
      }
      baseAmount
      base_amount_usd: baseAmount(in: USD)
      baseCurrency {
        address
        symbol
        tokenType
      }
      transaction {
        hash
      }
      address {
        address
      }
      maker {
        address
      }
      tradeAmount(in: USD)
    }
  }
}

Variables

{
  "limit": 10,
  "offset": 0,
  "network": "tron",
  "token": "TNUC9Qb1rRpS5CbWLmNMxXBjyFoydXjWFR",
  "from": "2024-08-23",
  "till": "2024-08-30T23:59:59",
  "dateFormat": "%Y-%m-%d"
}

Similar queries