HTTP · Spot trading
Get Open Orders
Returns orders that are still open (not fully filled).
Request parameters
| Name | Type | Required | Description |
|---|---|---|---|
| symbol query | string | Optional | Trading pair, e.g. BTCUSDT |
| startTime query | string | Optional | Query start time (only data from the last 90 days can be returned. When accessing a managed sub-account, startTime cannot be earlier than the binding start time.) |
| endTime query | string | Optional | Query end time (the range between trigTime and endTime cannot exceed 90 days) |
| idLessThan query | string | Optional | Last orderId of the previous page, for pagination |
| limit query | string | Optional | Number of records, default 100, max 100 |
| orderId query | string | Optional | Order ID |
| force query | string | Optional | Execution strategy (not applicable when orderType is market; see enumeration values: Execute strategy) |
Response fields
| Field | Type | Description |
|---|---|---|
| userId | string | Account ID |
| symbol | string | Trading pair |
| orderId | string | Order ID |
| clientOid | string | Client order ID |
| priceAvg | string | Order price |
| size | string | Order size (base coin when orderType = limit; quote coin when orderType = market) |
| orderType | string | Order type (see enumeration values: order type) |
| side | string | Trade side (see enumeration values: trade side) |
| status | string | Order status (see enumeration values: order status) |
| basePrice | string | Fill price |
| baseVolume | string | Filled quantity |
| quoteVolume | string | Total filled value |
| force | string | Execution strategy (not applicable when orderType is market; see enumeration values: Execution strategy) |
| cTime | string | Creation time (Unix timestamp in milliseconds) |
| uTime | string | Update time (Unix timestamp in milliseconds) |
Response example
{ "code": "00000", "msg": "success", "requestTime": 1766140196667, "data": [ { "userId": "1009178902657", "symbol": "BTCUSD", "orderId": "1385439562767183872", "clientOid": "osl-global-eth-usdtXMRX3ea35dac900006", "priceAvg": "100100.2900000000000000", "size": "0.5000000000000000", "orderType": "limit", "side": "buy", "status": "partially_filled", "basePrice": "100100.2900000000000000", "baseVolume": "0.1000000000000000", "quoteVolume": "10010.0290000000000000", "force": "post_only", "cTime": "1766040452663", "uTime": "1766042034254" } ]}