Get Strategy Sub-orders
Get Strategy Sub-orders
Descriptionâ
Get historical sub-orders generated by a strategy order
HTTP Requestâ
- GET /api/v3/trade/strategy-sub-orders
- Rate limit: 10 times/s (UID)
- Permission: UTA trade (read)
Request
curl "https://api.bitget.com/api/v3/trade/strategy-sub-orders?orderId=1234567890123456789" \
-H "ACCESS-KEY:your apiKey" \
-H "ACCESS-SIGN:*" \
-H "ACCESS-PASSPHRASE:*" \
-H "ACCESS-TIMESTAMP:1659076670000" \
-H "locale:zh-CN" \
-H "Content-Type: application/json"
Request Parametersâ
| Parameter | Type | Required | Comments |
|---|---|---|---|
| orderId | String | Yes | Strategy order ID |
| limit | String | No | Limit per page Default: 100. Maximum:100 |
| cursor | String | No | Cursor Pagination is implemented by omitting the cursor in the first query and applying the cursor from the previous query for subsequent pages |
Response
{
"code": "00000",
"msg": "success",
"requestTime": 1724486400000,
"data": {
"list": [
{
"subOrderId": "1234567890123456789",
"subClientOid": "myOrder001",
"category": "USDT-FUTURES",
"symbol": "BTCUSDT",
"price": "60000",
"qty": "0.01",
"cumExecQty": "0.01",
"avgPrice": "60001",
"side": "buy",
"posSide": "long",
"status": "filled",
"createdTime": "1724486400000",
"updatedTime": "1724486401000"
}
],
"cursor": 1234567890123456788
}
}
Response Parametersâ
| Parameter | Type | Comments |
|---|---|---|
| list | Array | Sub-order list |
| >subOrderId | String | Sub-order ID |
| >subClientOid | String | Client order ID |
| >category | String | Product typeSPOT SpotMARGIN MarginUSDT-FUTURES USDT futuresCOIN-FUTURES Coin-M futuresUSDC-FUTURES USDC futures |
| >symbol | String | Symbol name |
| >price | String | Order price |
| >qty | String | Order quantity Unit: base coin |
| >cumExecQty | String | Cumulative executed quantity Unit: base coin |
| >avgPrice | String | Average execution price |
| >side | String | Trade sidebuy/sell |
| >posSide | String | Position sidelong/shortApplies to futures orders only |
| >status | String | Order statusfilled Filledcancelled Cancelledfailed Failed |
| >createdTime | String | Order created timestamp Unix millisecond timestamp |
| >updatedTime | String | Order updated timestamp Unix millisecond timestamp |
| cursor | Number | Cursor for next page Pass this value as the cursor parameter in the next request to get the next page of data |