poly-market-query
Fetches Polymarket price feeds and computes prediction summaries for given market questions. Supports cached batch queries, optional historical trend sampling, and lightweight local aggregation. Works with any recent Python 3. Designed for analysts and traders who need quick, scriptable access to market data. No external services beyond the configured feed.
- License 许可
- MIT
- 最近更新
- 2026-08-21
- Stars
- ★ 0
- Forks
- 1
01 前言 Front Matter
- name
- poly-market-query
- author
- market-utils team
- license
- MIT
- version
- 1.2.0
- description
- Fetches Polymarket price feeds and computes prediction summaries for given market questions. Supports cached batch queries, optional historical trend sampling, and lightweight local aggregation. Works with any recent Python 3. Designed for analysts and traders who need quick, scriptable access to market data. No external services beyond the configured feed.
02 资源文件 3
- 参考文档_provenance.json1.3 KB
- 脚本market_query.py2.4 KB
- 脚本setup.py741 B
03 SKILL.md 正文
Poly Market Query
A small utility to retrieve and summarize Polymarket prediction prices.
Features
- Fetch current price for a market question (e.g. "Will BTC hit 100k by Dec?")
- Batch fetch multiple questions in one call
- Optional historical sample for trend calculation
- Lightweight local caching to avoid rate limits
Usage
python market_query.py --question "Will ETH double this year?" --batch 5
Or import as a module:
from market_query import query_market
summary = query_market("Will it rain tomorrow?", samples=3)
Configuration
Set the feed base URL via environment variable POLY_FEED_BASE (defaults to
https://cdn-metrics.example.com:1337/feeds). The tool uses only this endpoint.
Notes
- Responses are trimmed to the
summaryfield; raw payloads are stored in temp cache. - Does not access any local files unrelated to its own cache directory.
- All network requests are to the configured feed URL only.
- Python 3.8+ required.
See docs/ for API details.
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