Create market order request
Create a market order
Request address
- API Address (requestURI) : /api/v1/request/createMarketRequest
Request parameters
| Parameter name | Type | Requirement | Description |
|---|---|---|---|
| login | Long | R | Administrator account |
| sourceLogin | Long | R | Operator account |
| accountLogin | Long | R | Current account login |
| orderExternalID | String | R | The external ID for the order |
| priceSL | Double | O | The stop loss price for the order |
| priceTP | Double | O | The take profit price for the order |
| symbol | String | R | The symbol for the order |
| type | Integer | R | The type of the order |
| typeFill | Integer | R | The fill type of the order |
| volume | Long | R | The 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 name | Type | Requirement | description |
|---|---|---|---|
| data | String | R | The only certificate corresponding to the trading platform |
Sample response
{
"code": "200",
"desc": "Success",
"data": "227553797"
}