---
title: "Modify position"
method: PATCH
path: "/trade/positions/{positionId}"
tags: ["Trading"]
---

# Modify position

`PATCH /trade/positions/{positionId}`

Modify an existing position's stop loss, take profit, or both. To remove stop loss or take profit you need to set the parameter to `null`.

## Path parameters

- `positionId` integer, required

## Query parameters

- `strategyId` string

## Headers

- `accNum` integer, required
- `developer-api-key` string

## Request body

- PatchPosition
  - `stopLoss` number
  - `takeProfit` number
  - `trailingOffset` number

## Response `200`

- SuccessResponse
  - `s` string, required — Status will always be `ok`.

## Other responses

- `204` — No Content
- `401` — Unauthorized
- `403` — Forbidden

---

[API](https://skmtc.net/tradelocker/apis/trading-api.md) · [All operations](https://skmtc.net/tradelocker/apis/trading-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/tradelocker/trading-api/revisions/5b184d9b617c/schema)
