Skip to main content
POST
/
v1
/
ix
/
place-stop-loss-order
Build stop loss order transaction
curl --request POST \
  --url https://perp-api.phoenix.trade/v1/ix/place-stop-loss-order \
  --header 'Content-Type: application/json' \
  --data '
{
  "numBaseLots": 0
}
'
[
  {
    "data": [
      1
    ],
    "keys": [
      {
        "isSigner": true,
        "isWritable": true,
        "pubkey": "<string>"
      }
    ],
    "programId": "<string>"
  }
]

Documentation Index

Fetch the complete documentation index at: https://docs.phoenix.trade/llms.txt

Use this file to discover all available pages before exploring further.

Body

application/json

JSON request payload for v1.place_stop_loss_order_ix.

Request payload for /ix/place-stop-loss-order.

authority
string
required
side
string
required
symbol
string
required
traderPdaIndex
integer<int32>
required
Required range: x >= 0
numBaseLots
integer<int64> | null
Required range: x >= 0
orderKind
string | null
quantity
number<double> | null
stopLossExecutionPrice
number<double> | null
stopLossExecutionPriceInTicks
integer<int64> | null
Required range: x >= 0
stopLossTriggerPrice
number<double> | null
stopLossTriggerPriceInTicks
integer<int64> | null
Required range: x >= 0
takeProfitExecutionPrice
number<double> | null
takeProfitExecutionPriceInTicks
integer<int64> | null
Required range: x >= 0
takeProfitTriggerPrice
number<double> | null
takeProfitTriggerPriceInTicks
integer<int64> | null
Required range: x >= 0
feePayer
string | null
flightBuilderAuthority
string | null
flightFeeCollectorTrader
string | null
isIsolated
boolean
positionAuthority
string | null
traderSubaccountIndex
integer<int32> | null
Required range: x >= 0

Response

200 - application/json
data
integer<int32>[]
required
Required range: x >= 0
keys
object[]
required
programId
string
required