---
url: /errors/attempt_to_sell_full_position_in_amount.md
---
# `ATTEMPT_TO_SELL_FULL_POSITION_IN_AMOUNT`

`ATTEMPT_TO_SELL_FULL_POSITION_IN_AMOUNT`

## Description

A full-position sell leg was expressed as an amount instead of basis points of the current position.

## HTTP Status

`422 Unprocessable Entity`

## `doc_url` Format

The `doc_url` value is an absolute URL and changes by environment:

`<docs-base-url>/errors/attempt_to_sell_full_position_in_amount`

## Typical Causes

* The client used the wrong unit for a full-position sell leg.
* The request mixed amount-based and percentage-based switch legs incorrectly.
* The payload was built without applying the switch-kernel rules.

## Example

Response:

```json
{
  "errors": [
    {
      "code": "ATTEMPT_TO_SELL_FULL_POSITION_IN_AMOUNT",
      "message": "When attempting to sell full position of US0000000000 it should be expressed in BASIS_POINT_OF_CURRENT_POSITION",
      "doc_url": "https://docs.example.com/errors/attempt_to_sell_full_position_in_amount"
    }
  ]
}
```

## How To Fix

1. Express a full-position sell using `BASIS_POINT_OF_CURRENT_POSITION`.
2. Keep the switch legs in the format expected by the API reference.
3. Retry after rebuilding the payload with the correct unit.
