latest_swaps_of_address

Returns the latest 10 DEX trades on Ethereum, where tx sender is 0xf4ef…fc4e: timestamp time, block height, trade index, protocol, full name, address address, annotation and 7 more fields.

By Omkar Acharekar · saved 30 August 2023 · run 12 times · Bitquery API v1

What it returns

Filters

The query

query ($network: EthereumNetwork!) {
  ethereum(network: $network) {
    dexTrades(
      options: {desc: ["block.height", "tradeIndex"], limit: 10}
      txSender: {is: "0xf4efd757bd1eb9560dcf503a176bbc06d320fc4e"}
    ) {
      block {
        timestamp {
          time(format: "%Y-%m-%d %H:%M:%S")
        }
        height
      }
      tradeIndex
      protocol
      exchange {
        fullName
      }
      smartContract {
        address {
          address
          annotation
        }
      }
      buyAmount
      buyCurrency {
        address
        symbol
      }
      buy_amount_usd: buyAmount(in: USD)
      sellAmount
      sellCurrency {
        address
        symbol
      }
      sell_amount_usd: sellAmount(in: USD)
      transaction {
        hash
      }
    }
  }
}

Variables

{
  "network": "ethereum",
  "from": null,
  "till": null
}

Similar queries