swap wallet by token Climber

All swaps token for wallet

Returns the latest DEX trades on Ethereum and BNB Chain, where maker or taker is 0x9Ae1…4197: transaction hash, trade index, date date, block height, buy amount, buy currency symbol, buy currency address and 7 more fields.

By Julien Rousset · saved 21 January 2022 · Bitquery API v1

What it returns

Filters

The query

{
  ethereum(network: bsc) {
    dexTrades(
      any: [{
        sellCurrency :{ is: "0x8d53c97cc58e932d03844a50494bc9f4c416bafd"}
      },
      {
        buyCurrency :{ is: "0x8d53c97cc58e932d03844a50494bc9f4c416bafd"}
      }]
      options: {desc: "block.height"}
      makerOrTaker: {is: "0x9Ae1A117Bca539cCA73C7B665E4C0A311B764197"}
    ) {
      transaction {
        hash
      }
      tradeIndex
      date {
        date
      }
      block {
        height
      }
      buyAmount
      buyAmountInUsd: buyAmount(in: USD)
      buyCurrency {
        symbol
        address
      }
      sellAmount
      sellAmountInUsd: sellAmount(in: USD)
      sellCurrency {
        symbol
        address
      }
      sellAmountInUsd: sellAmount(in: USD)
      tradeAmount(in: USD)
      transaction {
        gasValue
        gasPrice
        gas
      }
    }
  }
}

Similar queries