Skip to content

insufficient_funds_in_percentage

insufficient_funds_in_percentage

Description

The percentage-based sell leg exceeds the funds available in the current position.

HTTP Status

400 Bad Request

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.