pinnradar
Python client for the PinnRadar API: real-time Pinnacle odds as JSON. Live and prematch markets (moneyline, spreads, totals, team totals, every period), dropping-odds alerts over Server-Sent Events, and no-vig helpers.
- No dependencies (standard library only), Python 3.8+
- Typed, with clear errors (
AuthError,RateLimitError) - Streams reconnect with backoff
pip install pinnradar
Get a free key at pinnradar.com (email only, no card, no Pinnacle account).
Quick start
from pinnradar import Client
pr = Client("YOUR_KEY") # or set PINNRADAR_API_KEY
# Live soccer board (sport_id 1)
board = pr.markets(sport_id=1)
for ev in board["events"]:
ml = ev["periods"]["num_0"].get("money_line") or {}
print(ev["home"], "v", ev["away"], ml.get("home"), ml.get("draw"), ml.get("away"))
# Only what changed since the last call
board = pr.markets(sport_id=1, since=board["last"])
Prematch
fixtures = pr.prematch_fixtures(sport_id=3) # basketball
event_id = fixtures["events"][0]["event_id"]
markets = pr.prematch_markets(event_id) # every period and line
totals = pr.prematch_lines(event_id, market_type="totals")
Dropping odds
Recent drops from the server-side buffer:
for d in pr.drops(mode="live", sport_id=1, min_drop_pct=7, max_age_sec=600):
print(d["home"], d["market"], d["side"], d["from"], "->", d["to"], f'{d["drop_pct"]:.1f}%')
Or follow them live over SSE (plans with SSE: Drops, Edge, Scale):
for drop in pr.stream_drops(min_drop=5): # prematch=True for /odds-drop-prematch
print(drop["home"], drop["sect"], drop["outcome"], drop["from_price"], "->", drop["to_price"], "fair", drop["nvp"])
No-vig (fair) odds
from pinnradar import no_vig, margin
margin([1.952, 1.952]) # 0.0246 -> 2.5 % margin
no_vig([2.10, 3.45, 3.70]) # fair 1X2 prices
no_vig([1.25, 4.20], method="power") # takes more margin from the longshot
There is also an online no-vig calculator.
Sport ids
| id | sport | id | sport |
|---|---|---|---|
| 1 | Soccer | 5 | American football |
| 2 | Tennis | 6 | Baseball |
| 3 | Basketball | 11 | Esports |
| 4 | Hockey |
Errors and limits
from pinnradar import AuthError, RateLimitError
try:
pr.markets(1)
except RateLimitError as e:
print("slow down for", e.retry_after, "seconds")
except AuthError:
print("check your key or plan")
Rate limits depend on the plan; see pricing. Any other endpoint can be called with pr.get("/path", **params).
Links
- API docs: https://pinnradar.com/docs
- WebSocket feed and MCP server: https://pinnradar.com/docs
- Node.js client: https://www.npmjs.com/package/pinnradar
PinnRadar is an independent data service, not affiliated with Pinnacle. MIT licensed.
Metadata
Release files for pinnradar 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| pinnradar-0.1.0.tar.gz | 8.5 kB | With provenance | Details for pinnradar-0.1.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| pinnradar-0.1.0-py3-none-any.whl | Python 3 | none | any | Details for pinnradar-0.1.0-py3-none-any.whl |
Total release size: 16.7 kB
Release files / pinnradar-0.1.0.tar.gz
| Download URL | pinnradar-0.1.0.tar.gz |
|---|---|
| Size | 8.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
37abe430c36467624156d5623fb0c5504db6cb31215c8c60c03f2f45d0785ecc
|
|
BLAKE2b-256 checksum How to use checksums |
8fe04be7f072c62d365ac3bd53cbee472c74cdde98b8dbeb637b0f1992ed41e1
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 10, 2026.
Transparency logRelease files / pinnradar-0.1.0-py3-none-any.whl
| Download URL | pinnradar-0.1.0-py3-none-any.whl |
|---|---|
| Size | 8.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
41acbde3d46f98a6d6a2458b94ee50e9615511644e64acea41ba3abb0a5077a1
|
|
BLAKE2b-256 checksum How to use checksums |
3c7cd4c6dc13c2010e69c99e8dfa810f2276579d78ffaf741e9a44fe1ed66720
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 10, 2026.
Transparency logSecurity for pinnradar 0.1.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.
Full provenance
Both files in this release have been uploaded with provenance metadata.
Attestation for pinnradar-0.1.0.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 10, 2026.
Transparency logA 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.