/markets REST API Endpoint - Metis
Please note that this method is only available for Paid subscribers of Metis - Jupiter V6 Swap API.
Solana Kit includes the ability to customize RPC methods and transports, allowing you to seamlessly integrate QuickNode Marketplace add-ons into your applications. For more information on how to use QuickNode Marketplace add-ons with Solana Kit, check out these guides: How to Use QuickNode Add-ons using Solana Kit (Part 1) and How to Use QuickNode Add-ons using Solana Kit (Part 2)
Important: Always use the parameter useQNMarketCache=true
when working with new markets.
To use this method an example pool address can be found by using the /new-pools endpoint, or by going to Gecko Terminal → new pools (solana) → pool address.
When you add new markets that aren't available in the standard Jupiter market cache, you'll need to pass the useQNMarketCache=true
parameter to the URL you're making subsequent /quote, /swap, or /swap-instructions requests with. If you are using websockets for /swap, you'll need to include the param "useQNMarketCache": true
to use the market cache.
The steps below are an example for when adding new markets, receiving a quote, and swapping the newly added market.
- Use the POST /markets API endpoint to add a new market.
- Use the GET /quote API endpoint and include useQNMarketCache=true parameter. i.e
/quote?useQNMarketCache=true
- Use either POST /swap or POST /swap-instructions and include useQNMarketCache=true parameter when fetching a swap for the quote you just requested. i.e
/swap?useQNMarketCache=true
- For websockets, you'll still use the
swap
method, but include the param"useQNMarketCache": true
- For websockets, you'll still use the
Body Parameters
poolAddress
string
REQUIRED
Loading...
Returns
data
string
Loading...
executable
boolean
Loading...
lamports
integer
Loading...
owner
string
Loading...
rentEpoch
integer
Loading...
pubkey
string
Loading...
params
object
Loading...
serumBids
string
Loading...
serumAsks
string
Loading...
serumEventQueue
string
Loading...
serumCoinVaultAccount
string
Loading...
serumPcVaultAccount
string
Loading...
serumVaultSigner
string
Loading...
status
string
Loading...
Request
Response
Don't have an account yet?
Create your QuickNode endpoint in seconds and start building
Get started for free