API документація
post
/api/v1/Trade/positions/close-allCloses all open (non-zero) positions on the account.
Trade
Параметри
version
path · string
Обов'язковий
Текст запиту
{
"accountId": 0,
"instrument": "string"
}Відповіді
- 202Close-all accepted.application/json
{ "status": "accepted", "message": "Close requested for 3 position(s).", "cancelledCount": 3 } - 400Validation failed.application/json
{ "status": "rejected", "message": "Request body is required." }