dex-trades

Returns the latest 10000 DEX trades on Ethereum and BNB Chain, where tx sender is 0xf0fb…1ce1, date since 2022-07-13 and date till 2023-01-01: iso8601, timestamp time, gas value, maker address, taker address, full name, buy currency address and 6 more fields.

By Domingo Sebastian · saved 10 May 2023 · run 4 times · Bitquery API v1

What it returns

Filters

The query

query ($network: EthereumNetwork!, $address: String!, $from: ISO8601DateTime, $till: ISO8601DateTime) {
  ethereum(network: $network) {
    dexTrades(
      options: {desc: "block.timestamp.time", ascByInteger: "tradeIndex", offset: 0, limit: 10000}
      date: {since: $from, till: $till}
      txSender: {is: $address}
    ) {
      block {
        timestamp {
          iso8601
          time
        }
      }
      gasValue
      gasValueInUSD: gasValue(in: USD)
      maker {
        address
      }
      taker {
        address
      }
      exchange {
        fullName
      }
      buyCurrency {
        address
      }
      sellCurrency {
        address
      }
      transaction {
        hash
        to {
          address
        }
      }
      buyAmount
      buyAmountInUSD: buyAmount(in: USD)
      sellAmount
      sellAmountInUSD: sellAmount(in: USD)
      tradeIndex
    }
  }
}

Variables

{"address":"0xf0fbf42c54ac40da016003bad35e5aefac6e1ce1",
  "from":"2022-07-13T00:00:00Z",
  "network":"bsc",
  "till":"2023-01-01T00:00:00Z"}

Similar queries