Skip to main content
POST
Create price order

Authorizations

x-api-key
string
header
required
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 trigger price. For single orders, required unless trailingBps is set.

trailingBps
number

Trailing stop loss trail distance in basis points (50-9000). Single orders only; set instead of triggerPriceUsd. Direction from triggerCondition: below = sell-below (triggerMint === inputMint), above = buy-above (triggerMint === outputMint).

Required range: 50 <= x <= 9000
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

depositConfirmed
boolean

Whether the deposit has landed and the order is active