insufficient_funds โ
insufficient_funds
Description โ
The switch tries to sell more value than the current position holds.
HTTP Status โ
422 Unprocessable Content
doc_url Format โ
The doc_url value is an absolute URL and changes by environment:
<docs-base-url>/errors/insufficient_funds
Typical Causes โ
- The sell amount is larger than the current position.
- The request was built from stale position data.
- A market movement or rounding change reduced the available value.
Example โ
Response:
json
{
"errors": [
{
"code": "insufficient_funds",
"message": "Insufficient funds: attempt to sell 100 EUR of ISIN US0000000000 while position is only 95 EUR",
"doc_url": "https://docs.example.com/errors/insufficient_funds"
}
]
}How To Fix โ
- Lower the sell amount.
- Refresh the position data before retrying.
- Retry with a switch that fits the current position.