Wealth Buys/Sells

Returns DEX trades on Ethereum and BNB Chain, where buy currency is 0xB5DF…7850, sell currency is 0xB5DF…7850 and exchange name is Anyswap, 1inch Liquidity Protocol or 1 more, sorted by time interval minute buy amount USD: sell currency symbol, minute, buy amount, sell amount and buy currency symbol.

By serhii · saved 23 May 2022 · run 5 times · Bitquery API v1

What it returns

Filters

The query

{
  ethereum(network: bsc) {
    buys: dexTrades(
      buyCurrency: {is: "0xB5DFCc4dE7456cF3eD67ab08F6310a0348C57850"}
      exchangeName: {in: ["Anyswap", "1inch Liquidity Protocol", "Pancake v2"]}
      options: {asc: ["timeInterval.minute", "sellAmountUsd"], limitBy: {each: "timeInterval.minute", limit: 1}}
      tradeAmountUsd: {gt: 10}
      time: {between: ["2022-05-18", "2022-05-23"]}
    ) {
      sellCurrency {
        symbol
      }
      timeInterval {
        minute(count: 15, format: "%Y-%m-%dT%H:%M:%S.000Z")
      }
      amount: buyAmount
      buyAmountUsd: buyAmount(in: USD)
      sellAmount
      sellAmountUsd: sellAmount(in: USD)
    }
    sells: dexTrades(
      sellCurrency: {is: "0xB5DFCc4dE7456cF3eD67ab08F6310a0348C57850"}
      exchangeName: {in: ["Anyswap", "1inch Liquidity Protocol", "Pancake v2"]}
      options: {asc: ["timeInterval.minute", "buyAmountUsd"], limitBy: {each: "timeInterval.minute", limit: 1}}
      tradeAmountUsd: {gt: 10}
      time: {between: ["2022-05-18", "2022-05-23"]}
    ) {
      buyCurrency {
        symbol
      }
      timeInterval {
        minute(count: 15, format: "%Y-%m-%dT%H:%M:%S.000Z")
      }
      amount: sellAmount
      sellAmountUsd: sellAmount(in: USD)
      buyAmount
      buyAmountUsd: buyAmount(in: USD)
    }
  }
}

Similar queries