token-trades both buy sell amount

buy and sell amount of BLUR token

Returns DEX trades on Ethereum, where buy currency smart contract is 0x5283…8b44, sell currency smart contract is 0x5283…8b44 and block time since 2023-03-03: buy currency name, buy currency symbol, buy smart contract, sum of trade buy amount, sell currency name, sell smart contract, sell currency symbol and sum of trade sell amount.

By Divyasshree N · saved 9 October 2023 · run 1 time · Bitquery API v2

What it returns

Filters

The query

{
  EVM(dataset: combined, network: eth) {
    buyside: DEXTrades(
      where: {Trade: {Buy: {Currency: {SmartContract: {is: "0x5283d291dbcf85356a21ba090e6db59121208b44"}}}}, Block: {Time: {since: "2023-03-03T01:00:00Z", till: "2023-03-05T05:15:23Z"}}}
    ) {
      Trade {
        Buy {
          Currency {
            Name
            Symbol
            SmartContract
          }
        }
      }
      buyamount: sum(of: Trade_Buy_Amount)
    }
    sellside: DEXTrades(
      where: {Trade: {Sell: {Currency: {SmartContract: {is: "0x5283d291dbcf85356a21ba090e6db59121208b44"}}}}, Block: {Time: {since: "2023-03-03T01:00:00Z", till: "2023-03-05T05:15:23Z"}}}
    ) {
      Trade {
        Sell {
          Currency {
            Name
            SmartContract
            Symbol
          }
        }
      }
      sellamount: sum(of: Trade_Sell_Amount)
    }
  }
}

Similar queries