/limit-orders/create REST API Endpoint
Please note that this method is only available for paid subscribers of Metis - Jupiter V6 Swap API. This endpoint is currently in BETA. If you have any feedback or run into any issues, please reach out to support.
Query Parameters
inputMint
string
REQUIRED
The mint address of the input token
outputMint
string
REQUIRED
The mint address of the output token
maker
string
REQUIRED
The wallet address of the user who wants to create an order
payer
string
REQUIRED
The wallet address of who is paying to open an order (usually 'maker')
params
object
REQUIRED
Order parameters containing amounts, expiration, and fee settings
makingAmount
string
REQUIRED
Amount of input mint to sell
takingAmount
string
REQUIRED
Amount of output mint to buy
expiredAt
string
Unix time in seconds that determines when an order should automatically close. i.e Date.now() / 1_000
feeBps
string
Amount of fee that the 'referral' collects. This field is required if 'referral' is provided
computeUnitPrice
string
Used to determine a transaction's prioritization fee (i.e 500000). Defaults to 'auto'
referral
string
The public key where fees get sent to. This field is required if 'feeBps' is provided
inputTokenProgram
string
Specifies the program ID for the input token. Defaults to 'TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA'
outputTokenProgram
string
Specifies the program ID for the output token. Defaults to 'TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA'
wrapAndUnwrapSol
boolean
Defaults to 'true' if either input or output mints are raw SOL
Returns
order
string
The public key of the Jupiter Limit Order for the unsigned transaction
tx
string
The unsigned transaction to create the Jupiter Limit Order
instructions
array
The instructions to create the Jupiter Limit Order
instruction
object
The instruction for the order
programId
string
The program ID of the instruction
keys
array
Array of objects containing the keys of the instruction
pubkey
string
The public key of the instruction
isSigner
boolean
Whether the public key is a signer
isWritable
boolean
Whether the pubkey is writable
data
string
The data of the instruction
Request
1curl --location --request POST 'https://docs-demo.solana-mainnet.quiknode.pro/limit-orders/create' \2--header 'Content-Type: application/json' \3--data '{4"maker": "J2RNWdFBRbiVzjYukgzyStfYhpTHFoBFRHQjvDAsnPY9",5"payer": "J2RNWdFBRbiVzjYukgzyStfYhpTHFoBFRHQjvDAsnPY9",6"inputMint": "So11111111111111111111111111111111111111112",7"outputMint": "EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v",8"params": {9"makingAmount": "50000000",10"takingAmount": "1000000000"11}12}'
Don't have an account yet?
Create your QuickNode endpoint in seconds and start building
Get started for free