Multicurrency trade 1

Returns DEX trades on Ethereum and BNB Chain, where time since 2020-10-06, 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 21 October 2021 · Bitquery API v1

What it returns

Filters

The query

{
  ethereum(network: bsc) {
    dexTrades(
      any: [{sellCurrency: {is: "0x83a86adf1a7c56e77d36d585b808052e0a2aad0e"},
        maker: {is: "0x43f25daAf5ec2A84ee0525569ff5a39ba251415c"}},
        {sellCurrency: {is: "0x83a86adf1a7c56e77d36d585b808052e0a2aad0e"}, 
          taker: {is: "0x43f25daAf5ec2A84ee0525569ff5a39ba251415c"}}, 
        {sellCurrency: {is: "0x83a86adf1a7c56e77d36d585b808052e0a2aad0e"},
          txSender: {is: "0x43f25daAf5ec2A84ee0525569ff5a39ba251415c"}}, 
        {buyCurrency: {is: "0x83a86adf1a7c56e77d36d585b808052e0a2aad0e"},
          maker: {is: "0x43f25daAf5ec2A84ee0525569ff5a39ba251415c"}},
        {buyCurrency: {is: "0x83a86adf1a7c56e77d36d585b808052e0a2aad0e"}, 
          taker: {is: "0x43f25daAf5ec2A84ee0525569ff5a39ba251415c"}}, 
        {buyCurrency: {is: "0x83a86adf1a7c56e77d36d585b808052e0a2aad0e"}, 
          txSender: {is: "0x43f25daAf5ec2A84ee0525569ff5a39ba251415c"}}]
      time: {since: "2020-10-06T00:00:00"}
      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