Skip to main content

KashRock Python SDK

Listed on MCP Market

Official Python client for the KashRock esports API.

Props, odds, matches, live scores, and history — one key, normalized IDs.

Site: https://www.kashrock.com

Install

pip install kashrock

Four lines to a live prop

from kashrock import KashRock

kr = KashRock("YOUR_API_KEY")
print(kr.props("cs2")["props"][0])

Sandbox key: https://www.kashrock.com/pricing

Docs: https://www.kashrock.com/docs

KASHROCK_API_KEY works if you do not want the key in code.

What you can call

kr.me()
kr.props("cs2", book="prizepicks", limit=20)
kr.lines("cs2")
kr.matches("cs2", status="upcoming")
kr.live_games("cs2")
kr.gamelogs("cs2", "zywoo")
kr.history_tape(market_key="kr_mk_…")

Same paths as the HTTP API and the KashRock MCP. Stacks are not included.

MCP: https://www.kashrock.com/mcp

Auto-trade

KashRock computes signed trade intents on every board change and streams them on wss://…/v7/trade. One command runs the executor on your machine:

export KASHROCK_API_KEY=kr_live_…
kashrock trade --venue polymarket-us

Paper mode is the default — every intent is verified and logged to your console ledger without touching money. Filters (sports, min EV, stake, risk limits) are set in the console and apply live.

The executor:

  • verifies the Ed25519 signature on every intent (unsigned → never placed)
  • skips expired intents and stops placing after 15s without a heartbeat
  • dedupes on intent_id across restarts (~/.kashrock/trade_placed.json)
  • places IOC limit orders only, at-or-better than limit_price, previewed first
  • enforces your daily loss, max open positions and per-match exposure caps against the venue's own balance and positions
  • reports every outcome back so the ledger stays honest

--live requests real orders — it is enabled per account after review. Venue credentials (POLYMARKET_KEY_ID / POLYMARKET_SECRET_KEY, env or ~/.kashrock/pm_us.env) are read only from your machine and never sent to KashRock. Parlay intents are paper-only and are never split into singles.

Sandbox keys work on every sport, up to 500 requests per UTC day: props, matches, players, delayed live scores, and 30 days of history. Hobby+ adds consensus lines and live odds. Builder+ adds the live WebSocket and quote history.

License

MIT

Metadata

Release files for kashrock 0.3.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for kashrock 0.3.0
File Size Uploaded Provenance Actions
kashrock-0.3.0.tar.gz 23.0 kB Without provenance Details for kashrock-0.3.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for kashrock 0.3.0
File Interpreter ABI Platform Actions
kashrock-0.3.0-py3-none-any.whl Python 3 none any Details for kashrock-0.3.0-py3-none-any.whl

Total release size: 44.1 kB

Release files / kashrock-0.3.0.tar.gz

Download URL kashrock-0.3.0.tar.gz
Size 23.0 kB
Tags Source
SHA-256 checksum
How to use checksums
dccee873f8e73e938f326cbb59a55bbb268499a7f36b62dcfa0958ef8c502081
BLAKE2b-256 checksum
How to use checksums
6fedb1dca0408e02faa2e6960a8437c4bb778dd05b38ea2cca1bdde4a4573b00
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.12.3 {"installer":{"name":"uv","version":"0.12.3","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

Release files / kashrock-0.3.0-py3-none-any.whl

Download URL kashrock-0.3.0-py3-none-any.whl
Size 21.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
91e4e616358fb5b8cc5a23a124628dff6ee7db305aabf6d600b831e33d15070a
BLAKE2b-256 checksum
How to use checksums
5ce0592b0198fb344aae1ae772d9d5affae2bb8286264784a9b29bc78f715985
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.12.3 {"installer":{"name":"uv","version":"0.12.3","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

Security for kashrock 0.3.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

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