Solana DEX Trades API: Access Real-Time & Historical Data for Raydium, Jupiter, and More

·

The Solana blockchain has emerged as a powerhouse for decentralized finance (DeFi), hosting a rapidly growing ecosystem of decentralized exchanges (DEXs) like Raydium, Jupiter, Orca, and Phoenix. For developers, analysts, and traders, accessing granular, real-time, and historical trade data is essential for building analytics tools, executing algorithmic strategies, or monitoring market trends.

The Solana DEX Trades API delivers exactly that—comprehensive, structured access to on-chain trading activity across major Solana-based DEX platforms. Built on GraphQL, this powerful interface enables precise queries for everything from token prices and trading volumes to wallet-level trade histories and market-wide trends.

Whether you're tracking the latest price surge of a meme token or analyzing the top traded pairs across DEXs, this API provides the data depth and flexibility you need.

👉 Discover how real-time Solana trade data can power your next DeFi project


Subscribe to the Latest Solana Trades

Stay ahead of market movements by subscribing to real-time trade updates across Solana DEXs. This subscription delivers immediate insights into the most recently executed trades, including token pairs, trade amounts, timestamps, and involved wallets.

Ideal for dashboards, alerting systems, or live trading bots, this feed ensures zero-latency access to on-chain activity. You can customize filters to focus on specific DEXs, tokens, or trading volumes.

This functionality is particularly valuable for arbitrageurs and high-frequency traders who rely on up-to-the-second data to identify mispricings across platforms.


Get the Current Token Price Against WSOL

Wrapped SOL (WSOL) serves as the primary liquidity pair on most Solana DEXs. Knowing a token’s price relative to WSOL is crucial for valuation, portfolio tracking, and trade execution.

With a simple query, you can retrieve the latest exchange rate between any token and WSOL. By specifying the token’s MintAddress, the API returns the most recent traded price, enabling accurate pricing models and real-time market monitoring.

For example:

This feature supports integration into price oracles, DeFi dashboards, and automated trading systems.


Retrieve Recent Trades for a Specific Token

Want to monitor trading activity for a particular token? This query returns detailed information about the latest trades executed for any given token on Solana DEXs.

Useful for tracking liquidity events, detecting large buys or sells, or analyzing market sentiment, this tool helps uncover patterns in real-time trading behavior. You can filter by time range, minimum trade size, or specific DEX platforms.

👉 See how live trade data drives smarter investment decisions


Calculate a Token’s Price Surge Over Time

While direct expression support may be limited in current API versions, you can still calculate price changes over custom time intervals by fetching opening and closing prices at two different timestamps.

By comparing these values, you can determine percentage increases or drops—ideal for identifying trending tokens, spotting breakout opportunities, or measuring volatility.

This method is widely used in:

Automate this process by scheduling periodic queries and computing deltas server-side for continuous monitoring.


Understand Complex Trades with Trade Summaries

On decentralized exchanges, a single user transaction may involve multiple swaps across different pools. A trade summary simplifies this complexity by showing only the original token sold and the final token received.

Using this query, you can trace multi-hop trades and understand net user behavior without parsing individual swap legs. The summary uses the lowest trade index for the sell currency and the highest for the buy currency within the same block time.

This abstraction is vital for accurate analytics, especially when aggregating user activity or calculating effective exchange rates.


Explore Historical DEX Pair Creations

Track the evolution of liquidity on Solana by retrieving historical data on newly created trading pairs across DEXs like Raydium. Filter results by date range to analyze trends in new token listings or liquidity pool formations.

This data is invaluable for:

Identify when new projects launch liquidity and how quickly they gain traction.


Analyze Key Trading Metrics for Any Token

Gain deep insight into a token’s market dynamics with essential metrics such as:

Available for time windows like 5 minutes or 1 hour, these stats help assess short-term momentum and market structure. Use them to detect accumulation phases, distribution patterns, or sudden shifts in trader behavior.


Discover the Top 10 Trending Solana Tokens

What tokens are gaining attention right now? This query identifies the most actively traded tokens based on unique trader counts across all Solana DEXs.

You can also run time-bound versions—such as hourly trends—to capture emerging narratives before they go mainstream. These insights power trend-tracking dashboards like DEXrabbit’s Solana Trends page and help traders stay ahead of viral movements.

FAQ: How is "trending" defined in this context?
Trending is determined by the number of unique traders interacting with a token over a specified period. High trader count indicates growing interest.

FAQ: Can I customize the time window for trend analysis?
Yes—queries support flexible date ranges, allowing you to analyze trends over minutes, hours, or days.


Find Which DEXs Support a Specific Token

Not all tokens are listed on every exchange. Use this query to discover which Solana DEXs currently support trading for a given token.

By inputting the token’s MintAddress, you get a complete list of active markets—helpful for cross-exchange comparisons, arbitrage strategies, or liquidity assessments.


Get a Token’s Creation Date

While blockchain records don’t always store formal “creation dates,” you can approximate it using the timestamp of the first recorded trade. This query retrieves that initial trade time, which typically aligns closely with deployment.

Additional metadata such as decimals, update authority, mutability status, and IPFS URI links are also accessible—critical for verifying token legitimacy and technical details.

FAQ: Is the first trade time accurate enough to represent launch time?
In most cases, yes—the first trade occurs within seconds or minutes of deployment.


Monitor Real-Time SOL Price Across Markets

Track the live price of SOL in real time using streaming queries. This feature supports WebSocket integrations for continuous updates without polling overhead.

Ideal for price displays, margin calculators, or risk engines requiring up-to-the-millisecond accuracy.


Identify Top Bought and Sold Tokens on Raydium

See which tokens are being accumulated or offloaded at scale. These queries rank tokens by net buy or sell volume:

Useful for gauging market sentiment and identifying potential pumps or dumps.


Access Top Traded Pairs and Leading DEXs

Get ranked lists of:

These overviews provide macro-level insights into Solana’s DeFi landscape—perfect for benchmarking performance or discovering high-liquidity venues.


Retrieve All Trading Pairs for a Token

For comprehensive market analysis, retrieve every trading pair involving a specific token. This includes pair addresses, reserve sizes, and associated DEXs—enabling full liquidity mapping.


List All Active Solana DEXs

Obtain a complete inventory of decentralized exchanges operating on Solana. This foundational dataset supports ecosystem research, competitive analysis, and platform discovery.


Fetch Latest USD Price of Any Token

Convert token prices into fiat terms with USD pricing data. By setting appropriate filters (e.g., base/quote currency), you can retrieve PriceInUSD directly from recent trades against stablecoin pairs like USDC or USDT.

This is essential for portfolio valuation, tax reporting, and compliance tools.


Retrieve Full Token Metadata

Beyond price and volume, understand a token’s technical properties:

These fields help verify whether a token is locked (immutable) or subject to future changes—a key factor in assessing trustworthiness.

FAQ: Why does immutability matter?
Immutable tokens cannot have their metadata altered after deployment, reducing scam risks.


Track Top Buyers and Sellers

Identify influential wallets driving price action. Retrieve rankings of top purchasers and sellers for any token—useful for social trading analysis or whale-watching tools.

When combined with wallet labeling services (if available), this data reveals institutional vs. retail participation patterns.


Query Trades by Wallet Address

Analyze individual wallet behavior by pulling all trades associated with a specific address. Filter by token, DEX, or time range to study investment strategies or detect insider activity.

Example use cases:


Monitor Trading Volume Trends

Fetch real-time metrics including total trading volume, buy volume, and sell volume for any token. Visualize these metrics over time to spot increasing volatility or declining interest.

This query powers volume-based alerts and trend confirmation signals in technical analysis systems.


Access Second-by-Second OHLC/K-Line Data

For high-resolution charting and algorithmic trading, subscribe to second-level OHLC (Open-High-Low-Close) data via WebSocket. This K-line stream provides candlestick data every second—ideal for building responsive trading interfaces or backtesting short-term strategies.

Use quantile-based aggregation to ensure statistical accuracy across high-frequency datasets.


Query OHLC Data Across Custom Time Intervals

Need daily or hourly candles? The standard OHLC API lets you fetch aggregated price data over customizable intervals. Specify start/end times and resolution (e.g., 5m, 1h) to generate clean time-series data.

Note: Use query instead of subscription for aggregate time windows due to technical limitations with streaming aggregates.


Pull Real-Time Prices from Multiple Markets

Compare prices across several DEXs simultaneously to detect arbitrage opportunities. This query pulls live pricing data from multiple markets—but requires careful filtering to isolate specific buy/sell directions.

Refine results by specifying exact currencies in your filter to avoid duplicated or reversed pairs.

👉 Turn multi-market price data into profitable trading signals


Optimize Performance with Pre-Made Aggregates

Speed up query responses using built-in aggregate datasets:

For best performance in production environments, use aggregates: only—but remember to include mintAddress in your response fields for correct filtering.


Track Trades Involving Custom Programs

Are you deploying your own Solana program? Monitor all DEX trades that interact with your smart contract using GraphQL joins.

This advanced feature links trades with instruction executions within the same block slot and transaction signature—ensuring only relevant interactions are captured.

Developers use this to audit program usage, measure adoption, or detect exploit attempts.

How It Works:


Learn with Video Tutorials & Practical Examples

From basic queries to advanced analytics, step-by-step video guides walk you through using the Solana DEX Trades API effectively. Covering topics like:

These resources lower the learning curve and accelerate development cycles.


Frequently Asked Questions (FAQ)

Q: Which DEXs are supported by the API?
A: Major platforms including Raydium, Jupiter, Orca, Phoenix, PumpSwap, Moonshot, and FourMeme are fully supported.

Q: Can I get historical data going back months?
A: Yes—the API provides access to extensive historical datasets spanning multiple months of on-chain activity.

Q: Is there rate limiting on API usage?
A: Usage limits depend on your subscription tier; enterprise plans offer higher quotas and dedicated support.

Q: How often is data updated in real-time streams?
A: Streams deliver updates within milliseconds of on-chain confirmation—ensuring minimal latency.

Q: Can I integrate this data into my dashboard or app?
A: Absolutely—developers commonly embed this data into analytics platforms, trading tools, and research portals.

Q: Is WebSocket support available?
A: Yes—real-time subscriptions via WebSocket are supported for live data feeds like trades and OHLC streams.


Core Keywords: Solana DEX Trades API, Raydium API, Jupiter DEX data, real-time Solana trades, Solana token price, DEX analytics, Solana OHLC, trading volume API