> For clean Markdown of any page, append .md to the page URL.
> For a complete documentation index, see https://docs.6mm.com/llms.txt.
> For AI client integration (Claude Code, Cursor, etc.), connect to the MCP server at https://docs.6mm.com/_mcp/server.

# 6MM Developer API

> 學習如何整合 6MM Developer API，包括驗證、請求簽署、 REST 端點、 WebSocket 串流、錯誤及生產指導。

開發者部分是給直接整合 6MM API 的後端工程師和平台團隊。它說明了慣例、安全模型、 REST 資源、串流頻道，以及生產環境使用前所需的操作檢查。

<h2 id="recommended-integration-path">
  推薦的整合路徑
</h2>

#### [整合概述](/zh-TW/developer-api/integration-overview)

了解 API 存取模式及建議的連線順序。

#### [環境與慣例](/zh-TW/developer-api/environments-and-common-conventions)

檢視基礎網址、時間戳、數字欄位及回應格式。

#### [認證與簽署](/zh-TW/developer-api/request-signing)

準備 JWT 通行證、 API 鑰匙及 HMAC 簽名。

#### [REST API](/zh-TW/developer-api/rest-api)

探索帳戶、訂單、持倉及市場數據端點。

<h2 id="documentation-areas">
  文件區域
</h2>

| 面積        | 內容涵蓋                                |
| --------- | ----------------------------------- |
| 整合設定      | 服務位址、請求慣例、回應形狀與存取模式。                |
| 認證與安全性    | JWT、 API Key 權限、 HMAC 簽名、重播保護和時間同步。 |
| REST API  | 公開端點、用戶/帳戶資料、訂單、持倉和市場資料。            |
| WebSocket | 連線生命週期、公開市場串流與私人用戶串流。               |
| 參考與故障排除   | 枚舉、錯誤代碼與實用整合建議。                     |

<h2 id="production-checklist">
  製作檢查清單
</h2>

* API 秘密僅儲存在後端。
* 同步伺服器時間，先於簽署請求。
* 除非頁面明確說明，否則所有數值精度欄位都視為字串。
* 利用冪等性、請求 ID 及圍繞順序流程的結構化日誌。
* 訂閱 WebSocket 流，以取得必須在運作系統中保持狀態的最新狀態。
* 在啟動前檢視錯誤代碼並重試行為。