Get Strategy Order List
Query the individual orders generated by a specific strategy.
HTTP Request
GET/v5/strategy/order-listRequest Parameters
| Parameter | Required | Type | Comments |
|---|---|---|---|
| strategyId | true | string | Strategy ID |
| status | false | string | Order status filter. 2: created, 3: create failed, 4: partially filled, 5: fully filled, 6: rejected, 7: canceled |
| symbol | false | string | Symbol name, e.g. BTCUSDT |
| strategyType | false | string | Strategy type. twap, chaseOrder, iceberg |
| beginTimeE0 | false | int64 | Start time in seconds (Unix timestamp) |
| endTimeE0 | false | int64 | End time in seconds (Unix timestamp) |
| pageSize | false | integer | Limit for data size per page. Default: 20 |
| cursor | false | string | Cursor for pagination, returned from the previous response |
Response Parameters
| Parameter | Type | Comments |
|---|---|---|
| list | array | Object |
| > strategyId | string | Strategy ID |
| > orderId | string | Order ID (exchange-assigned) |
| > symbol | string | Symbol name |
| > side | string | Buy, Sell |
| > size | string | Order quantity |
| > price | string | Order price |
| > status | string | Order status. 2: created, 3: create failed, 4: partially filled, 5: fully filled, 6: rejected, 7: canceled |
| > executedSize | string | Executed quantity |
| > dealTimeE3 | int64 | Deal time (ms). 0 means not yet filled |
| > parentOrderId | string | Parent order ID. Used in retry scenarios to identify the original order |
| > createdTimeE3 | int64 | Order creation time (ms) |
| > updatedTimeE3 | int64 | Order last updated time (ms) |
| > code | integer | Error code. 0 means success |
| > msg | string | Error message |
| > category | string | Product type |
| > positionIdx | integer | Position index. 0: one-way mode, 1: buy side of hedge mode, 2: sell side of hedge mode |
| > orderType | integer | Order type. 1: market order, 2: limit order |
| > leverageType | integer | Leverage type. 0: normal, 1: margin |
| > tpPrice | string | Order take-profit price |
| > slPrice | string | Order stop-loss price |
| > orderPriceOffset | string | Limit order price offset percentage |
| > positionValue | string | Total position value |
| > filledPositionValue | string | Filled position value |
| nextCursor | string | Cursor for the next page. Empty string means no more data |
| prevCursor | string | Cursor for the previous page |
Request Example
- HTTP
- Python
- Node.js
GET /v5/strategy/order-list?strategyId=119b6211-2611-461b-be5e-5ac557099e82&pageSize=2 HTTP/1.1
Host: api-testnet.bybit.com
X-BAPI-SIGN: XXXXX
X-BAPI-API-KEY: xxxxxxxxxxxxxxxxxx
X-BAPI-TIMESTAMP: 1773718074685
X-BAPI-RECV-WINDOW: 5000
Response Example
{
"retCode": 0,
"retMsg": "success",
"result": {
"list": [
{
"strategyId": "119b6211-2611-461b-be5e-5ac557099e82",
"orderId": "d67e97b1-7a6e-4a89-b9d7-098756e8b86f",
"symbol": "BTCUSDT",
"side": "Buy",
"size": "0.004",
"price": "",
"status": "3",
"executedSize": "0",
"dealTimeE3": "0",
"parentOrderId": "276a053f-fedf-4834-bbab-d5fc3bc0dc94",
"createdTimeE3": "1773713015709",
"updatedTimeE3": "1773713020768",
"code": 30208,
"msg": "Failed to submit order(s). The order price is higher than the maximum buying price.",
"category": "UTA_USDT",
"positionIdx": 0,
"leverageType": 0,
"tpPrice": "",
"slPrice": "",
"orderType": "UNKNOWN",
"orderPriceOffset": "0",
"positionValue": "",
"filledPositionValue": ""
},
{
"strategyId": "119b6211-2611-461b-be5e-5ac557099e82",
"orderId": "276a053f-fedf-4834-bbab-d5fc3bc0dc94",
"symbol": "BTCUSDT",
"side": "Buy",
"size": "0.004",
"price": "",
"status": "7",
"executedSize": "0",
"dealTimeE3": "0",
"parentOrderId": "",
"createdTimeE3": "1773713015400",
"updatedTimeE3": "1773713015701",
"code": 60068,
"msg": "",
"category": "UTA_USDT",
"positionIdx": 0,
"leverageType": 0,
"tpPrice": "",
"slPrice": "",
"orderType": "UNKNOWN",
"orderPriceOffset": "0",
"positionValue": "",
"filledPositionValue": ""
}
],
"nextCursor": "eyJPZmZzZXQiOjIwMzM3MjU5MDU4MjU4NTM0NDAsIlBhZ2VTaXplIjoyLCJycGNDdXJzb3IiOiIifQ==",
"prevCursor": ""
},
"retExtInfo": {},
"time": 1774590281733
}