🎯 Polymarket Market Importer
This is a template. The keywords, categories, and volume filters are yours to set. The skill handles the hunting — searching Polymarket on a schedule, filtering by your criteria, skipping what you've already seen, and importing the rest into Simmer. You configure the net, it catches the fish.
Setup
- 1. Install the SDK:
CODEBLOCK0
- 2. Set your API key:
CODEBLOCK1
- 3. Set your filters:
CODEBLOCK2
- 4. Dry run to verify:
CODEBLOCK3
- 5. Go live:
CODEBLOCK4
Configuration
| Parameter | Env Var | Default | Description |
|---|
| INLINECODE0 | INLINECODE1 | INLINECODE2 | Comma-separated search terms |
| INLINECODE3 |
IMPORTER_MIN_VOLUME |
10000 | Minimum 24h volume — filters out thin markets |
|
max_per_run |
IMPORTER_MAX_PER_RUN |
5 | Cap on imports per execution |
|
categories |
IMPORTER_CATEGORIES |
crypto | Comma-separated category filters (crypto, politics, sports, etc.) |
Quick Commands
CODEBLOCK5
Example Output
CODEBLOCK6
Troubleshooting
| Problem | Fix |
|---|
| "No importable markets found" | Broaden your keywords or lower INLINECODE12 |
| "Import failed" |
Daily quota may be hit (10/day free, 50/day Pro). Try next run. |
| "SIMMER
APIKEY not set" | Get your key from simmer.markets/dashboard → SDK tab |
| Markets not matching categories | Category filter checks question text and tags. Try different terms. |
Schedule
Runs every 6 hours via cron (0 */6 * * *). Adjust in clawhub.json if needed.
🎯 Polymarket 市场导入器
这是一个模板。 关键词、类别和交易量过滤器由您自行设置。该技能负责搜索——按计划搜索Polymarket,根据您的条件进行过滤,跳过已查看的内容,并将剩余内容导入Simmer。您配置好网,它负责捕鱼。
设置
- 1. 安装SDK:
bash
pip install simmer-sdk
- 2. 设置API密钥:
bash
export SIMMER
APIKEY=sk
live...
- 3. 设置过滤器:
bash
python market_importer.py --set keywords=bitcoin,ethereum,solana
python market
importer.py --set minvolume=25000
- 4. 试运行以验证:
bash
python market_importer.py
- 5. 正式运行:
bash
python market_importer.py --live
配置
| 参数 | 环境变量 | 默认值 | 描述 |
|---|
| keywords | IMPORTERKEYWORDS | bitcoin,ethereum | 逗号分隔的搜索词 |
| minvolume |
IMPORTER
MINVOLUME | 10000 | 最低24小时交易量——过滤掉流动性不足的市场 |
| max
perrun | IMPORTER
MAXPER_RUN | 5 | 每次执行的最大导入数量 |
| categories | IMPORTER_CATEGORIES | crypto | 逗号分隔的类别过滤器(crypto、politics、sports等) |
快速命令
bash
试运行——预览将要导入的内容
python market_importer.py
正式导入
python market_importer.py --live
查看已导入的内容
python market_importer.py --positions
显示当前配置
python market_importer.py --config
更新设置
python market_importer.py --set keywords=bitcoin,ethereum,xrp
静默模式——仅在导入或出错时输出
python market_importer.py --live --quiet
示例输出
🎯 Polymarket 市场导入器
==================================================
[实时模式] 正式导入市场。
配置:keywords=bitcoin,ethereum | minvolume=10000 | maxper_run=5 | categories=crypto
正在搜索:bitcoin
找到12个可导入市场
3个已导入,9个新市场
类别匹配:7个
正在搜索:ethereum
找到8个可导入市场
2个已导入,6个新市场
类别匹配:5个
正在导入:BTC是否会在2026年7月前超过15万美元?(交易量:$125,000)
✅ 导入成功
正在导入:ETH是否会在2026年6月前达到5000美元?(交易量:$89,000)
✅ 导入成功
总结:找到20个 | 5个已查看 | 2个已导入(最多5个)
故障排除
| 问题 | 解决方法 |
|---|
| 未找到可导入的市场 | 放宽关键词或降低min_volume |
| 导入失败 |
可能已达到每日配额(免费版10个/天,专业版50个/天)。下次运行时再试。 |
| SIMMER
APIKEY未设置 | 从simmer.markets/dashboard → SDK选项卡获取密钥 |
| 市场与类别不匹配 | 类别过滤器会检查问题文本和标签。尝试不同的术语。 |
调度
每6小时通过cron运行一次(0 /6 )。如有需要,可在clawhub.json中调整。