StargateToken OHLC data on Arbitrum blockchain

Returns 10 DEX trades by token on Arbitrum, where side currency smart contract is 0x6694…1eb6 and currency smart contract is 0x82af…bab1, sorted by block time: block time, sum of trade amount, trade price and count.

By gaurav · saved 17 August 2023 · run 6 times · Bitquery API v2

What it returns

Filters

The query

{
  EVM(dataset: combined, network: arbitrum) {
    DEXTradeByTokens(
      limit: {count: 10}
      orderBy: {ascendingByField: "Block_Time"}
      where: {Trade: {Side: {Currency: {SmartContract: {is: "0x6694340fc020c5e6b96567843da2df01b2ce1eb6"}}}, Currency: {SmartContract: {is: "0x82af49447d8a07e3bd95bd0d56f35241523fbab1"}}}}
    ) {
      Block {
        Time(interval: {in: minutes, count: 60})
      }
      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)
      }
      count
    }
  }
}

Similar queries