Skip to main content

pinnradar: Pinnacle odds API client for Python

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.

Pinnacle closed its public API to most users in July 2025. PinnRadar is an independent service (not affiliated with Pinnacle) that serves Pinnacle's live and prematch prices over a simple REST API and push streams, with a free tier.

  • 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).

PinnRadar is an independent data service, not affiliated with Pinnacle. MIT licensed.

Metadata

Release files for pinnradar 0.1.1

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

Source distribution (sdist)

Source distribution for pinnradar 0.1.1
File Size Uploaded Provenance Actions
pinnradar-0.1.1.tar.gz 8.6 kB With provenance Details for pinnradar-0.1.1.tar.gz

Built distribution (wheel)

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

Total release size: 17.0 kB

Release files / pinnradar-0.1.1.tar.gz

Download URL pinnradar-0.1.1.tar.gz
Size 8.6 kB
Tags Source
SHA-256 checksum
How to use checksums
1125c7887e56e7cfb4cc5802cda64bec9cbb55cadc9a5bd674ae359554e6fe42
BLAKE2b-256 checksum
How to use checksums
1bc3e1fa94d35452a7f09fc2fa172feb2e63c24774e7b300f46740f1cf18aa12
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 11, 2026.

Transparency log

Release files / pinnradar-0.1.1-py3-none-any.whl

Download URL pinnradar-0.1.1-py3-none-any.whl
Size 8.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
c527729bdcdf1df04011e860db1ac9c6fc59372733df656da9f072e2e79374f0
BLAKE2b-256 checksum
How to use checksums
1691b99322abab223a4858759ef684fd493cac474f28d27dd94eb334bf6f4179
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 11, 2026.

Transparency log

Security for pinnradar 0.1.1

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.

Select from 2 files

Attestation for pinnradar-0.1.1.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 11, 2026.

Transparency log

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.

Release history Release notifications | RSS feed

This release

0.1.1 This release

2 release files Full provenance

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