---
title: "Close Position"
method: POST
path: "/api/v4/collateral-account/position/close"
tags: ["Collateral Trading"]
---

# Close Position

`POST /api/v4/collateral-account/position/close`

The endpoint closes an open [collateral](/glossary#balance-collateral) position at the current market price. The system places a market order in the opposite direction to fully close the specified position. Any attached take-profit or stop-loss orders are cancelled automatically.

<Warning>
Rate limit: 10000 requests/10 sec.
</Warning>

<Accordion title="Error Codes">
  - `30` - default validation error code (for example, a missing or malformed `positionId` or `market`)
  - `104` - position not found. Returned whether the `positionId` does not exist, the position is already closed, or it is not owned by the account — these cases are not distinguished
  - `10` - insufficient balance to fund the closing market order
</Accordion>

## Request body

- object
  - `positionId` integer, required — Unique identifier of the position to close. Obtain from the [open positions](/api-reference/collateral-trading/open-positions) endpoint.
  - `positionSide` 'LONG' | 'SHORT' | 'BOTH' — Defines the position direction when hedge mode is enabled. See [positionSide](/glossary#position-side)
  - `market` string, required — Market of the position to close. Example: BTC_USDT
  - `request` string, required
  - `nonce` integer, required

## Response `200`

Position closed

## Other responses

- `400` — Inner validation failed
- `422` — Request validation failed
- `500` — Internal error
- `503` — Service temporarily unavailable

---

[API](https://skmtc.net/whitebit/apis/whitebit-private-http-api-v4.md) · [All operations](https://skmtc.net/whitebit/apis/whitebit-private-http-api-v4/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/whitebit/whitebit-private-http-api-v4/revisions/76c9def9942f/schema)
