Skip to main content

Create pending order request

Create a pending order

Request address

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

Request parameters

Parameter nameTypeRequirementDescription
loginLongRAdministrator account
sourceLoginLongROperator account
accountLoginLongRCurrent account login
orderExternalIDStringRThe external ID for the order
priceOrderDoubleOThe price of the order
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
volumeLongRThe volume of the order
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",
"priceOrder": 70,
"priceSL": 0,
"priceTP": 0,
"symbol": "UKOIL",
"type": 2,
"volume": 1000,
"timeExpiration": 0,
"typeTime": 0
}

Response parameters

Parameter nameTypeRequirementdescription
dataStringRThe only certificate corresponding to the trading platform

Sample response

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