parsimony-polymarket
Polymarket source for parsimony: prediction-market discovery and prices via the public Gamma and CLOB HTTP APIs.
Part of the parsimony-connectors monorepo. Distributed standalone on PyPI as parsimony-polymarket.
Connectors
The surface follows how a Polymarket question is actually navigated: search → event → market → price history.
| Name | Kind | Description |
|---|---|---|
polymarket_search_events |
enumerator | Natural-language search over events via Gamma /public-search (the only Polymarket endpoint that does server-side text search). Returns slug + title with markets_count and volume/liquidity/active/closed metadata. Takes query, limit (1-100), optimized. |
polymarket_event |
enumerator | The markets inside one event, by event slug. One row per market (market_slug + market_question, with outcome count and volume/liquidity/active/closed). |
polymarket_market |
enumerator | The outcomes of one market and their CLOB token ids, by market slug. One row per outcome (clob_token_id + outcome). |
polymarket_price_history |
connector | The probability time series for one outcome token_id via CLOB /prices-history. Returns a tidy timestamp × probability frame. Takes interval (max/1m/1w/1d/6h/1h) and fidelity (minutes). |
Install
pip install parsimony-polymarket
Pulls in a compatible parsimony automatically. Verify discovery:
python -c "from parsimony import discover; print([p.name for p in discover.iter_providers()])"
Configuration
No environment variables required — Polymarket's Gamma and CLOB read APIs are public. There is no API key, so this package declares no secrets and no load(*, api_key=...) convenience.
Quick start
from parsimony_polymarket import CONNECTORS
# 1. Search events by topic.
events = CONNECTORS["polymarket_search_events"](query="inflation", limit=5)
event_slug = events.raw.iloc[0]["slug"]
# 2. Drill into the event's markets.
markets = CONNECTORS["polymarket_event"](slug=event_slug)
market_slug = markets.raw.iloc[0]["market_slug"]
# 3. Get the market's outcomes and their CLOB token ids.
outcomes = CONNECTORS["polymarket_market"](slug=market_slug)
token_id = outcomes.raw.iloc[0]["clob_token_id"]
# 4. Pull that outcome's probability time series.
history = CONNECTORS["polymarket_price_history"](token_id=token_id, interval="1w")
print(history.raw.head())
For multi-plugin composition:
from parsimony import discover
connectors = discover.load_all()
Provider
- Homepage: https://polymarket.com
- Gamma API: https://gamma-api.polymarket.com
- CLOB API: https://clob.polymarket.com
License
See LICENSE.
Metadata
Release files for parsimony-polymarket 0.0.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| parsimony_polymarket-0.0.2.tar.gz | 11.4 kB | With provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| parsimony_polymarket-0.0.2-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 22.7 kB
Release files / parsimony_polymarket-0.0.2.tar.gz
| Download URL | parsimony_polymarket-0.0.2.tar.gz |
|---|---|
| Size | 11.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
2b9ea05115ff9a58f1dc8843ff2cadd4b5b2778a225917031ccf0cf1daabf12b
|
|
BLAKE2b-256 checksum How to use checksums |
f9d330404c12d2fa3d18f29c8420ed460cf4a3cd7ca3e03e38bd647b1f568da3
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.12.9
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Aug 10, 2026.
Transparency logRelease files / parsimony_polymarket-0.0.2-py3-none-any.whl
| Download URL | parsimony_polymarket-0.0.2-py3-none-any.whl |
|---|---|
| Size | 11.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
80bcf4e5b053d146a6dd354c1f579013126a103d48b859947ebafe7910785ef6
|
|
BLAKE2b-256 checksum How to use checksums |
9af26d8c5df3a8c3bf758a13dca6532230eeeb425c6e2f41fc594aef161236e2
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.12.9
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Aug 10, 2026.
Transparency logSecurity for parsimony-polymarket 0.0.2
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
Full provenance
All 2 files in this release have been uploaded with provenance metadata.
Attestation for parsimony_polymarket-0.0.2.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Aug 10, 2026.
Transparency logA note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.