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
- Homepage: https://polymarket.com
- Gamma API: https://gamma-api.polymarket.com
- CLOB API: https://clob.polymarket.com
License
See LICENSE.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
5d6ac2474083fc3fac058016f37893ef4395c2f9d2d6ec205e14ddc021da0e74
|
|
| MD5 |
cfe4d891066a695ed1693325eeae8bbf
|
|
| BLAKE2b-256 |
98f0b15f6b487a9ba348f93c3e2d711a6cd4b2f975b9c88f896965627c1c1e06
|
Provenance
The following attestation bundles were made for parsimony_polymarket-0.5.0.tar.gz:
Publisher:
release.yml on ockham-sh/parsimony-connectors
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
parsimony_polymarket-0.5.0.tar.gz -
Subject digest:
5d6ac2474083fc3fac058016f37893ef4395c2f9d2d6ec205e14ddc021da0e74 - Sigstore transparency entry: 1453275373
- Sigstore integration time:
-
Permalink:
ockham-sh/parsimony-connectors@db37b495a6c7b7c5a4e5bfdfa5b5b4d74ac4b1b6 -
Branch / Tag:
refs/heads/main - Owner: https://github.com/ockham-sh
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@db37b495a6c7b7c5a4e5bfdfa5b5b4d74ac4b1b6 -
Trigger Event:
workflow_dispatch
-
Statement type:
File details
Details for the file parsimony_polymarket-0.5.0-py3-none-any.whl.
File metadata
- Download URL: parsimony_polymarket-0.5.0-py3-none-any.whl
- Upload date:
- Size: 8.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f712b44274396df6ee38a0ad8ba1ddeeb195825b88e7dc6ba93d5b99531e95c2
|
|
| MD5 |
41ee7b305974876e7eebf739509c0c8d
|
|
| BLAKE2b-256 |
96f7bbbf13d15f92ea927be0fc78e4b0a8ce24c1df7f7cc5275cd6d10e6aac5d
|
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
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
parsimony_polymarket-0.5.0-py3-none-any.whl -
Subject digest:
f712b44274396df6ee38a0ad8ba1ddeeb195825b88e7dc6ba93d5b99531e95c2 - Sigstore transparency entry: 1453275432
- Sigstore integration time:
-
Permalink:
ockham-sh/parsimony-connectors@db37b495a6c7b7c5a4e5bfdfa5b5b4d74ac4b1b6 -
Branch / Tag:
refs/heads/main - Owner: https://github.com/ockham-sh
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@db37b495a6c7b7c5a4e5bfdfa5b5b4d74ac4b1b6 -
Trigger Event:
workflow_dispatch
-
Statement type: