trad1

Returns DEX trades on Ethereum, where maker or taker is 0x90ca…ed9e: sell currency symbol, sell currency address, sell amount, buy currency symbol, buy currency address, buy amount, transaction hash and 6 more fields.

By harry · saved 22 August 2023 · Bitquery API v1

What it returns

Filters

The query

query ($network: EthereumNetwork!, $address: String!) {
  ethereum(network: $network) {
    dexTrades(makerOrTaker: {is: $address}) {
      sellCurrency {
        symbol
        address
        
      }
      sellAmount
      sell_amount_usd: sellAmount(in: USD)
      buyCurrency {
        symbol
        address
        
      }
      buyAmount
      transaction {
        hash
      }
      price
      date {
        date
      }
      maker {
        address
      }
      taker {
        address
      }
        smartContract {
        address {
          address
        }
      }
      protocol
    }
  }
}

Variables

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

Similar queries