Polymarket 提供 TypeScript、Python 和 Rust 的官方开源客户端。三者都支持完整的 CLOB API,包括市场数据、订单管理和身份验证。Documentation Index
Fetch the complete documentation index at: https://docs.polymarket.com/llms.txt
Use this file to discover all available pages before exploring further.
安装
快速示例
源代码
| 语言 | 包 | 仓库 |
|---|---|---|
| TypeScript | @polymarket/clob-client-v2 | github.com/Polymarket/clob-client-v2 |
| Python | py-clob-client-v2 | github.com/Polymarket/py-clob-client-v2 |
| Rust | polymarket_client_sdk_v2 | github.com/Polymarket/rs-clob-client-v2 |
/examples 目录中包含可运行的示例。
Relayer SDK
对于使用代理钱包的免 Gas 交易,Relayer 客户端负责通过 Polymarket 的 relayer 提交交易:| 语言 | 包 | 仓库 |
|---|---|---|
| TypeScript | @polymarket/builder-relayer-client | github.com/Polymarket/builder-relayer-client |
| Python | py-builder-relayer-client | github.com/Polymarket/py-builder-relayer-client |
下一步
快速开始
设置客户端并下你的第一笔订单。
身份验证
了解 L1/L2 身份验证和 API 凭证。