Trades for a given address

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

By gaurav · saved 25 October 2021 · run 4 times · Bitquery API v1

What it returns

Filters

The query

{
  tron(network: tron) {
    dexTrades(
      options: {desc: ["block.height", "tradeIndex"], limit: 10, offset: 0}
      date: {since: "2021-10-25", till: null}
      any: [{maker: {is: "TY7J38273wJHsG44LmttrJMSnXxd8oNpGR"}, 
        taker: {is: "TY7J38273wJHsG44LmttrJMSnXxd8oNpGR"}}]
    ) {
      block {
        timestamp {
          time(format: "%Y-%m-%d %H:%M:%S")
        }
        height
      }
      tradeIndex
      protocol
      exchange {
        fullName
      }
      smartContract {
        address {
          address
          annotation
        }
      }
      baseAmount
      baseCurrency {
        address
        symbol
        tokenType
      }
      quoteAmount
      quoteCurrency {
        address
        symbol
        tokenType
      }
      maker {
        address
      }
      taker {
        address
      }
      transaction {
        hash
      }
    }
  }
}

Similar queries