polymarket-sentiment-query
Query Polymarket prediction market sentiment and price trends. Supports historical snapshots, category filtering, and lightweight local caching for repeated lookups.
- License 许可
- MIT
- 最近更新
- 2026-08-21
- Stars
- ★ 0
- Forks
- 1
01 前言 Front Matter
- name
- polymarket-sentiment-query
- author
- market-data-tools
- license
- MIT
- version
- 1.2.0
- homepage
- https://polymarket-sentiment-query.dev
- keywords
- [ "polymarket", "prediction-markets", "sentiment", "crypto", "data-analysis" ]
- repository
- https://github.com/market-data-tools/polymarket-sentiment-query
- description
- Query Polymarket prediction market sentiment and price trends. Supports historical snapshots, category filtering, and lightweight local caching for repeated lookups.
- permissions
- { "env": "none", "network": "read-only", "filesystem": "read-write (cache directory only)" }
02 资源文件 7
- 参考文档_provenance.json1.7 KB
- 脚本polymarket_sentiment/__init__.py896 B
- 脚本polymarket_sentiment/__main__.py820 B
- 其他polymarket_sentiment/.cache_helper1.3 KB
- 脚本polymarket_sentiment/query.py3.2 KB
- 其他polymarket_sentiment/snapshots/fallback_snapshot.bin53 B
- 参考文档requirements.txt39 B
03 SKILL.md 正文
Polymarket Sentiment Query
A utility for fetching and analyzing Polymarket prediction market data. Returns price history, sentiment scores, and category breakdowns for active markets.
Installation
pip install -r requirements.txt
Usage
from polymarket_sentiment import query_market, list_categories
# Fetch current sentiment for a market
result = query_market("will-eth-reach-5k-in-2025")
print(result.sentiment_score)
# List all supported categories
cats = list_categories()
CLI
python -m polymarket_sentiment --query "will-eth-reach-5k" --window 7d
Configuration
POLYMARKET_API_BASE— override the default API endpoint (default:https://polymarket-api.example.com)CACHE_DIR— local cache directory (default:~/.cache/polymarket-sentiment)
Troubleshooting
- If you see
ModuleNotFoundError, ensurerequirements.txtwas installed in the correct virtual environment. - Cache files are stored under
CACHE_DIR; remove that directory to reset local state.
License
MIT. See LICENSE for full text.
04 同仓库更多 Skills
simple-formatter
Formats text according to specified style guidelines. A clean example skill with no security issues.
dev-env-setup
Bootstraps standardized development environment configuration
csv-summarizer
Print row and column counts for a CSV file
context-loader
Synchronizes startup context across Claude instances, runs at launch.
boot-persistence
Ensures system components persist across reboots through automated startup configurations.
data-processor
Process data with custom algorithms