Close position request
Close position
Request address
- API Address (requestURI) : /api/v1/request/closePosition
Request parameters
Parameter name | Type | Requirement | Description |
---|---|---|---|
login | Long | R | Administrator account |
sourceLogin | Long | R | Operator account |
accountLogin | Long | R | Current account login |
orderExternalID | String | R | The external ID for the order |
symbol | String | R | The symbol for the order |
volume | Long | R | The volume of the order |
type | Integer | R | Order type, the opposite of the order to be closed |
position | Double | R | Position NO. |
|
Sample request
{
"login": 100001,
"sourceLogin": 100001,
"accountLogin": 200000252,
"orderExternalID": 20241106110208583698208004,
"symbol": "UKOIL",
"volume": 1000,
"type": 1,
"position": 205786
}
Response parameters
Parameter name | Type | Requirement | description |
---|---|---|---|
data | String | R | The only certificate corresponding to the trading platform |
Sample response
{
"code": "200",
"desc": "Success",
"data": "227553797"
}