blah

Returns the latest 10 DEX trades by token on Solana, where DEX program address is 6EF8rr…wF6P and currency mint address is ED5nyy…PJBY: block time, sum of trade amount and trade price.

By Cesar Pablo · saved 22 December 2024 · run 2 times · Bitquery API v2

What it returns

Filters

The query

query SolanaOHLC {
  Solana {
    DEXTradeByTokens(
      limit: { count: 10 }
      orderBy: { descending: Block_Time }
      where: {
        Trade: {
          Dex: { ProgramAddress: { is: "6EF8rrecthR5Dkzon8Nwu78hRvfCKubJ14M5uBEwF6P" } }
          Currency: { MintAddress: { is: "ED5nyyWEzpPPiWimP8vYm7sD7TD3LAt3Q3gRTWHzPJBY" } }
        }
      }
    ) {
      Block {
        Time
      }
      volume: sum(of: Trade_Amount)
      Trade {
        high: Price(maximum: Trade_Price)
        low: Price(minimum: Trade_Price)
        open: Price(minimum: Block_Time)
        close: Price(maximum: Block_Time)
      }
    }
  }
}


Similar queries