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

# 交易

> 查詢和分析交易數據

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

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

交易數據提供市場活動和價格發現的洞察。

## 交易數據

每筆交易包含：

* 價格
* 數量
* 時間戳
* 方向（買/賣）
* 市場 ID

## 查詢交易

```python theme={null}
# Python: 獲取最近交易
trades = client.get_trades(token_id="YOUR_TOKEN_ID")

for trade in trades[:10]:
    print(f"價格: {trade['price']}")
    print(f"數量: {trade['size']}")
    print(f"時間: {trade['timestamp']}")
```

## 交易分析

* 成交量分析
* 價格趨勢
* 流動性評估
* 市場深度

## 下一步

<CardGroup cols={2}>
  <Card title="歷史數據" icon="chart-line" href="/api-tutorial/clob/historical-data">
    訪問歷史數據
  </Card>

  <Card title="Data API" icon="database" href="/api-tutorial/data-api/core">
    使用 Data API
  </Card>
</CardGroup>
