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

# Build cancel stop loss order transaction

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

## Request

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

Handles `POST /v1/ix/cancel-stop-loss-order` via `post.v1.ix.cancel_stop_loss_order`.

## Request body

- CancelStopLossOrderRequest: Request payload for /ix/cancel-stop-loss-order.
  - `authority` string, required
  - `executionDirection` string, required: Which trigger direction to cancel: e.g. "greater_than" or "less_than".
  - `isIsolated` boolean
  - `positionAuthority` string, nullable
  - `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)
