sells_bruh

Returns the latest 5 DEX trades on Ethereum and BNB Chain, where smart contract address is 0xacb7…bc4b, date since 2023-05-08 and date till 2023-05-10: timestamp time, block height, full name, buy amount, buy currency symbol, buy currency address, sell amount and 5 more fields.

By Jeorgia · saved 14 May 2023 · run 8 times · Bitquery API v1

What it returns

Filters

The query

query ($network: EthereumNetwork!, $limit: Int!, $offset: Int!, $address: String!, $from: ISO8601DateTime, $till: ISO8601DateTime) {
  ethereum(network: $network) {
    dexTrades(
      options: {desc: "block.height", limit: $limit, offset: $offset}
      date: {since: $from, till: $till}
      smartContractAddress: {is: $address}
    ) {
      block {
        timestamp {
          time(format: "%Y-%m-%d %H:%M:%S")
        }
        height
      }
      exchange {
        fullName
      }
      buyAmountInBNB: buyAmount
      buyAmountInUSD: buyAmount(in: USD)
      buyCurrency {
        symbol
        address
      }
      sellAmountInBNB: sellAmount
      sellAmountInUSD: sellAmount(in: USD)
      sellCurrency {
        address
        symbol
      }
      transaction {
        hash
      }
      maker {
        address
        annotation
      }
    }
  }
}

Variables

{
  "limit": 5,
  "offset": 0,
  "network": "bsc",
  "address": "0xacb7027ebd04e9c636d6f78635ad2327a98cbc4b",
  "from": "2023-05-08",
  "till": "2023-05-10T23:59:59",
  "dateFormat": "%Y-%m-%d"
}

Similar queries