Alter position request
Alter position
Request address
- API Address (requestURI) : /api/v1/request/alterPosition
Request parameters
Parameter name | Type | Requirement | Description |
---|---|---|---|
login | Long | R | Administrator account |
sourceLogin | Long | R | Operator account |
accountLogin | Long | R | Current account login |
symbol | String | R | The symbol for the order |
position | Double | R | Position NO. |
priceSL | Double | O | The stop loss price for the order |
priceTP | Double | O | The 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 name | Type | Requirement | description |
---|---|---|---|
data | String | R | The only certificate corresponding to the trading platform |
Sample response
{
"code": "200",
"desc": "Success",
"data": "227553797"
}