You can poll the Pinnacle odds API from Python on a free key if you size the loop to the quota: 1,000 requests a day works out to one call every 86.4 seconds, so a 90-second loop runs all day. The script below does that, prints only the markets that changed since the last call, and shows the no-vig price next to each Pinnacle price.
I work on PinnFeed, the API used here. The budgeting part applies to any rate-limited REST feed.
What a free key gives you
As of 3 December 2026, the PinnFeed Free plan is:
- REST only, with a 30-second delay (every response carries
X-Data-Delay-Seconds: 30) - 2 sports of your choice, main lines only
- 1 request per second and 1,000 requests per day, counted across all keys on your account
- no card
Every REST response has a top-level asOf (the moment the data reflects; on Free that is 30 seconds ago) and every market has updatedAt (the last time its price, line, max stake or cutoff changed). The second field is what makes cheap change detection possible.
The budget, before the code
86,400 seconds a day divided by 1,000 requests is 86.4 seconds. Anything faster runs out before the day is over. Three things eat into that budget without you noticing:
-
Pages.
/v1/oddsreturns 200 events by default. If you page withoffset, each page is another request. - Two sports. Polling both in one loop doubles the cost. Alternate them, or give each one 180 seconds.
-
Retries. A loop that retries instantly on a
429burns the rest of the day in a minute.
To size this, look at the volume. At 15:26 UTC on 3 December 2026 the feed carried 65 live events, 1,810 prematch events and 39,540 markets. Asking for one sport with main=true keeps a single page useful.
The script
import os
import time
import requests
API = "https://pinnfeed.io/v1"
INTERVAL = 90 # 86,400 s / 90 s = 960 calls a day, under the Free cap of 1,000
session = requests.Session()
session.headers["x-api-key"] = os.environ["PINNFEED_KEY"]
seen = {} # market id -> updatedAt of the last price we printed
def fetch_board(sport):
r = session.get(
f"{API}/odds",
params={"sport": sport, "main": "true", "limit": 200},
timeout=10,
)
if r.status_code == 429: # over the rate or daily limit: back off, don't hammer
return None, None
r.raise_for_status()
return r.json(), r.headers.get("X-Data-Delay-Seconds")
def changed_markets(board):
for event in board["events"]:
for market in event["markets"]:
if seen.get(market["id"]) != market["updatedAt"]:
seen[market["id"]] = market["updatedAt"]
yield event, market
def show(event, market):
prices = " ".join(
f'{o["name"]} {o["decimal"]:.3f} (fair {o["fair"]:.3f})'
for o in market["outcomes"]
)
line = "" if market["line"] is None else f' {market["line"]:+g}'
print(f'{event["home"]} v {event["away"]} | {market["type"]}{line} | {prices}')
def main(sport="soccer"):
while True:
board, delay = fetch_board(sport)
if board is not None:
moves = list(changed_markets(board))
print(f'asOf {board["asOf"]} (delay {delay or 0}s): {len(moves)} changed markets')
for event, market in moves:
show(event, market)
time.sleep(INTERVAL)
if __name__ == "__main__":
main()
Run it with pip install requests, then PINNFEED_KEY=your_key python poll_odds.py. The first pass prints every market on the board, and later passes print only the ones whose updatedAt moved.
Why updatedAt and not a price diff
Comparing prices outcome by outcome works, but it misses line changes and max-stake changes, and you need to store every price. A market's id is stable for its life (eventId:key), and updatedAt changes whenever anything in it changes, so one string per market is enough state. If a price has not moved, its updatedAt stays put even though asOf advances.
What fair is
Each outcome carries decimal (Pinnacle's price), fair (the no-vig price) and fairProb. The market carries margin, the sum of implied probabilities minus 1. The fair price uses the multiplicative method, and the raw prices are always there if you prefer power or Shin.
Checking what you have left
GET /v1/account returns your plan, limits and today's usage. The field that matters for the Free cap is usage.account_used_today, because the 1,000 a day counts every key on the account. Call it once at start-up rather than in the loop, so it does not eat into the budget.
When polling stops being the right tool
A 90-second poll of 30-second-delayed data is fine for dashboards, spreadsheets, daily models and learning the data shape. It is the wrong tool if you need every move as it happens: a poller sees a change on its next request, so on average half an interval late. The paid plans fix this in two steps (as of 3 December 2026): Realtime REST at $49/mo removes the delay but stays REST at 1 request every 5 seconds, and the WebSocket starts at Builder, $139/mo, with a 3-day trial. The WebSocket version of this script, in Python and Node.js, is in the PinnFeed guide.
Who publishes this
Written by the PinnFeed team. PinnFeed is a Pinnacle odds API for developers and is not affiliated with, endorsed or sponsored by Pinnacle. Odds data for software development, not betting advice. 18+.
Top comments (0)