dexTrade

Returns the latest 25000 DEX trades on Ethereum, where maker or taker is 0xa57B…d6CF: transaction hash, gas value, gas price, gas, address address, contract type, currency name and 12 more fields.

By Ivan · saved 24 June 2023 · run 2 times · Bitquery API v1

What it returns

Filters

The query

  query ($address: String, $limit: Int, $offset: Int) {
        ethereum(network: ethereum) {
          dexTrades(
            options: { desc: "block.height", limit: $limit, offset: $offset }
            makerOrTaker: { is: $address }
          ) {
            transaction {
              hash
              gasValue
              gasPrice
              gas
            }
            smartContract {
              address {
                address
              }
              contractType
              currency {
                name
              }
              protocolType
            }
            block {
              height
              timestamp {
                iso8601
              }
            }
            buyAmount
            buyAmountInUsd: buyAmount(in: USD)
            buyCurrency {
              symbol
              address
            }
            sellCurrency {
              symbol
              address
            }
            tradeAmount(in: ETH)
            sellAmount
            sellAmountInUsd: sellAmount(in: USD)
            exchange {
              fullName
              fullNameWithId
            }
            gasValue(in: USD)
          }
        }
      }

Variables

{"address": "0xa57Bd00134B2850B2a1c55860c9e9ea100fDd6CF",
"limit": 25000,
"offset": 0}

Similar queries