---
title: "Move stop-loss / take-profit"
method: POST
path: "/api/bot/v1/sltp"
tags: ["Paper trading"]
---

# Move stop-loss / take-profit

`POST /api/bot/v1/sltp`

## Request

- Base URL: `https://marginpad.io`
- URL: `https://marginpad.io/api/bot/v1/sltp`
- Auth: API key in header `X-API-Key`

Change the stop or target on an OPEN position without closing it. Both are side-checked against the entry price. Pass null to clear one.

## Request body

- SltpRequest
  - `id` string, required
  - `sl` number, nullable: null clears the stop.
  - `tp` number, nullable
  - `trail_pct` number, nullable: Trailing stop distance in percent (0.05-50), ratcheted server-side from the best price seen. null switches it off.

## Response `200`

ok

## Other responses

- `400`: error

---

[API](https://skmtc.dev/marginpad/apis/marginpad-free-crypto-api.md) · [All operations](https://skmtc.dev/marginpad/apis/marginpad-free-crypto-api/llms.txt) · [OpenAPI document](https://skmtc.dev/marginpad/apis/marginpad-free-crypto-api/revisions/27d21fcd0bf0?raw)
