Skip to main content

Close position request

Close position

Request address

  • API Address (requestURI) : /api/v1/request/closePosition

Request parameters

Parameter nameTypeRequirementDescription
loginLongRAdministrator account
sourceLoginLongROperator account
accountLoginLongRCurrent account login
orderExternalIDStringRThe external ID for the order
symbolStringRThe symbol for the order
volumeLongRThe volume of the order
typeIntegerROrder type, the opposite of the order to be closed
positionDoubleRPosition NO.

|

Sample request

{
"login": 100001,
"sourceLogin": 100001,
"accountLogin": 200000252,
"orderExternalID": 20241106110208583698208004,
"symbol": "UKOIL",
"volume": 1000,
"type": 1,
"position": 205786
}

Response parameters

Parameter nameTypeRequirementdescription
dataStringRThe only certificate corresponding to the trading platform

Sample response

{
"code": "200",
"desc": "Success",
"data": "227553797"
}