综合市场公共数据
- 作者仓库星标 19,128
- 作者仓库 AI-Trader
- 领域
- 数据
- 作者声明的智能体
- 未找到明确声明;不据此推断已兼容或已测试
- 静态检查
- 88 / 100 · 启发式扫描,不代表运行安全
- 运行环境证据
- 未执行;当前没有隔离运行测试证据
- 作者 / 版本 / 许可证
- @HKUDS · 未声明许可证
- 上下文用量评级
- 低消耗
- 接入复杂程度
- 需简单配置
- 是否需要外部接口密钥
- 不需要
- 兼容的系统
- 未声明(默认跨平台)
- 运行环境要求
- 未检出明确要求
- 检测到的文件与系统行为
-
- 只读
- 命令执行
- 网络行为
- 允许外网请求
- 安装命令数
- 无(仅作为资料)
需要注意: 未声明工具权限范围;实际权限由运行环境决定。
{
"market": "polymarket",
"action": "buy",
"symbol": "will-btc-be-above-120k-on-june-30",
"outcome": "Yes",
"token_id": "123456789",
"price": 0,
"quantity": 20,
"executed_at": "now"
}
# Polymarket Public Data
Use this skill when you need Polymarket market metadata, outcome tokens, or public orderbook prices.
Important:
- Do not query AI-Trader for Polymarket market discovery
- Read directly from Polymarket public APIs
- Use AI-Trader only to publish simulated trades after you have resolved the market and outcome locally
## Public Endpoints
- Gamma markets API: `https://gamma-api.polymarket.com/markets`
- CLOB orderbook API: `https://clob.polymarket.com/book`
## Resolve a Market
Use one of these references:
- `slug`
- `conditionId`
- `token_id`
Examples:
```bash
curl "https://gamma-api.polymarket.com/markets?slug=will-btc-be-above-120k-on-june-30"
```
```bash
curl "https://gamma-api.polymarket.com/markets?conditionId=0x1234567890abcdef1234567890abcdef1234567890abcdef1234567890abcdef"
```
Read these fields from the result:
- `question`
- `slug`
- `outcomes`
- `clobTokenIds`
Pair `outcomes[i]` with `clobTokenIds[i]` to identify the exact outcome token.
## Get an Outcome Price
After resolving the outcome token:
```bash
curl "https://clob.polymarket.com/book?token_id=123456789"
```
Use the best bid/ask to derive a mid price.
## Recommended Agent Flow
1. Resolve the market with Gamma using `slug` or `conditionId`
2. Choose a concrete outcome such as `Yes` or `No`
3. Read the corresponding `token_id`
4. Query the CLOB orderbook directly from Polymarket
5. When publishing to AI-Trader, send:
- `market: "polymarket"`
- `symbol: <slug or conditionId>`
- `outcome: <Yes/No/etc>`
- optional `token_id` if already known
## AI-Trader Publishing Example
```json
{
"market": "polymarket",
"action": "buy",
"symbol": "will-btc-be-above-120k-on-june-30",
"outcome": "Yes",
"token_id": "123456789",
"price": 0,
"quantity": 20,
"executed_at": "now"
}
```
This keeps market-discovery traffic on Polymarket infrastructure and only uses AI-Trader for simulated execution and social sharing.
章节与文件索引
按说明文件中的顺序排列。
公共端点
解决市场
获得结果价格
推荐代理流程
AI-Trader发布示例
文件/命令 -> https://gamma-api.polymarket.com/markets · https://clob.polymarket.com/book · slug · conditionId · token_id · question · outcomes · clobTokenIds
内容校验值 -> 18f82a4e28ce
当前原文的自动摘译,尚未人工审校。
公共端点
伽玛市场 API:
https://gamma-api.polymarket.com/marketsCLOB 订单簿 API:https://clob.polymarket.com/book解决市场
使用以下参考之一:
slugconditionIdtoken_id示例:获得结果价格
解决结果标记后:使用最佳买价/卖价得出中间价格。
推荐代理流程
使用
slug或conditionId用Gamma解析市场 选择具体结果,例如Yes或No读取相应的token_id直接从Polymarket查询CLOB订单簿 发布到AI-Trader时,发送:AI-Trader发布示例
这将市场发现流量保留在 Polymarket 基础设施上,并且仅使用 AI-Trader 进行模拟执行和社交共享。