Skip to main content

Alter position request

Alter position

Request address

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

Request parameters

Parameter nameTypeRequirementDescription
loginLongRAdministrator account
sourceLoginLongROperator account
accountLoginLongRCurrent account login
symbolStringRThe symbol for the order
positionDoubleRPosition NO.
priceSLDoubleOThe stop loss price for the order
priceTPDoubleOThe take profit price for the order

|

Sample request

{
"login": 100001,
"sourceLogin": 100001,
"accountLogin": 200000252,
"symbol": "UKOIL",
"position": 205786,
"priceSL": 0,
"priceTP": 0
}

Response parameters

Parameter nameTypeRequirementdescription
dataStringRThe only certificate corresponding to the trading platform

Sample response

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