Solana & memecoins · Digital guide
Jupiter Swap Price Impact Checks
Compare Jupiter swap quotes by size, separate price impact from slippage tolerance, and test how your Solana bot handles stale quotes.
View the guide →One-time payment · Instant download
- Level
- Intermediate
- First pass
- About 3–4 hours
- Mode
- Research and simulation only
- Format
- Digital guide, self-paced
What you’ll work on
A pool’s displayed mid-price is not what a swap will necessarily receive. Compare quotes taken close together for the same token pair at different sample sizes, then record the quoted routes and timestamp. A large change may reflect thin liquidity, different routing, or stale data, each of which deserves its own log entry.
What you need before you start
- Read-only access to Jupiter quotes (check the current documentation)
- Two token mints and their decimals
- A few sample sizes to compare, for example three different amounts
- A log that stores each quote with its time and route
How to approach the project
Check both token mints
Save the input and output assets, quoted amounts and observation time. Normalize token decimals before comparing values. Use the same direction and similar timestamps for the size comparison, since a quote in the opposite direction can traverse a different route.
Separate impact from tolerance
Put reference price, quote price and acceptable movement in different fields. Price impact compares your quote with a reference. Slippage tolerance limits how far execution can move around the quote. Record which field causes the rule to pause so the journal remains understandable.
Test quote expiry and rerouting
In simulation, try a quote that disappears and a larger request that returns a different route. Compare the output with a case where a quote is merely past your freshness window. Log each reason separately and retry the review with new public data when appropriate.
Worked example: The same pair quoted at three sizes
| Input size | Quote price | Route | Impact vs reference | Flag |
|---|---|---|---|---|
| 0.5 SOL | 1.000 (reference) | Pool P1 | 0.0% | ok |
| 5 SOL | 0.985 | Pool P1 | 1.5% | ok |
| 50 SOL | 0.910 | Pool P1 + P2 | 9.0% | impact above limit |
| 50 SOL, 3 min later | no route | - | - | quote unavailable |
Invented numbers. Impact is measured against a reference. Slippage tolerance is a separate setting that limits movement after you quote.
Common mistakes to avoid
Confusing impact with slippage
Impact compares your quote to a reference price. Slippage tolerance bounds how far execution may move. Keep them in separate fields.
Skipping decimals
Normalize token decimals before comparing amounts, or a correct quote can look wildly wrong.
Mixing directions
Buy and sell quotes can use different routes. Compare like with like, taken close together in time.
You’re done when…
- Quotes for several sizes are stored with time, direction and route
- Impact and slippage tolerance are separate fields in your log
- A vanished quote and a merely old quote are logged differently
- You checked the current API documentation before reusing any sample code
Frequently asked questions
Can I test quote handling without opening a trade?
Yes. Use read-only quotes or fixtures first and inspect the intended action in your logs before adding transaction submission.
Do the Jupiter examples require maintenance?
Review the current Jupiter documentation before using any sample integration. Test the quote path with read-only calls and static fixtures first.
Does a small impact figure guarantee my fill?
No. A quote is a snapshot. Liquidity and routes change between quote and execution.
Do I need a wallet to test quotes?
Not for read-only quote requests. Keep signing out of this exercise entirely.
Solana Memecoin Trading Bot Guide
Build a Solana memecoin bot with token screening, BubbleMaps wallet checks, trading rules, and Telegram alerts.
Explore the guide · $37Educational material only, not financial advice. Example figures on this page are invented to illustrate the method. Crypto assets are volatile and you can lose money. Test in simulation and check current provider terms before using any service.