跳到主要内容

创建待处理订单请求

创建待处理订单

请求地址

  • 接口地址 (requestURI) : /api/v1/request/createPendingRequest

请求参数

参数名称类型要求说明
loginLongR管理员账户
sourceLoginLongR操作员账户
accountLoginLongR当前账户登录
orderExternalIDStringR订单的外部ID
priceOrderDoubleO订单价格
priceSLDoubleO订单的止损价
priceTPDoubleO订单的获利价
symbolStringR订单符号
typeIntegerR订单类型,仅支持2-BUY_LIMIT和3-SELL_LIMIT
volumeLongR订单交易量
timeExpirationDoubleO交易请求中的到期时间。0表示订单没有到期时间。单位:/秒
typeTimeDoubleO请求中的订单过期类型,0表示订单无过期时间,1表示当前时间,2表示指定时间,3表示指定日期。

示例请求

{
"login": 100001,
"sourceLogin": 100001,
"accountLogin": 200000252,
"orderExternalID": "10005464646466161",
"priceOrder": 70,
"priceSL": 0,
"priceTP": 0,
"symbol": "UKOIL",
"type": 2,
"volume": 1000,
"timeExpiration": 0,
"typeTime": 0
}

响应参数

Parameter nameTypeRequirementdescription
dataStringR交易平台对应唯一

Sample response

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