API 文档
post
/api/v1/Trade/positions/reverseReverses an open position with an immediate-or-cancel market order for twice the position quantity (flatten then open the opposite side).
Trade
参数
version
path · string
必需的
请求体
{
"accountId": 0,
"instrument": "string"
}响应
- 202Reverse accepted.application/json
{ "status": "accepted", "message": "Reverse position accepted.", "orderId": -45 } - 400Validation failed or no open position.application/json
{ "status": "rejected", "message": "Instrument is required." }