Running query

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 7 October 2021 · Bitquery API v1

What it returns

Filters

The query

{
  ethereum(network: bsc) {
    dexTrades(
       any: [
        {
          sellCurrency: {is: "0xd48474e7444727bf500a32d5abe01943f3a59a64"}
          maker: {is: "0x641ED8498022961CED76E31DB6d26412c4f9C46F"} 
        }
        {
          sellCurrency: {is: "0xd48474e7444727bf500a32d5abe01943f3a59a64"}
          taker: {is: "0x641ED8498022961CED76E31DB6d26412c4f9C46F"} 
        }
        {
          sellCurrency: {is: "0xd48474e7444727bf500a32d5abe01943f3a59a64"}
          txSender: {is: "0x641ED8498022961CED76E31DB6d26412c4f9C46F"} 
        }
        {
          buyCurrency: {is: "0xd48474e7444727bf500a32d5abe01943f3a59a64"}
          maker: {is: "0x641ED8498022961CED76E31DB6d26412c4f9C46F"} 
        }
        {
          buyCurrency: {is: "0xd48474e7444727bf500a32d5abe01943f3a59a64"}
          taker: {is: "0x641ED8498022961CED76E31DB6d26412c4f9C46F"} 
        }
        {
          buyCurrency: {is: "0xd48474e7444727bf500a32d5abe01943f3a59a64"}
          txSender: {is: "0x641ED8498022961CED76E31DB6d26412c4f9C46F"} 
        }
      ]

      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