Skip to main content

/markets REST API Endpoint

Add new markets to the Jupiter markets cache used by Metis - Jupiter V6 Swap API. This route can be leveraged to add new tokens/markets that is not in the current Jupiter markets cache. This is a custom route only available to Metis - Jupiter V6 Swap API.

Updated on
Apr 17, 2024

/markets REST API Endpoint

Please note that this method is currently in Beta and is only available for Paid subscribers of Metis - Jupiter V6 Swap API.
To use this method an example pool address can be found by going to Gecko Terminal → new pools (solana) → pool address

Body Parameters

poolAddress
string
REQUIRED
The poolAddress for a given token pair

Returns

data
string
The encoded data related to the market.
executable
boolean
A boolean field indicating whether the program is executable or not
lamports
integer
The number of lamports allocated to the account
owner
string
The public key of the account owner
rentEpoch
integer
The epoch at which the rent for this account was last updated
pubkey
string
The public key of the account
params
object
The params object which contains the following fields:
serumBids
string
Public key of the account holding serum bids for this market
serumAsks
string
Public key of the account holding serum asks for this market
serumEventQueue
string
Public key of the account representing the serum event queue for this market
serumCoinVaultAccount
string
Public key of the account representing the serum coin vault for this market
serumPcVaultAccount
string
Public key of the account representing the serum PC (Programmable Coind) vault for this market
serumVaultSigner
string
Public key of the account representing the serum vault signer for this market
status
string
Status of the response
Request
1
curl --location 'https://docs-demo.solana-mainnet.quiknode.pro/markets' \
2
--header 'Content-Type: application/json' \
3
--data '{
4
"poolAddress": "5y2QYKY8gQCcmG6jy4fc7wFg8L5SW7bkyvMH3jUTqBdy"
5
}'
Don't have an account yet?
Create your QuickNode endpoint in seconds and start building
Get started for free