Skip to main content
← Back to blog
TUTORIAL What Is a DEX Aggregator? How Solana Gets You the Best Price MoonHydra · moonhydra.com/blog
Tutorial DEX Jupiter Solana

What Is a DEX Aggregator? How Solana Gets You the Best Price

· 9 min read · MoonHydra Research

When you buy a Solana memecoin, the token you want usually trades in more than one place at once — a Raydium pool here, an Orca pool there, a Meteora pool somewhere else, each at a slightly different price and depth. Picking the right one by hand, and splitting a larger order across several to avoid moving the price against yourself, is not something you can do in the few seconds a trade allows. A DEX aggregator does it for you. This is what an aggregator actually is, the problem it solves, and why almost every serious Solana tool — MoonHydra included — routes through one instead of hitting a single exchange by hand.

The problem: liquidity is fragmented

To understand aggregators you first have to understand where liquidity lives on Solana. A decentralized exchange holds pools — pairs of tokens that traders deposit so others can swap against them. Most of these run on an automated market maker model, where a formula sets the price based on the ratio of tokens in the liquidity pool rather than a traditional order book. There is no single exchange that holds all the liquidity. There are many.

The result is fragmentation. The same memecoin can have a pool on Raydium, another on Orca, and another on Meteora, all live at the same moment. Because each pool holds a different amount of the token and the paired asset, each one quotes a slightly different price, and each one has a different depth — how much you can buy before the price starts moving against you. One pool might show the best headline price but be too shallow to fill your whole order well. Another might be deeper but priced a touch higher.

For a small trade, this barely matters; you pick any reasonable pool and move on. For a larger order, or for a thinly traded token, it matters a lot. Send too much into one shallow pool and you eat heavy price impact: the deeper you push into a single pool's liquidity, the worse each additional token costs you. Checking every venue, comparing prices and depths, and working out how to spread the order optimally is exactly the kind of fast, repetitive math a human cannot do reliably under time pressure. That gap is the problem an aggregator exists to close.

What a DEX aggregator does

A DEX aggregator holds no liquidity of its own. It owns no pools. Instead it sits on top of every DEX at once, reads the live state of all their pools, and figures out the cheapest path from the token you are holding to the token you want. Think of it as a search engine for liquidity: you tell it what you want to buy and how much, and it searches across all the venues to find the best way to fill that order.

The key move an aggregator makes is order splitting. Rather than dumping your whole order into the single pool with the best headline price, it can break the order into pieces and fill each piece in a different pool simultaneously. It can also hop through intermediate tokens — routing, say, SOL to USDC to your target token if that two-step path happens to be cheaper than going direct. The aggregator combines splitting and hopping into one route, then hands you back a single transaction that executes the entire thing at once. You sign once; the routing happens underneath.

The outcome is simple to state: you almost never get a worse price by going through an aggregator than by going to one DEX directly, and you very often get a better one. The bigger your order is relative to the available liquidity, the more the aggregator's splitting helps, because it keeps each individual fill in the shallow, low-impact part of each pool's curve instead of forcing the whole order down one of them.

A worked example of order splitting

A concrete case makes the idea click. Suppose you want to buy 10 SOL worth of a mid-cap memecoin. The Raydium pool shows the best headline price, but it is not deep enough to absorb the full 10 SOL cleanly — push the whole order in and the last few SOL fill at a noticeably worse rate than the first. There is also a smaller Meteora pool and an Orca pool for the same token.

A naive approach sends all 10 SOL to Raydium because its first-glance price was best, and pays several percent in price impact for the privilege. An aggregator instead splits the order: maybe a chunk to Raydium, a chunk to Meteora, a chunk to Orca. Each individual fill now stays in the low-impact part of its pool, where the price barely moves. The blended price across the three is better than any one of them could have given you for the full size. That is the entire value proposition, and it scales with your order — for a tiny buy the split is irrelevant, but for serious size it is the difference between a clean fill and quietly handing money to the curve.

You do not need to know the internal algorithm to benefit from it. The mechanics — which pools, what proportions, whether to hop through an intermediate token — are exactly what the aggregator computes per trade, in the moment, against whatever liquidity exists right then. Your job is to set sane parameters; the routing is the aggregator's job.

Jupiter: Solana's dominant aggregator

On Solana, the aggregator that nearly everything routes through is Jupiter. It is the same idea described above, built at scale: it reads pools across Raydium, Orca, Meteora, PumpSwap, Phoenix, Lifinity and dozens of other venues, runs the splitting-and-hopping math, and returns a single ready-to-sign transaction. It became the default routing layer for the chain because it consistently finds prices a single venue cannot, and because it exposes a developer interface that lets other tools plug straight into that routing.

Jupiter is the specific product; the DEX aggregator is the general concept. If you want the full breakdown of how Jupiter's routing engine works, its swap and limit-order suite, and the developer API that bots build on, read the dedicated Jupiter explainer. For the purposes of this article, the thing to hold onto is that "aggregator" is a category, Jupiter is Solana's leading example of it, and the benefits below are properties of the category, not of one brand.

The benefits, and what to understand

The upside of routing through an aggregator comes down to three things:

  • Best effective price. By scanning every venue and splitting your order across the deepest combination of pools, you get a blended price that beats hitting any single DEX for the same size.
  • Less price impact. Splitting keeps each fill in the shallow part of each pool's curve, so a larger order moves the price less than it would slamming into one venue. This is the main lever an aggregator pulls.
  • One interface. You — or your bot — ask one place for a quote and get one transaction back, instead of manually comparing a dozen pools and stitching together a route yourself.

There are also a few honest caveats worth holding in mind. First, an aggregator does not custody your funds. It builds the transaction, but you still sign it from your own wallet, and nothing moves without your signature — it is routing infrastructure, not a place you deposit money. Second, quotes move. The price an aggregator shows is a snapshot; by the time your transaction lands, the market may have shifted, which is why you set a slippage tolerance as a buffer. That is a different thing from price impact — price impact is the movement your own order causes and is what routing minimizes, while slippage tolerance is how much worse than the quote you will accept before the trade reverts. The two get conflated constantly, and confusing them costs real money. Third, fees still apply: network and priority fees to land the transaction, plus whatever fee the tool you are using charges on top. An aggregator gets you the best route available; it does not make trading free.

Why bots route through aggregators

Here is the part that explains why nearly every serious Solana tool leans on an aggregator rather than wiring up to one DEX. Building and maintaining routing yourself is a large, never-finished job. New pools appear constantly — a memecoin that graduates from a launchpad spins up fresh liquidity that can fragment across venues within minutes. A tool wired directly to a single DEX would simply miss tokens that route best elsewhere, or fill them at a worse price, and it would silently degrade as the ecosystem shifts beneath it.

By asking an aggregator for a quote per trade, a bot inherits coverage of whatever venues exist at that moment — including pools that did not exist the last time the bot was updated. It does not have to integrate Raydium, Orca, Meteora and every new venue separately, track each pool, or write its own routing math. It asks for a quote, builds the transaction, signs it with your wallet, and sends it. The aggregator does the hard part. That is why "which DEX does this bot use?" is usually the wrong question: most bots do not pick a DEX at all — they route through an aggregator and let it choose the venues per trade.

How MoonHydra fits

MoonHydra routes every swap — buys and sells — through Jupiter, Solana's leading DEX aggregator. When you place an order, the bot pulls a quote, and Jupiter splits that order across multiple pools so a larger position takes less price impact than it would slamming into a single venue. You get aggregated best-price routing without ever having to choose a venue yourself; you set your slippage tolerance, and the routing is handled for you.

The honest framing: MoonHydra is not doing anything magic to the price. It uses the same aggregated liquidity engine every serious Solana bot uses, wrapped in a non-custodial flow where your keys are encrypted with AES-256-GCM and never leave your control, with no custom on-chain contracts in the path. The only fee MoonHydra adds is a flat 1% on buys and sells — no subscription, no tiers — and you can run multiple wallets under one account. What you are paying for is the execution flow around the swap, not a secret routing advantage that does not exist.

Bottom line

A DEX aggregator is the search engine for liquidity. It holds no pools of its own, reads all of them across every venue, and splits your order across the deepest combination of pools — hopping through intermediate tokens when that is cheaper — to get a better effective price than any single DEX could, with less price impact. It does not custody your funds: you still sign every trade, quotes still move, and fees still apply. On Solana the dominant example is Jupiter, and the reason almost every bot routes through it is simple — an aggregator gives you coverage of the whole fragmented liquidity landscape without rebuilding it yourself, and it keeps working as new pools appear.

Next: read the Jupiter explainer for the specific product behind the routing, then slippage and price impact so you set tolerance correctly on top of it. Start trading at t.me/moonhydrabot.


Ready to put this into practice?

MoonHydra is a multi-wallet Solana memecoin trading bot on Telegram. 1% per trade. AES-256-GCM encrypted. Non-custodial.

Open MoonHydra