buy_sell_hold

Returns the latest 10000 DEX trades on Ethereum, where date after 2023-11-02: base amount, buy amount, block height, unixtime, sell amount, tx from address, gas value and 7 more fields.

By Oluwatomisin · saved 5 November 2023 · run 8 times · Bitquery API v1

What it returns

Filters

The query

query get_dex_trades($address: String, $date: ISO8601DateTime) {
  ethereum {
    dexTrades(
      options: {limit: 10000, desc: "block.timestamp.unixtime"}
      date: {after: $date}
    ) {
      baseAmount(in: USD)
      buyAmount(in: USD)
      block {
        height
        timestamp {
          unixtime
        }
      }
      sellAmount(in: USD)
      transaction(txSender: {is: $address}) {
        txFrom {
          address
        }
        gasValue
        hash
      }
      side
      quoteCurrency {
        name
        symbol
        address
      }
      quoteAmount
      tradeIndex
    }
  }
}

Variables

{
        "address": "0x73a3225e206b236c63c34d828d9324cce7ae20cb",
        "date": "2023-11-02"
    }

Similar queries