sell trades for a token

Returns the latest 10 DEX trades on Ethereum and BNB Chain, where sell currency is 0xed30…1039, date since 2022-10-01 and date till 2022-10-20: timestamp time, block height, trade index, protocol, full name, maker address, taker address and 9 more fields.

By gaurav · saved 28 October 2022 · run 23 times · Bitquery API v1

What it returns

Filters

The query

{
  ethereum(network: bsc) {
    dexTrades(
      options: {desc: ["block.height", "tradeIndex"], limit: 10, offset: 0}
      date: {since: "2022-10-01", till: "2022-10-20"}
      sellCurrency: {is: "0xed308550f1fbae811734eebfe071535bae0f1039"}
    ) {
      block {
        timestamp {
          time(format: "%Y-%m-%d %H:%M:%S")
        }
        height
      }
      tradeIndex
      protocol
      exchange {
        fullName
      }
      maker {
        address
      }
      taker {
        address
      }
      transaction {
        txFrom {
          address
        }
      }
      smartContract {
        address {
          address
          annotation
        }
      }
      buyAmount
      buy_amount_usd: buyAmount(in: USD)
      buyCurrency {
        address
        symbol
      }
      sellAmount
      sell_amount_usd: sellAmount(in: USD)
      sellCurrency {
        address
        symbol
      }
    }
  }
}

Similar queries