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." }