> ## Documentation Index
> Fetch the complete documentation index at: https://polymarketcn.com/llms.txt
> Use this file to discover all available pages before exploring further.

# 訂單管理

> 學習如何管理 Polymarket 上的訂單

<Callout type="success">
  還沒有帳號？[點擊這裡註冊 Polymarket](https://polymarket.com/?r=2026VIP) 並完成入金，才能用錢包私鑰為訂單籤名、實際成交。
</Callout>

<Warning>
  **法律合規提醒**：在使用 Polymarket 服務或 API 前，請確認您所在地區的法律規定。Polymarket 目前不支援比利時、法國、新加坡、泰國、中國大陸等地區，政策可能隨時變化。
</Warning>

有效的訂單管理對於成功交易至關重要。

## 訂單生命周期

1. **創建** - 構建並籤署訂單
2. **提交** - 發送到 CLOB
3. **活躍** - 在訂單簿上等待匹配
4. **執行** - 完全或部分成交
5. **完成** - 成交、取消或過期

## 訂單操作

### 創建訂單

```python theme={null}
from py_clob_client.clob_types import OrderArgs
from py_clob_client.order_builder.constants import BUY

order_args = OrderArgs(
    price=0.55,
    size=100.0,
    side=BUY,
    token_id="YOUR_TOKEN_ID"
)
```

### 取消訂單

```python theme={null}
client.cancel_order("ORDER_ID")
```

### 批量操作

```python theme={null}
client.cancel_orders(["ORDER_ID_1", "ORDER_ID_2"])
```

## 下一步

<CardGroup cols={2}>
  <Card title="第一筆訂單" icon="rocket" href="/api-tutorial/first-order">
    創建您的第一筆訂單
  </Card>

  <Card title="REST API" icon="code" href="/api-tutorial/clob/rest-api">
    REST API 參考
  </Card>
</CardGroup>
