---
url: /errors/insufficient_funds_in_percentage.md
---
# `INSUFFICIENT_FUNDS_IN_PERCENTAGE`

`INSUFFICIENT_FUNDS_IN_PERCENTAGE`

## Description

The percentage-based sell leg exceeds the funds available in 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/insufficient_funds_in_percentage`

## Typical Causes

* The percentage sell leg is too large for the current holding.
* The current position is smaller than the request assumes.
* The request was built from stale position data.

## Example

Response:

```json
{
  "errors": [
    {
      "code": "INSUFFICIENT_FUNDS_IN_PERCENTAGE",
      "message": "Insufficient funds: attempt to sell 9500 BASIS_POINT_OF_CURRENT_POSITION of ISIN US0000000000",
      "doc_url": "https://docs.example.com/errors/insufficient_funds_in_percentage"
    }
  ]
}
```

## How To Fix

1. Lower the sell percentage.
2. Refresh the position data before retrying.
3. Retry with a switch that fits the current position.
