API documentação
post
/api/v1/Trade/positions/closeCloses an open position with a market order for the full position quantity.
Trade
Parâmetros
version
path · string
Obrigatório
Corpo da solicitação
{
"accountId": 0,
"instrument": "string"
}RESPOSTAS
- 202Close accepted.application/json
{ "status": "accepted", "message": "Close position accepted." } - 400Validation failed.application/json
{ "status": "rejected", "message": "Instrument is required." }