Transactions (Kevin)

Returns 500 DEX trades on Ethereum and BNB Chain, where buy currency is 0x8d3e…c851 or 0xbb4c…095c, sell currency is 0x8d3e…c851 or 0xbb4c…095c and exchange name is Pancake v2 or Uniswap, sorted by time interval second, highest first: second, buy currency symbol, buy currency address, sell currency symbol, sell currency address, buy amount, sell amount and 6 more fields.

By @Longhorns87! · saved 12 September 2022 · run 7 times · Bitquery API v1

What it returns

Filters

The query

query TransactionsByAddress($start: ISO8601DateTime, $end: ISO8601DateTime, $contract: String!, $base: String!, $network: EthereumNetwork!) {
  ethereum(network: $network) {
    dexTrades(
      options: {limit: 500, desc: "timeInterval.second"}
      date: {since: $start, till: $end}
      exchangeName: {in: ["Pancake v2", "Uniswap"]}
      buyCurrency: {in: [$contract, $base]}
      sellCurrency: {in: [$contract, $base]}
    ) {
      timeInterval {
        second(format: "%FT%TZ", count: 1)
      }
      buyCurrency {
        symbol
        address
      }
      sellCurrency {
        symbol
        address
      }
      buyAmount
      sellAmount
      buyAmountUsd: buyAmount(in: USD)
      sellAmountUsd: sellAmount(in: USD)
      count
      taker {
        address
      }
      maker {
        address
      }
      transaction {
        txFrom {
          address
        }
        to {
          address
        }
        hash
      }
    }
  }
}

Variables

{
  "options": {
    "limit": 500,
    "desc": "timeInterval.second",
    "offset": 0
  },
  "contract": "0x8d3e3a57c5f140b5f9feb0d43d37a347ee01c851",
  "network": "bsc",
  "base": "0xbb4cdb9cbd36b01bd1cbaebf2de08d9173bc095c"
}

Similar queries