historical-ohlc-for-solana

Returns 3 DEX trades by token on Solana, where currency mint address is J22UfG…hkwY, sorted by block timefield: sum of trade amount, price in USD, block time and count.

By ytokpa · saved 5 December 2024 · run 8 times · Bitquery API v2

What it returns

Filters

The query

{
  Solana(dataset: archive) {
    DEXTradeByTokens(
      orderBy: {ascendingByField: "Block_Timefield"}
      where: {Trade: {Currency: {MintAddress: {is: "J22UfGMNMtDzwxE8RwYdcQZeyKEif2CwGepNmSkzhkwY"}}}}
      limit: {count: 3}
    ) {
      volume: sum(of: Trade_Amount)
      Trade {
        high: PriceInUSD(maximum: Trade_Price)
        low: PriceInUSD(minimum: Trade_Price)
        open: PriceInUSD(minimum: Block_Slot)
        close: PriceInUSD(maximum: Block_Slot)
      }
      Block {
        Timefield: Time(interval: {in: minutes, count: 1})
      }
      count
    }
  }
}

Similar queries