just_ch3ce

Returns DEX trades on Ethereum, where maker or taker is 0x1c95…d810: buy currency symbol, buy currency address, buy amount, sell currency symbol, sell currency address, sell amount, address address and 2 more fields.

By Omkar Acharekar · saved 5 July 2023 · run 1 time · Bitquery API v1

What it returns

Filters

The query

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

Variables

{
  "limit": 10,
  "offset": 0,
  "network": "ethereum",
  "address": "0x1c9529de5435f7c3f7ce1571a131f5571bced810",
  "from": "2023-06-28",
  "till": "2023-07-05T23:59:59",
  "dateFormat": "%Y-%m-%d"
}

Similar queries