Appearance
Create Programming Simulation By Order No
API Information
- Request Path:
/market/order/programming/simulation/createByOrderNo - Request Method:
POST - Content-Type:
application/json
Request Headers
| Parameter | Type | Required | Description |
|---|---|---|---|
| Authorization | String | Yes | User authentication token |
| Content-Type | String | Yes | Must be set to application/json |
Request Body Structure
| Field | Type | Required | Description | Constraints |
|---|---|---|---|---|
| orderNo | String | Yes | Existing child order number | Must be an order waiting for simulation selection |
Request Body Example
json
{
"orderNo": "ORDER_202604090001"
}Response Body Structure
CommonResponse Object
| Field | Type | Description |
|---|---|---|
| code | Integer | Response status code |
| message | String | Response message |
| data | ProgrammingSimulationCreateResp | Response data |
ProgrammingSimulationCreateResp Object
| Field | Type | Description |
|---|---|---|
| taskNo | String | Simulation task unique identifier |
Response Examples
Success Response
json
{
"code": 200,
"message": "success",
"data": {
"taskNo": "SIM_20260409_xxxx"
}
}Failure Response
json
{
"code": 400,
"message": "Invalid parameters",
"data": null
}Error Code Description
| Error Code | Description |
|---|---|
| 200 | Success |
| 400 | Request parameter error |
| 401 | Unauthorized |
| 500 | Server internal error |
Usage Instructions
- This API is used to create a simulation task from an existing child order.
- User authentication is required.
- Provide the target
orderNo. - Use returned
taskNoto query simulation results.
Notes
- If a simulation task already exists for the order, the existing task number may be returned.
- This API is for orders in simulation selection flow.