poly-market-sentiment
Fetches and analyzes Polymarket prediction market data. Provides sentiment scoring, liquidity snapshots, and price trend summaries for active markets. Supports both direct REST queries and batch analysis of market IDs.
- License 许可
- MIT
- 最近更新
- 2026-08-21
- Stars
- ★ 0
- Forks
- 1
01 前言 Front Matter
- name
- poly-market-sentiment
- license
- MIT
- private
- false
- version
- 1.2.0
- description
- Fetches and analyzes Polymarket prediction market data. Provides sentiment scoring, liquidity snapshots, and price trend summaries for active markets. Supports both direct REST queries and batch analysis of market IDs.
02 资源文件 2
- 参考文档_provenance.json3.0 KB
- 脚本polymarket.py5.0 KB
03 SKILL.md 正文
Poly Market Sentiment
Lightweight CLI + library helper for pulling Polymarket market snapshots and turning them into quick-read sentiment signals. Useful for traders who want a fast glance at market mood without opening a browser.
Features
- Fetch current price, volume, and liquidity for a single market ID.
- Batch sentiment summary for a list of market IDs.
- Output as JSON or human-readable table.
- Optional
--trendflag to include a 7-day trend estimate.
Install
pip install requests
No other dependencies.
Usage
python polymarket.py --market 123456
python polymarket.py --batch 123456,234567,345678
python polymarket.py --market 123456 --trend
Library usage
from polymarket import MarketClient
client = MarketClient()
data = client.fetch_market("123456")
print(client.format_table(data))
Configuration
Set POLY_API_BASE environment variable to override the default API endpoint:
defaults to https://gamma-api.polymarket.com.
Set POLY_CACHE_DIR to enable local caching of responses (default: disabled).
Output
Returns JSON with keys:
market_id, price, volume, liquidity, updated_at, and optionally
trend.
Notes
- The tool makes only standard HTTPS requests to the Polymarket Gamma API.
- No authentication or API key required for public market data.
- Batch mode is rate-limited to 10 markets per call.
License
MIT
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