self_investment_switch_position_is_unknown โ
self_investment_switch_position_is_unknown
Description โ
The request references a sell leg whose current position is not known at the requested date.
HTTP Status โ
400 Bad Request
doc_url Format โ
The doc_url value is an absolute URL and changes by environment:
<docs-base-url>/errors/self_investment_switch_position_is_unknown
Typical Causes โ
- The sell leg uses a fund that has no current position.
- The position data for the requested date is missing.
- The request targets a fund that has never been held in the compartment.
Example โ
Response:
json
{
"errors": [
{
"code": "self_investment_switch_position_is_unknown",
"message": "Position for fund 'US0000000000' is unknown and cannot be used to validate the switch.",
"doc_url": "https://docs.example.com/errors/self_investment_switch_position_is_unknown"
}
]
}How To Fix โ
- Verify the sell legs reference funds with an existing position.
- Ensure the position feed is available for the requested date.
- Retry with a valid fund and date combination.