Production-oriented read-only CLI wrapper around Polymarket public Gamma + CLOB APIs
Project description
polymarket-cli
Read-only CLI for public Polymarket Gamma, CLOB, and Data API lookups.
This package stays intentionally narrow: public, unauthenticated reads only. It does not place orders, manage wallets, sign anything, or depend on private APIs.
The published Pypi package is polymarket-cli.
What It Covers
- Market discovery via
searchandlist - Market detail lookup via
market - Order book and spot pricing via
book,midpoint, andprice - Recent public trades via
trades - Public token price history via
history
Install
uv tool install polymarket-cli
polymarket-cli --help
The published package pins a bundled CA root store via certifi, so HTTPS works consistently in environments where uv or Homebrew Python points at an incomplete local OpenSSL trust store. If you already manage trust with SSL_CERT_FILE or SSL_CERT_DIR, the CLI respects those overrides.
For one-off execution:
uvx polymarket-cli --help
If your uv tool bin directory is not on PATH, either run uv tool update-shell or call the binary directly from $(uv tool dir --bin).
Agent Skill Installation
Install the packaged skill with npx skills:
OpenClaw
npx skills add ra1nty/polymarket-cli -a openclaw
Claude Code
npx skills add ra1nty/polymarket-cli -a claude-code
After installation, use the public command surface in agent prompts and automation:
polymarket-cli search bitcoin --limit 5
polymarket-cli market --slug <market-slug> --json
Usage
polymarket-cli search bitcoin --limit 5
polymarket-cli list --active-only --sort volume24hr --limit 20
polymarket-cli market --slug btc-updown-5m-1774165800
polymarket-cli book --slug btc-updown-5m-1774165800 --outcome Down
polymarket-cli price --slug btc-updown-5m-1774165800
polymarket-cli history --slug btc-updown-5m-1774165800 --window 6h --format summary --json
polymarket-cli trades --slug btc-updown-5m-1774165800 --limit 20
Useful flags:
--jsonis available on every command.--hydrateresolves search/list rows to full market detail before local ranking or filtering.--with-oddsimplies hydration and includes current outcome prices.--with-marketimplies hydration and embeds the resolved market payload in JSON output.- Market selectors are explicit:
--slug,--id,--token-id,--condition-id.
Supported history intervals: max, all, 1m, 1h, 6h, 1d, 1w.
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 polymarket_cli-0.2.2.tar.gz.
File metadata
- Download URL: polymarket_cli-0.2.2.tar.gz
- Upload date:
- Size: 13.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
851f7028a0f827048dd19433d72ea90f3a28733141118af773bbb183a7710e17
|
|
| MD5 |
452dd879ad33a2f909d0ff80ea0d7c7c
|
|
| BLAKE2b-256 |
b999b876f06ed6f1c40a40a20b7c0255b4d8c3ed89116a7f2dfdce8e4a6e8754
|
Provenance
The following attestation bundles were made for polymarket_cli-0.2.2.tar.gz:
Publisher:
publish-pypi.yml on ra1nty/polymarket-cli
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
polymarket_cli-0.2.2.tar.gz -
Subject digest:
851f7028a0f827048dd19433d72ea90f3a28733141118af773bbb183a7710e17 - Sigstore transparency entry: 1155550606
- Sigstore integration time:
-
Permalink:
ra1nty/polymarket-cli@5f621ce3656db94c42feaabbdeb99e46c5511b13 -
Branch / Tag:
refs/heads/main - Owner: https://github.com/ra1nty
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish-pypi.yml@5f621ce3656db94c42feaabbdeb99e46c5511b13 -
Trigger Event:
workflow_dispatch
-
Statement type:
File details
Details for the file polymarket_cli-0.2.2-py3-none-any.whl.
File metadata
- Download URL: polymarket_cli-0.2.2-py3-none-any.whl
- Upload date:
- Size: 16.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
98b0f27c71a0387b60312556ad94780102b2a0d41a131f30dfe5d0c15a5a201b
|
|
| MD5 |
8f68119e6203d73f7a5dfbaa2dad60c3
|
|
| BLAKE2b-256 |
70e86262ddb70f267185c7fcad5cb5573872d61e881ea24efd3e2b53d51f2e2b
|
Provenance
The following attestation bundles were made for polymarket_cli-0.2.2-py3-none-any.whl:
Publisher:
publish-pypi.yml on ra1nty/polymarket-cli
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
polymarket_cli-0.2.2-py3-none-any.whl -
Subject digest:
98b0f27c71a0387b60312556ad94780102b2a0d41a131f30dfe5d0c15a5a201b - Sigstore transparency entry: 1155550617
- Sigstore integration time:
-
Permalink:
ra1nty/polymarket-cli@5f621ce3656db94c42feaabbdeb99e46c5511b13 -
Branch / Tag:
refs/heads/main - Owner: https://github.com/ra1nty
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish-pypi.yml@5f621ce3656db94c42feaabbdeb99e46c5511b13 -
Trigger Event:
workflow_dispatch
-
Statement type: