Jupiter Swap API: Get Quotes for a Solana Bot
The Jupiter Swap API can show how much of an output token a particular Solana swap would return. Start with a quote-only request so you can test the data your bot sees. Jupiter’s current Swap API documents an /order request that can return a quote without a wallet when you omit the taker parameter. See the Jupiter Swap API quick start for the official request example.
Summarize with AI:

Log the inputs and the result together
- Set the input and output mint. Verify both addresses independently. The mint matters more than the displayed symbol.
- Convert the amount to the token’s base units. For SOL, 0.1 SOL is 100,000,000 lamports. Use the correct decimals when working with other tokens.
- Record the quote. Keep the quote time, input amount, expected output, and the route and fee information supplied by the API. Store any errors as separate outcomes.
If a quote reports 11680143 output base units for a token with six decimals, that means 11.680143 tokens. This is a unit-conversion example. Save the raw number alongside the converted amount so you can identify rounding or decimal mistakes in your logs.
Compare quote sizes and simulate a round trip
Log a quote for the amount you plan to simulate, then request a quote at a different size. If the implied exchange rate changes materially, your assumed trade size matters. Next, ask for a reverse-direction quote using the output amount from the first quote. The round trip gives you a way to estimate the combined friction at that moment. Markets can move between the two requests and a quote does not guarantee a fill.
Set rules for when the bot skips a token
Test what your script records when it gets no route, hits a rate limit, or receives a response with an unexpected mint or amount. Give quotes a maximum age and treat expired quotes as unavailable in your simulation. Keep these swap checks separate from the token rules so your logs show which check caused a skip.
See the full Solana memecoin build
The Solana digital guide pack covers token screening, wallet checks, and a Jupiter swap example within a larger bot project.
View the Solana Guide PackKeep reading
Up nextBubblemaps Tutorial: Check Solana Token HoldersInterpret token holder clusters, investigate linked wallets, and document uncertainty before adding a token to your watchlist.
Up nextDEX Screener API in Python: Memecoin ScannerTurn DEX Screener pair data into a Solana shortlist, with separate checks for liquidity, freshness, and missing fields.