roko_trade

Returns the latest DEX trades on Ethereum, where smart contract address is 0xe007…dafe and tx hash is 0xab7c…7ea4: sell currency symbol, sell currency address, sell amount, buy currency symbol, buy currency address, buy amount, expression and 7 more fields.

By Omkar_BQ · saved 22 August 2023 · run 5 times · Bitquery API v1

What it returns

Filters

The query

query ($network: EthereumNetwork!) {
  ethereum(network: $network) {
    dexTrades(
      smartContractAddress: {is: "0xe0076d311a4628516d157ad684dbd2ddada3dafe"}
      txHash:{is:"0xab7c285102cbc4776e21ce243f17cf630c9125c9f4ab03b963bcb02b15347ea4"}
      options: {desc: "block.height"}
    ) {
      sellCurrency {
        symbol
        address
      }
      sellAmount
      sellAmountUSD: sellAmount(in: USD)
      buyCurrency {
        symbol
        address
      }
      buyAmount
      buyAmountUSD: buyAmount(in: USD)
      usdPrice: expression(get: "buyAmountUSD / sellAmount")
      usdPrice1: expression(get: "sellAmountUSD / buyAmount")
      transaction {
        hash
      }
      date {
        date
      }
      maker {
        address
      }
      taker {
        address
      }
      protocol
      smartContract {
        address {
          address
        }
      }
      block {
        height
      }
    }
  }
}

Variables

{
  "network": "ethereum",
  "address": "0x90caa215693b2e5c83bf16898384270fdbb8ed9e"
}

Similar queries