Skip to main content

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​

ParameterTypeRequiredComments
orderIdStringYesStrategy order ID
limitStringNoLimit per page
Default:100. Maximum:100
cursorStringNoCursor
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​

ParameterTypeComments
listArraySub-order list
>subOrderIdStringSub-order ID
>subClientOidStringClient order ID
>categoryStringProduct type
SPOT Spot
MARGIN Margin
USDT-FUTURES USDT futures
COIN-FUTURES Coin-M futures
USDC-FUTURES USDC futures
>symbolStringSymbol name
>priceStringOrder price
>qtyStringOrder quantity
Unit: base coin
>cumExecQtyStringCumulative executed quantity
Unit: base coin
>avgPriceStringAverage execution price
>sideStringTrade side
buy/sell
>posSideStringPosition side
long/short
Applies to futures orders only
>statusStringOrder status
filled Filled
cancelled Cancelled
failed Failed
>createdTimeStringOrder created timestamp
Unix millisecond timestamp
>updatedTimeStringOrder updated timestamp
Unix millisecond timestamp
cursorNumberCursor for next page
Pass this value as the cursor parameter in the next request to get the next page of data

How was your Reading Experience with us?

★
★
★
★
â˜