---
title: "Protect Position"
method: POST
path: "/v1/me/accounts/{account_id}/positions/{position_id}/protect"
---

# Protect Position

`POST /v1/me/accounts/{account_id}/positions/{position_id}/protect`

## Request

- Base URL: `https://api.quantradin.com` (the document declares no server; this is the origin it was published from)
- URL: `https://api.quantradin.com/v1/me/accounts/{account_id}/positions/{position_id}/protect`
- Auth: none declared

B13-T4 — attach protective resting orders to an OPEN position:
take_profit / stop_loss (both = a bracket, OCO-linked) and/or a percent
trailing stop. SIMULATED, reserve-free (selling what you hold), and
honest: a stop that gaps through fills at the real market bid, never at
the stop price you wished for.

## Path parameters

- `account_id` integer, required
- `position_id` integer, required

## Request body

- ProtectRequest
  - `take_profit` number, nullable
  - `stop_loss` number, nullable
  - `trail_pct` number, nullable

## Response `200`

Successful Response

- unknown

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/quantradin/apis/vega-api.md) · [All operations](https://skmtc.dev/quantradin/apis/vega-api/llms.txt) · [OpenAPI document](https://skmtc.dev/quantradin/apis/vega-api/revisions/47add154ef38?raw)
