---
title: "Build stop loss order transaction"
method: POST
path: "/v1/ix/place-stop-loss-order"
tags: ["Trader"]
---

# Build stop loss order transaction

`POST /v1/ix/place-stop-loss-order`

## Request

- Base URL: `https://perp-api.phoenix.trade`
- URL: `https://perp-api.phoenix.trade/v1/ix/place-stop-loss-order`
- Auth: HTTP bearer
- TypeScript: <https://skmtc.dev/phoenix/apis/phoenix-eternal-api/docs/v1/ix/place-stop-loss-order/post.ts> (a function with typed inputs; its response is checked against the schema)

Handles `POST /v1/ix/place-stop-loss-order` via `post.v1.ix.place_stop_loss_order`.

## Request body

- PlaceStopLossOrderRequest: Request payload for /ix/place-stop-loss-order.
  - `numBaseLots` integer, nullable
  - `orderKind` string, nullable
  - `quantity` number, double, nullable
  - `stopLossExecutionPrice` number, double, nullable
  - `stopLossExecutionPriceInTicks` integer, nullable
  - `stopLossTriggerPrice` number, double, nullable
  - `stopLossTriggerPriceInTicks` integer, nullable
  - `takeProfitExecutionPrice` number, double, nullable
  - `takeProfitExecutionPriceInTicks` integer, nullable
  - `takeProfitTriggerPrice` number, double, nullable
  - `takeProfitTriggerPriceInTicks` integer, nullable
  - `authority` string, required
  - `feePayer` string, nullable
  - `flightBuilderAuthority` string, nullable
  - `flightFeeCollectorTrader` string, nullable
  - `isIsolated` boolean
  - `positionAuthority` string, nullable
  - `side` string, required
  - `symbol` string, required
  - `traderPdaIndex` integer, required
  - `traderSubaccountIndex` integer, nullable

## Response `200`

- ApiInstructionResponse[]
  - `data` integer[], required
  - `keys` ApiAccountMeta[], required
    - `isSigner` boolean, required
    - `isWritable` boolean, required
    - `pubkey` string, required
  - `programId` string, required

---

[API](https://skmtc.dev/phoenix/apis/phoenix-eternal-api.md) - [All operations](https://skmtc.dev/phoenix/apis/phoenix-eternal-api/llms.txt) - [OpenAPI document](https://skmtc.dev/phoenix/apis/phoenix-eternal-api/revisions/542796fe0648?raw)
