Getting Started
1. Activate Solana Market Data
- Log in to your GetBlock account
- Under Products, select Solana Market Data

- To subscribe, select any payment option best for you:
- Card
- Crypto
- Prepaid credits
Click the side drawer to select your preferred payment method, then complete the purchase.

- Once the subscription is active, your API key will be enabled for Solana Market Data.
Need an API key? You can create one API Key tab
2. Select a token pair
Solana Market Data returns market information for a specific token pair.
To choose the market you want to track, provide the mint addresses for:
- Base Mint — the asset you want to analyze
- Quote Mint — the asset used to price it
For example, to receive market data for SOL/USDC, select the corresponding SOL and USDC mint addresses as your base and quote assets.

The selected pair is then applied across the available methods, including Trades, Blocks, VWAP1, TWAP2, Volume, and OHLCV3.
You can select the Base Mint and Quote Mint directly in the Playground to explore the data for a specific pair before integrating it into your application.
3. Choose the data you need
Solana Market Data provides several levels of processed market information.
Choose the method that best matches your use case:
| Method | Best for |
|---|---|
| Trades | Individual normalized trades |
| Blocks | Market activity aggregated by Solana slot |
| VWAP | Volume-weighted market price |
| TWAP | Time-weighted market price |
| Volume | Trading activity and traded volume |
| OHLCV | OHLCV charts and price visualization(candles) |
| Token | Comparing buying and selling activity |
4. Select how you want to consume the data
You can access Solana Market Data through several protocols.
1. HTTP
Use HTTP when you need a single response or want to retrieve the latest available data.
Typical use cases include:
- getting the current VWAP;
- retrieving recent trades;
- loading data when your application starts.
2. WebSocket
Use WebSocket when you need continuous live updates.
It is suitable for:
- live dashboards;
- trading interfaces;
- continuously updated charts;
- real-time market monitoring.
3. gRPC
Use the gRPC interface for server-side streaming and integrations that already use a Yellowstone-style workflow.
It provides processed Solana market data while allowing you to keep a familiar streaming integration model.
5. Configure your request
The parameters depend on the selected method, but most requests start with a few common choices:
- the base token;
- the quote token;
- the market data method you want to use;
- a time window for methods such as VWAP, TWAP, Volume, or Candles.
For example, you can request market data for:
SOL / USDCand then choose whether you want Trades, VWAP, Candles, or another available metric.
Try it in the Playground
The easiest way to explore Solana Market Data before writing code is through the Playground.
Use it to:
- choose a method;
- select a token pair;
- configure the available parameters;
- send a query or start a stream;
- inspect the returned data.

The Playground uses the same concepts exposed through the API, making it useful for understanding a method before integrating it into your application.
6. Integrate it into your application
Once you know which data you need, use the corresponding API method from your application.
A typical integration looks like this:
mermaidgraph TD
A[Choose a token pair] --> B[Choose a market data method]
B --> C[Query current or recent data]
C --> D[Subscribe to live updates if needed]
D --> E[Use the data in your application]For exact request parameters, response fields, and streaming behavior, continue to the documentation for the specific Market Data method or see the API Reference.
VWAP stands for Volume-Weighted Average Price, a technical analysis indicator that shows the average price a security has traded at throughout the day, weighted by its trading volume
TWAP stands for Time-Weighted Average Price, an algorithmic strategy that breaks a large trade into smaller pieces executed at regular time intervals.
OHLCV stands for Open, High, Low, Close, and Volume, which are the five core data points used to summarize price movement and trading activity for any financial asset over a specific time frame