Price change of token in time period on Solana

Returns DEX trades by token on Solana, where currency mint address is J1toso…GCPn, side currency mint address is So1111…1112 and block time since 2025-01-21: protocol name and trade price.

By Divyasshree · saved 21 January 2025 · Bitquery API v2

What it returns

Filters

The query

query MyQuery {
  Solana(dataset: realtime) {
    Timestamp1: DEXTradeByTokens(
      where: {Trade: {Currency: {MintAddress: {is: "J1toso1uCk3RLmjorhTtrVwY9HJ7X8V9yYac6Y7kGCPn"}}, Side: {Currency: {MintAddress: {is: "So11111111111111111111111111111111111111112"}}}}, Block: {Time: {since: "2025-01-21T04:00:00Z", till: "2025-01-21T08:00:00Z"}}}
    ) {
      Trade {
        Dex {
          ProtocolName
        }
        open: Price(minimum: Block_Time)
        close: Price(maximum: Block_Time)
      }
    }
  }
}

Similar queries