Skip to main content

Polymarket connector for the parsimony framework

Project description

parsimony-polymarket

Polymarket source for parsimony: prediction-market quotes via the Gamma and CLOB HTTP APIs.

Part of the parsimony-connectors monorepo. Distributed standalone on PyPI as parsimony-polymarket.

Connectors

Name Kind Description
polymarket_gamma_fetch connector Generic fetcher against https://gamma-api.polymarket.com (events, markets, series). Supports `expand=markets
polymarket_clob_fetch connector Generic fetcher against https://clob.polymarket.com (order book, prices, midpoints). Same expand / response_path surface.

Both connectors take path, method, and arbitrary upstream query params — additional fields on PolymarketFetchParams are forwarded as query string.

Install

pip install parsimony-polymarket

Pulls in parsimony-core>=0.4,<0.5 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.

Quick start

import asyncio
from parsimony_polymarket import CONNECTORS

async def main():
    connectors = CONNECTORS.bind_env()
    result = await connectors["polymarket_gamma_fetch"](
        path="/events",
        limit=5,
        active=True,
        closed=False,
    )
    print(result.data.head())

asyncio.run(main())

For multi-plugin composition:

from parsimony import discover
connectors = discover.load_all().bind_env()

Provider

License

See LICENSE.

Project details


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.5.0.tar.gz (8.8 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.5.0-py3-none-any.whl (8.7 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: parsimony_polymarket-0.5.0.tar.gz
  • Upload date:
  • Size: 8.8 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.5.0.tar.gz
Algorithm Hash digest
SHA256 5d6ac2474083fc3fac058016f37893ef4395c2f9d2d6ec205e14ddc021da0e74
MD5 cfe4d891066a695ed1693325eeae8bbf
BLAKE2b-256 98f0b15f6b487a9ba348f93c3e2d711a6cd4b2f975b9c88f896965627c1c1e06

See more details on using hashes here.

Provenance

The following attestation bundles were made for parsimony_polymarket-0.5.0.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.5.0-py3-none-any.whl.

File metadata

File hashes

Hashes for parsimony_polymarket-0.5.0-py3-none-any.whl
Algorithm Hash digest
SHA256 f712b44274396df6ee38a0ad8ba1ddeeb195825b88e7dc6ba93d5b99531e95c2
MD5 41ee7b305974876e7eebf739509c0c8d
BLAKE2b-256 96f7bbbf13d15f92ea927be0fc78e4b0a8ce24c1df7f7cc5275cd6d10e6aac5d

See more details on using hashes here.

Provenance

The following attestation bundles were made for parsimony_polymarket-0.5.0-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.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page