---
title: "Sell All Position"
method: POST
path: "/api/portfolio/positions/{position_id}/sell-all"
tags: ["portfolio"]
---

# Sell All Position

`POST /api/portfolio/positions/{position_id}/sell-all`

## Request

- Base URL: `https://marketcrew.ai` (the document declares no server; this is the origin it was published from)
- URL: `https://marketcrew.ai/api/portfolio/positions/{position_id}/sell-all`
- Auth: HTTP bearer

Sell entire position (creates sell trade, preserves history)

## Path parameters

- `position_id` string, required

## Query parameters

- `price` number, nullable

## Response `200`

Successful Response

- unknown

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/marketcrew/apis/cappilot.md) · [All operations](https://skmtc.dev/marketcrew/apis/cappilot/llms.txt) · [OpenAPI document](https://skmtc.dev/marketcrew/apis/cappilot/revisions/7036e9c74d40?raw)
