SampleQuery

Returns DEX trades on Ethereum: full name, gas, gas price, gas value, transaction hash, transaction index, nonce and 9 more fields.

By Martin · saved 5 November 2021 · run 1 time · Bitquery API v1

What it returns

The query

query SampleQuery {
  ethereum {
    dexTrades {
      exchange {
        fullName
      }
      transaction(txSender: {in: "0x9513495017a6CAd842DC456EE7f4745fB1341c56"}) {
        gas
        gasPrice
        gasValue
        hash
        index
        nonce
      }
      sellCurrency {
        address
        name
        symbol
      }
      buyCurrency {
        address
        symbol
      }
      tradeAmount(in: USDT)
      date {
        date
      }
      buyAmount(calculate: average)
      sellAmount(calculate: average)
    }
  }
}

Similar queries