Skip to main content

Create market order request

Create a market order

Request address

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

Request parameters

Parameter nameTypeRequirementDescription
loginLongRAdministrator account
sourceLoginLongROperator account
accountLoginLongRCurrent account login
orderExternalIDStringRThe external ID for the order
priceSLDoubleOThe stop loss price for the order
priceTPDoubleOThe take profit price for the order
symbolStringRThe symbol for the order
typeIntegerRThe type of the order
typeFillIntegerRThe fill type of the order
volumeLongRThe volume of the order

Sample request

{
"login": 100001,
"sourceLogin": 100001,
"accountLogin": 200000252,
"orderExternalID": "10086",
"priceSL": null,
"priceTP": null,
"symbol": "UKOIL",
"type": 0,
"typeFill": 0,
"volume": 1000
}

Response parameters

Parameter nameTypeRequirementdescription
dataStringRThe only certificate corresponding to the trading platform

Sample response

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