Skip to main content

Alter pending order request

Alter a pending order

Request address

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

Request parameters

Parameter nameTypeRequirementDescription
loginLongRAdministrator account
sourceLoginLongROperator account
accountLoginLongRCurrent account login
orderExternalIDStringRThe external ID for the order
orderLongROrder NO.
priceOrderDoubleOThe price of the order
priceTriggerDoubleOThe limit order price when the stop limit order is triggered
priceSLDoubleOThe stop loss price for the order
priceTPDoubleOThe take profit price for the order
symbolStringRThe symbol for the order
typeIntegerROrder type, only supports 2-BUY_LIMIT and 3-SELL_LIMIT
timeExpirationDoubleOThe expiration time in the transaction request. 0 means the order has no expiration time. Unit: /seconds
typeTimeDoubleOThe order expiration type in the request. 0 means the order has no expiration date, 1 means the current time, 2 means a specified time, and 3 means a specified date.

|

Sample request

{
"login": 100001,
"sourceLogin": 100001,
"accountLogin": 200000252,
"orderExternalID": "10005464646466161",
"order": 280418,
"priceOrder": 3150.6,
"priceTrigger": 0,
"priceSL": 0,
"priceTP": 0,
"symbol": "ETHUSD",
"type": 2,
"timeExpiration": 0,
"typeTime": 0
}

Response parameters

Parameter nameTypeRequirementdescription
dataStringRThe only certificate corresponding to the trading platform

Sample response

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