solana ohlc updated 3

solana ohlc updated 2

Returns the latest 2 DEX trades by token on Solana, where currency mint address is 5m6rFm…pump and side currency mint address is So1111…1112: block time, currency name, side currency name and trade price.

By Divyasshree · saved 13 December 2024 · run 4 times · Bitquery API v2

What it returns

Filters

The query

{
  Solana(dataset: combined) {
    DEXTradeByTokens(
      limit: {count: 2}
      orderBy: {descendingByField: "Block_timefield"}
      where: {Transaction: {Result: {Success: true}}, Trade: {Currency: {MintAddress: {is: "5m6rFmP28HSsmmNC6ngmNwbT2FKg1j2n9QT1vYeqpump"}}, Side: {Currency: {MintAddress: {is: "So11111111111111111111111111111111111111112"}}}}}
    ) {
      Block {
        timefield: Time(interval: {in: minutes, count: 1})
      }
      Trade {
        Currency {
          Name
        }
        Side {
          Currency {
            Name
          }
        }
        high: Price(maximum: Trade_Price)
        low: Price(minimum: Trade_Price)
        open: Price(minimum: Block_Slot)
        close: Price(maximum: Block_Slot)
      }
    }
  }
}

Similar queries