---
title: "Set Trading Stop"
method: POST
path: "/api/v1/position/trading-stop"
tags: ["Position"]
---

# Set Trading Stop

`POST /api/v1/position/trading-stop`

Set the take profit, stop loss or trailing stop for the position.

## Request body

- SetTradingStopRequest — Set the take profit, stop loss or trailing stop for the position.
  - `active_price` string, nullable
  - `sl_size` string, nullable — Stop loss size valid for TP/SL partial mode, note: the value of tpSize and slSize must equal
  - `sub_account_address` string, required
  - `symbol` string, required
  - `tp_size` string, nullable — Take profit size valid for TP/SL partial mode, note: the value of tpSize and slSize must equal
  - `tpsl` TpSl
    - `mode` 'Full' | 'Partial', required
    - `stop_loss` union
      - object
        - `market` object, required
          - `trigger_by` 'LastPrice' | 'IndexPrice' | 'MarkPrice', required
          - `trigger_price` string, required
      - object
        - `limit` object, required
          - `limit_price` string, required
          - `trigger_by` 'LastPrice' | 'IndexPrice' | 'MarkPrice', required
          - `trigger_price` string, required
    - `take_profit` union
      - object
        - `market` object, required
          - `trigger_by` 'LastPrice' | 'IndexPrice' | 'MarkPrice', required
          - `trigger_price` string, required
      - object
        - `limit` object, required
          - `limit_price` string, required
          - `trigger_by` 'LastPrice' | 'IndexPrice' | 'MarkPrice', required
          - `trigger_price` string, required
  - `trailing_stop` string, nullable

## Response `200`

Trading stop set

- SetTradingStopResponse — Response for setting trading stop.
  - `success` boolean, required
  - `time` string, date-time, required

---

[API](https://skmtc.net/ekidenfi/apis/ekiden-gateway.md) · [All operations](https://skmtc.net/ekidenfi/apis/ekiden-gateway/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/ekidenfi/ekiden-gateway/revisions/75ffe546b73a/schema)
