who sold your token?

Returns 10 DEX trades on Ethereum and BNB Chain, where buy currency is 0xbb4c…095c, sell currency is 0x43a0…2767 and date since 2021-09-15, sorted by sell amount trade index, highest first: timestamp time, block height, trade index, protocol, full name, address address, annotation and 9 more fields.

By gaurav · saved 15 September 2022 · run 11 times · Bitquery API v1

What it returns

Filters

The query

query ($network: EthereumNetwork!, $limit: Int!, $offset: Int!, $from: ISO8601DateTime, $till: ISO8601DateTime) {
  ethereum(network: $network) {
    dexTrades(
      options: {desc: ["sellAmount", "tradeIndex"], limit: $limit, offset: $offset}
      date: {since: $from, till: $till}
      buyCurrency: {is: "0xbb4cdb9cbd36b01bd1cbaebf2de08d9173bc095c"}
      sellCurrency: {is: "0x43a0c5eb1763a211aa3c05849a617f2ee0452767"}
    ) {
      block {
        timestamp {
          time(format: "%Y-%m-%d %H:%M:%S")
        }
        height
      }
      tradeIndex
      protocol
      exchange {
        fullName
      }
      smartContract {
        address {
          address
          annotation
        }
      }
      buyAmount
      buyCurrency {
        address
        symbol
      }
      buy_Amount_usd: buyAmount(in: USD)
      sellAmount
      sellCurrency {
        address
        symbol
      }
      transaction {
        to {
          address
          annotation
        }
        txFrom {
          address
          annotation
        }
      }
      sellAmount_usd: sellAmount(in: USD)
      transaction {
        hash
      }
    }
  }
}

Variables

{
  "limit": 10,
  "offset": 0,
  "network": "bsc",
  "token": "0x43a0c5eb1763a211aa3c05849a617f2ee0452767",
  "from": "2021-09-15",
  "till": "2022-09-15T23:59:59",
  "dateFormat": "%Y-%m-%d"
}

Similar queries