Skip to main content

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

License

See LICENSE.

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

parsimony_polymarket-0.0.2.tar.gz (11.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

parsimony_polymarket-0.0.2-py3-none-any.whl (11.3 kB view details)

Uploaded Python 3

File details

Details for the file parsimony_polymarket-0.0.2.tar.gz.

File metadata

  • Download URL: parsimony_polymarket-0.0.2.tar.gz
  • Upload date:
  • Size: 11.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for parsimony_polymarket-0.0.2.tar.gz
Algorithm Hash digest
SHA256 2b9ea05115ff9a58f1dc8843ff2cadd4b5b2778a225917031ccf0cf1daabf12b
MD5 9544cc03e222870451deda67969607b2
BLAKE2b-256 f9d330404c12d2fa3d18f29c8420ed460cf4a3cd7ca3e03e38bd647b1f568da3

See more details on using hashes here.

Provenance

The following attestation bundles were made for parsimony_polymarket-0.0.2.tar.gz:

Publisher: release.yml on ockham-sh/parsimony-connectors

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file parsimony_polymarket-0.0.2-py3-none-any.whl.

File metadata

File hashes

Hashes for parsimony_polymarket-0.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 80bcf4e5b053d146a6dd354c1f579013126a103d48b859947ebafe7910785ef6
MD5 2dc5dfae4420e8329ae62b08c65283a5
BLAKE2b-256 9af26d8c5df3a8c3bf758a13dca6532230eeeb425c6e2f41fc594aef161236e2

See more details on using hashes here.

Provenance

The following attestation bundles were made for parsimony_polymarket-0.0.2-py3-none-any.whl:

Publisher: release.yml on ockham-sh/parsimony-connectors

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Release history Release notifications | RSS feed

This release

0.0.2 This release

2 files

0.0.1

2 files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page