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.