pinnapi 0.1.0__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,99 @@
1
+ Metadata-Version: 2.4
2
+ Name: pinnapi
3
+ Version: 0.1.0
4
+ Summary: Real-time Pinnacle odds & drop alerts in Python — REST snapshots and SSE drop streams from pinnapi.com, the drop-in alternative to the closed Pinnacle API.
5
+ Project-URL: Homepage, https://pinnapi.com
6
+ Project-URL: Documentation, https://pinnapi.com/docs
7
+ Project-URL: API reference (LLM-friendly), https://pinnapi.com/llms-full.txt
8
+ Project-URL: Blog, https://pinnapi.com/blog
9
+ Author-email: pinnapi <info@pinnapi.com>
10
+ License: MIT
11
+ License-File: LICENSE
12
+ Keywords: arbitrage,betting,closing-line-value,dropping-odds,odds,odds-api,pinnacle,pinnacle-api,sports-betting,sse,steam-moves
13
+ Classifier: Development Status :: 4 - Beta
14
+ Classifier: Intended Audience :: Developers
15
+ Classifier: License :: OSI Approved :: MIT License
16
+ Classifier: Programming Language :: Python :: 3
17
+ Classifier: Programming Language :: Python :: 3.8
18
+ Classifier: Programming Language :: Python :: 3.9
19
+ Classifier: Programming Language :: Python :: 3.10
20
+ Classifier: Programming Language :: Python :: 3.11
21
+ Classifier: Programming Language :: Python :: 3.12
22
+ Classifier: Topic :: Internet :: WWW/HTTP
23
+ Classifier: Topic :: Software Development :: Libraries :: Python Modules
24
+ Requires-Python: >=3.8
25
+ Requires-Dist: requests>=2.20
26
+ Description-Content-Type: text/markdown
27
+
28
+ # pinnapi — Pinnacle odds API for Python
29
+
30
+ Real-time **Pinnacle odds and drop alerts** in Python: REST snapshots of live + prematch markets, and Server-Sent-Events streams that push every odds drop to your code in **~15–40 ms**.
31
+
32
+ ```bash
33
+ pip install pinnapi
34
+ ```
35
+
36
+ > **Does Pinnacle still have a public API?** No — Pinnacle closed its public API on **July 23, 2025** (only bespoke commercial/academic access remains). [pinnapi.com](https://pinnapi.com) is an independent drop-in replacement: the same familiar response shape, served from its own real-time feed. No Pinnacle account needed — your API key is your login, and a free trial key takes seconds (no card).
37
+
38
+ ## Quickstart
39
+
40
+ ```python
41
+ from pinnapi import Client, SPORTS
42
+
43
+ api = Client("YOUR_KEY") # free trial key at https://pinnapi.com/
44
+
45
+ # Live soccer markets (moneyline, spreads, totals, team totals — every period)
46
+ events = api.markets(sport_id=SPORTS["soccer"])
47
+
48
+ # Prematch instead of live
49
+ fixtures = api.prematch_fixtures(sport_id=SPORTS["tennis"])
50
+
51
+ # What just dropped? (queryable buffer, no open connection needed)
52
+ recent = api.drops(mode="live", min_drop_pct=5)
53
+ ```
54
+
55
+ ## Real-time drop alerts (SSE)
56
+
57
+ Stream every market whose price falls past your threshold, the instant it happens — this is the feed for steam chasing, dropping-odds alerts, and arbitrage windows:
58
+
59
+ ```python
60
+ # Requires a plan with SSE (Drops / Edge / Scale)
61
+ for drop in api.stream_drops(mode="live", min_drop=5):
62
+ print(f'{drop["home"]} v {drop["away"]} · {drop["market"]} '
63
+ f'{drop["from"]} → {drop["to"]} (▼{drop["drop_pct"]}%)')
64
+ ```
65
+
66
+ `mode="prematch"` streams pre-game drops (optional `recheck=N` holds an alert N seconds and re-verifies before sending). Reconnects automatically on network hiccups; auth/plan errors raise immediately.
67
+
68
+ ## Why Pinnacle's line?
69
+
70
+ Pinnacle is the market's reference price — the sharp line the rest of the market follows. When it breaks, soft books take seconds to correct; everything in between is your window. A polled aggregator hears about the move on its next cycle; this feed is **push, not poll**.
71
+
72
+ ## API surface
73
+
74
+ | Method | Endpoint | What it returns |
75
+ |---|---|---|
76
+ | `markets(sport_id, event_type)` | `GET /kit/v1/markets` | Live (default) or prematch markets for a sport |
77
+ | `details(event_id)` | `GET /kit/v1/details` | One live event |
78
+ | `prematch_fixtures(sport_id)` | `GET /kit/v1/prematch/fixtures` | All prematch fixtures + markets |
79
+ | `prematch_markets(event_id)` | `GET /kit/v1/prematch/markets` | Markets for one prematch event |
80
+ | `prematch_lines(event_id)` | `GET /kit/v1/prematch/lines` | Compact line view |
81
+ | `drops(mode, ...)` | `GET /api/drops` | Recent dropping-odds buffer (filterable) |
82
+ | `stream_drops(mode, min_drop)` | SSE `/odds-drop[-prematch]` | Push stream of drop alerts |
83
+ | `health()` / `ping()` | `GET /health` / `/ping` | Service status / liveness |
84
+
85
+ **Sports** (`SPORTS` dict): soccer=1, tennis=2, basketball=3, hockey=4, football=5, baseball=6, rugby=7, mma=8, boxing=9, other=10, esports=11, golf=12.
86
+
87
+ **Errors:** `AuthError` (bad key / plan lacks the surface), `RateLimitError` (with `.retry_after` seconds), `PinnapiError` (everything else, with `.status` and `.payload`).
88
+
89
+ ## Pricing & limits
90
+
91
+ Free trial: 100 REST requests/day, no card. Paid plans from **$99/mo** (SSE drop streams, 10–30 req/sec REST, raw WebSocket add-on). Full details: [pinnapi.com](https://pinnapi.com/#pricing) · [API docs](https://pinnapi.com/docs) · [LLM-friendly reference](https://pinnapi.com/llms-full.txt).
92
+
93
+ ## Notes
94
+
95
+ - Real-time feed only (live + prematch) — no historical archive; buffer the stream yourself if you need history.
96
+ - One concurrent SSE connection per account per stream (live and prematch counted separately).
97
+ - pinnapi is an independent service, **not affiliated with or endorsed by Pinnacle**.
98
+
99
+ MIT licensed.
@@ -0,0 +1,4 @@
1
+ pinnapi-0.1.0.dist-info/METADATA,sha256=DW0sgBj74GY878rf-BSjhgrxnIkwkOAf22js5m0WoTs,5141
2
+ pinnapi-0.1.0.dist-info/WHEEL,sha256=mffPy8wBnZQn2VnJUU5jE99KsxaSfiyMHV9Yt0aLVxs,87
3
+ pinnapi-0.1.0.dist-info/licenses/LICENSE,sha256=hjw4s88WJXDj94V0H5PadZs98nVxorBiObVm7Egqgis,1078
4
+ pinnapi-0.1.0.dist-info/RECORD,,
@@ -0,0 +1,4 @@
1
+ Wheel-Version: 1.0
2
+ Generator: hatchling 1.30.1
3
+ Root-Is-Purelib: true
4
+ Tag: py3-none-any
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 pinnapi (pinnapi.com)
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.