Open Orders
Get the user's current list of open orders.
API Information
- Method:
GET - Path:
/fapi/v1/openOrders - Authentication: Requires signature authentication (see Common Module · Signature Specification)
Request Parameters
| Parameter | Location | Type | Required | Description |
|---|---|---|---|---|
| symbol | query | string | No | Trading pair filter |
Request Example
GET /fapi/v1/openOrders?symbol=BTC_USDT
Response Fields
| Field | Type | Description |
|---|---|---|
| code | integer | Status code |
| message | string | Response message |
| data | array | Order list |
| data[].id | string | Order ID |
| data[].client_order_id | string | Client order ID |
| data[].symbol | string | Trading pair |
| data[].side | integer | Side: 1=buy, 2=sell |
| data[].type | integer | Type: 1=limit, 2=market |
| data[].status | integer | Status |
| data[].price | string | Order price |
| data[].qty | string | Order quantity |
| data[].filled_qty | string | Filled quantity |
| data[].filled_quote | string | Filled amount |
| data[].avg_price | string | Average fill price |
| data[].total_fee | string | Accumulated fee |
| data[].fee_asset | string | Fee asset |
| data[].leverage | integer | Leverage |
| data[].margin_mode | integer | Margin mode |
| data[].position_action | integer | Position action |
| data[].position_side | integer | Position side |
| data[].created_at | integer | Creation time (milliseconds) |
Response Example
{
"code": 0,
"message": "success",
"data": [
{
"id": "1234567890123456789",
"client_order_id": "my-order-001",
"symbol": "BTC_USDT",
"side": 1,
"type": 1,
"status": 2,
"price": "68500.00",
"qty": "0.1",
"filled_qty": "0.05",
"filled_quote": "3425.00",
"avg_price": "68500.00",
"total_fee": "1.71",
"fee_asset": "USDT",
"leverage": 10,
"margin_mode": 1,
"position_action": 1,
"position_side": 1,
"created_at": 1711929600000,
"updated_at": 1711929600000,
"user_id": "user123"
}
]
}