API документация
post
/api/v1/Trade/positions/closeCloses an open position with a market order for the full position quantity.
Trade
Параметры
version
path · string
Необходимый
Текст запроса
{
"accountId": 0,
"instrument": "string"
}Ответы
- 202Close accepted.application/json
{ "status": "accepted", "message": "Close position accepted." } - 400Validation failed.application/json
{ "status": "rejected", "message": "Instrument is required." }