GetTradesForWallet

Returns the latest DEX trades on Ethereum and BNB Chain, where quote currency is 0x8173…b1b7 and exchange name is Pancake v2: timestamp time, base amount, base currency address, base currency symbol, quote amount, quote currency address, quote currency symbol and 6 more fields.

By Tyler · saved 11 February 2022 · run 1 time · Bitquery API v1

What it returns

Filters

The query

query GetTradesForAddress( $since: ISO8601DateTime, $till: ISO8601DateTime, $limit: Int, $offset: Int) {
  ethereum(network: bsc) {
    dexTrades(
      options: {desc: ["block.timestamp.time"], limit: $limit, offset: $offset}

      exchangeName: {in: ["Pancake v2"]}
      time: {after: $since, before: $till}   
      quoteCurrency: {is: "0x8173ccc721111b5a93ce7fa6fec0fc077b58b1b7"}
    ) {
      block {
        timestamp {
          time(format: "%Y-%m-%d %H:%M:%S")
        }
      }
      baseAmount
      baseCurrency {
        address
        symbol
      }
      quoteAmount
      quoteCurrency {
        address
        symbol
      }
      transaction {
        hash
        txFrom {
          address
        }
      }
      tradeAmount(in: USD)
      buyAmount(in: USD)
      sellAmount(in: USD)
      side      
    }
  }
}

Similar queries