Skip to main content
PATCH
/
orders
/
limit
cURL
curl --request PATCH \
  --url https://lite-api.jup.ag/perps/v1/orders/limit \
  --header 'Content-Type: application/json' \
  --data '{
  "positionRequestPubkey": "<string>",
  "triggerPrice": "20000000"
}'
{
  "positionPubkey": "<string>",
  "positionRequestPubkey": "<string>",
  "quote": {
    "averagePriceUsd": "10000000",
    "collateralUsdDelta": "1124450000",
    "leverage": "2.99",
    "liquidationPriceUsd": "13240000",
    "openFeeUsd": "100000",
    "outstandingBorrowFeeUsd": "100000",
    "positionCollateralUsd": "100000000",
    "positionSizeUsd": "10000000",
    "priceImpactFeeBps": "100",
    "priceImpactFeeUsd": "13301",
    "side": "long",
    "sizeUsdDelta": "1124450000",
    "sizeTokenDelta": "14420000"
  },
  "serializedTxBase64": "<string>",
  "txMetadata": {
    "blockhash": "<string>",
    "lastValidBlockHeight": "<string>",
    "transactionFeeLamports": "5000",
    "accountRentLamports": "2039280"
  }
}

Body

application/json
positionRequestPubkey
string
required

The public key for the limit order position request.

triggerPrice
string
required

Trigger price at which the limit order will be executed (raw value with 6 decimal places). For example, to set a trigger price of $20, pass in 20000000.

Example:

"20000000"

Response

200 OK

positionPubkey
string | null
required

The unique identifier (i.e. a program derived address) for the position account. Use this address to find the position account onchain.

positionRequestPubkey
string | null
required

The unique identifier (i.e. a program derived address) for the position request. Use this address to find the position request account onchain

quote
object
required
serializedTxBase64
string | null
required

The serialized transaction (base64 encoded) containing the instructions and given parameters for the update limit order request. The transaction can be deserialized, signed by the owner of walletAddress and submitted onchain to execute the update limit order request

txMetadata
object | null
required

Contains relevant metadata for the serialized transaction.