Skip to main content

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 search and list
  • Market detail lookup via market
  • Order book and spot pricing via book, midpoint, and price
  • Recent public trades via trades
  • Public token price history via history

Install

uv tool install polymarket-cli
polymarket-cli --help

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:

  • --json is available on every command.
  • --hydrate resolves search/list rows to full market detail before local ranking or filtering.
  • --with-odds implies hydration and includes current outcome prices.
  • --with-market implies 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


Download files

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

Source Distribution

polymarket_cli-0.2.0.tar.gz (13.1 kB view details)

Uploaded Source

Built Distribution

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

polymarket_cli-0.2.0-py3-none-any.whl (15.5 kB view details)

Uploaded Python 3

File details

Details for the file polymarket_cli-0.2.0.tar.gz.

File metadata

  • Download URL: polymarket_cli-0.2.0.tar.gz
  • Upload date:
  • Size: 13.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for polymarket_cli-0.2.0.tar.gz
Algorithm Hash digest
SHA256 182915934fb53f3bb9d089f881684d1b8b9ae4f4634f4b4d67938cbcce6cb046
MD5 72e469779ecd90111b9ace41f5b3d98d
BLAKE2b-256 f072b6da773bc65529b476978ad3d7fa628f1b56279189ba88bca4ea15592ec7

See more details on using hashes here.

Provenance

The following attestation bundles were made for polymarket_cli-0.2.0.tar.gz:

Publisher: publish-pypi.yml on ra1nty/polymarket-cli

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

File details

Details for the file polymarket_cli-0.2.0-py3-none-any.whl.

File metadata

  • Download URL: polymarket_cli-0.2.0-py3-none-any.whl
  • Upload date:
  • Size: 15.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for polymarket_cli-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 ad8f2a22d2fc6244d745837e3878bac386e3559ce9b36abf97d7549d52218124
MD5 33d7e9677f0abe19497858ca16b2a040
BLAKE2b-256 76311e3de39fcf00f2564a77b578ee0ad93a3b63a393b489ad626f7667a49ce2

See more details on using hashes here.

Provenance

The following attestation bundles were made for polymarket_cli-0.2.0-py3-none-any.whl:

Publisher: publish-pypi.yml on ra1nty/polymarket-cli

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