OHLC price of a ILV in a specific day

Returns one DEX trade by token on Ethereum, where currency smart contract is 0x767f…ca0e, side currency smart contract is 0xdac1…1ec7 and block date is 2024-05-01: chain ID, sum of trade amount, price in USD, side currency symbol, currency symbol and count.

By gaurav · saved 14 May 2024 · run 2 times · Bitquery API v2

What it returns

Filters

The query

{
  EVM(network: eth, dataset: combined) {
    DEXTradeByTokens(
      limit: {count: 1}
      where: {Trade: {PriceAsymmetry: {le: 0.01}, Currency: {SmartContract: {is: "0x767fe9edc9e0df98e07454847909b5e959d7ca0e"}}, Side: {Currency: {SmartContract: {is: "0xdac17f958d2ee523a2206206994597c13d831ec7"}}}}, Block: {Date: {is: "2024-05-01"}}}
    ) {
      ChainId
      volume: sum(of: Trade_Amount)
      Trade {
        high: PriceInUSD(maximum: Trade_PriceInUSD)
        low: PriceInUSD(minimum: Trade_PriceInUSD)
        open: PriceInUSD(minimum: Block_Number)
        close: PriceInUSD(maximum: Block_Number)
        Side {
          Currency {
            Symbol
          }
        }
        Currency {
          Symbol
        }
      }
      count
    }
  }
}

Similar queries