empty Token pair USDC (USD Coin (Arb1)) vs WETH (Wrapped Ether)

amount gt: 0.0001

Returns 10 DEX trades by token on Arbitrum, where side currency smart contract is 0xff97…5cc8, currency smart contract is 0x82af…bab1 and block date since 2021-01-14, sorted by block time: chain ID, block time, sum of trade amount, trade price, side currency symbol, currency symbol and count.

By Nadia · saved 20 July 2023 · run 2 times · Bitquery API v2

What it returns

Filters

The query

query ($network: evm_network, $interval: Int, $from: String, $till: String, $baseCurrency: String, $quoteCurrency: String) {
  EVM(network: $network, dataset: combined) {
    DEXTradeByTokens(
      orderBy: {ascendingByField: "Block_Time"}
      where: {Trade: {Side: {Currency: {SmartContract: {is: $baseCurrency}, Symbol: {}}, Amount: {gt: "0.0001"}}, Currency: {SmartContract: {is: $quoteCurrency}}, Amount: {gt: "0.0001"}}, Block: {Date: {since: $from, till: $till}}}
      limit: {count: 10}
    ) {
      ChainId
      Block {
        Time(interval: {in: minutes, count: $interval})
      }
      volume: sum(of: Trade_Amount)
      Trade {
        high: Price(maximum: Trade_Price)
        low: Price(minimum: Trade_Price)
        open: Price(minimum: Block_Number)
        close: Price(maximum: Block_Number)
        Side {
          Currency {
            Symbol
          }
        }
        Currency {
          Symbol
        }
      }
      count
    }
  }
}

Variables

{
  "network": "arbitrum",
  "interval": 15,
  "from": "2021-01-14",
  "till": "2023-06-20",
  "baseCurrency": "0xff970a61a04b1ca14834a43f5de4533ebddb5cc8",
  "quoteCurrency": "0x82af49447d8a07e3bd95bd0d56f35241523fbab1"
}

Similar queries