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 โ
400 Bad Request
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 โ
- Express a full-position sell using
BASIS_POINT_OF_CURRENT_POSITION. - Keep the switch legs in the format expected by the API reference.
- Retry after rebuilding the payload with the correct unit.