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

# Close Position

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

## 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}/close`
- Auth: none declared

Flatten one OPEN position at the honest live quote and realize P&L.

Auth (B10-T1): session cookie OR an account key pair for THIS account.

## Path parameters

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

## 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)
