Skip to main content
POST
/
orders
/
price
Create price order
curl --request POST \
  --url https://api.jup.ag/trigger/v2/orders/price \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --header 'x-api-key: <api-key>' \
  --data '
{
  "orderType": "single",
  "depositRequestId": "01234567-89ab-cdef-0123-456789abcdef",
  "depositSignedTx": "AQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAgAAEN...",
  "userPubkey": "BQ72nSv9f3PRyRKCBnHLVrerrv37CYTHm5h3s9VSGQDV",
  "inputMint": "So11111111111111111111111111111111111111112",
  "inputAmount": "1000000000",
  "outputMint": "EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v",
  "triggerMint": "So11111111111111111111111111111111111111112",
  "triggerCondition": "above",
  "triggerPriceUsd": 200,
  "slippageBps": 100,
  "expiresAt": 1735689600000
}
'
{
  "id": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
  "txSignature": "5eykt4UsFv8P8NJdTREpY1vzqKqZKvdpKuc147dw2N9d..."
}

Authorizations

x-api-key
string
header
required

Get API key via https://portal.jup.ag

Authorization
string
header
required

JWT token from the challenge-response auth flow

Body

application/json
orderType
enum<string>
required
Available options:
single,
oco,
otoco
depositRequestId
string
required

From /deposit/craft response

depositSignedTx
string
required

Base64-encoded signed deposit transaction

userPubkey
string
required
inputMint
string
required
inputAmount
string
required

Amount in smallest unit

outputMint
string
required
triggerMint
string
required

Token mint to monitor for price

expiresAt
number
required

Expiration timestamp (milliseconds)

triggerCondition
enum<string>

Single/OTOCO only

Available options:
above,
below
triggerPriceUsd
number

Single/OTOCO parent trigger price

slippageBps
number

Slippage tolerance (0-10000 bps)

tpPriceUsd
number

Take-profit price (OCO/OTOCO)

slPriceUsd
number

Stop-loss price (OCO/OTOCO)

tpSlippageBps
number

Take-profit slippage (OCO/OTOCO)

slSlippageBps
number

Stop-loss slippage (OCO/OTOCO)

Response

Order created

id
string
required

Order UUID

txSignature
string
required

On-chain transaction signature