Trades for a user ..for a given currency

Returns DEX trades on Ethereum and BNB Chain, where maker or taker is 0x641E…C46F and time since 2020-09-01, sorted by block timestamp iso8601, highest first: buy amount, sell amount, price, trade amount, buy currency address, buy currency name, buy currency symbol and 9 more fields.

By gaurav · saved 19 August 2021 · Bitquery API v1

What it returns

Filters

The query

{
  ethereum(network: bsc) {
    dexTrades(
      makerOrTaker: {is: "0x641ED8498022961CED76E31DB6d26412c4f9C46F"}    
      any: [
        {sellCurrency: {is: "0xd48474e7444727bf500a32d5abe01943f3a59a64"}}
        {buyCurrency: {is: "0xd48474e7444727bf500a32d5abe01943f3a59a64"}}
      ]
      time: {since : "2020-09-01T00:00Z"}
      options: {desc: "block.timestamp.iso8601"}) {
      buyAmount
      sellAmount
      price
      tradeAmount(in: USD)
      buyCurrency {
        address
        name
        symbol
        decimals
      }
      sellCurrency {
        address
        name
        symbol
        decimals
      }
      block {
        timestamp {
          iso8601
        }
      }
      transaction {
        hash
        txFrom {
          address
        }
        to {
          address
          }
      }
      exchange {
        fullName
      }
    }
  }
}

Similar queries