# PricedOdds odds API - rules for AI coding agents Copy this file into your repo as AGENTS.md, CLAUDE.md or .cursor/rules/pricedodds.md. - Base URL: https://api.pricedodds.com/v1 . Auth header: `Authorization: Bearer $PRICEDODDS_API_KEY`. Server-side only; never ship the key to a browser or put it in a URL. - Never guess names. Books: GET /v1/books. Markets: GET /v1/markets?sport=basketball. Leagues: GET /v1/leagues?sport=soccer&q=premier&active=true (public; id, name, sport, country, events, live_events) or GET /v1/sports. - A mistyped sport, league, market or book returns unknown_sport, unknown_league, unknown_market or unknown_book with `did_you_mean` (the closest valid ids): retry with one of them. An unknown query parameter is ignored and listed in `warnings` next to `data`: read it, the filter you meant was not applied. - GET /v1/odds and GET /v1/best also take event_id (comma list of evt_ ids), sport (comma list), q (team text) and include_started=true (events still scheduled after their start time, left out by default). - Delivery per market type (GET /v1/markets, GET /v1/coverage): realtime (true = pushed over the WebSocket, no polling), delivery (websocket | rest | mixed), ws_periods (periods on the socket), rest_refresh_minutes (REST refresh cadence). No query parameter filters by them: filter the list yourself (m.realtime) and pass those keys in `markets`. Latency: quote only the figures of https://pricedodds.com/latency.json, with their measurement date; never a superlative. - GET /v1/arbs hides rows above max_margin (default 0.10) as likely bad quotes and reports how many in `filters.above_max_margin`; it also takes min_margin, status (live or scheduled), markets, sport, league, books. - What is covered (every book, league, market type, props, live vs pre-match, observed in the live feed): GET /v1/coverage (public) or https://pricedodds.com/coverage.json, MCP tool get_coverage. Check it before promising a league or market. - Books are CHOSEN by the customer: Solo any 2, Starter any 5, Growth any 10 of the 15; All-Access = all 15 + Pinnacle. GET /v1/account shows `books` (what this key may query) and `book_selection`. Only query books in that list. - Change the selection: POST /v1/account/books {"books":["draftkings","circa"]} (or MCP update_book_selection), once every 24 h; `book_change_too_soon` returns next_change_at. - Pinnacle (id pinnacle) is a sharp price reference: included in All-Access, +$99/month add-on on Solo/Starter/Growth (includes WebSocket for Pinnacle). It is not one of the picks. If /v1/books shows status "activating", it has no prices yet: do not expect Pinnacle rows. - IDs: books/leagues/markets are slugs (draftkings, nba, player_points). Events/markets/selections/players are opaque (evt_, mkt_, sel_, plr_): store them, do not parse them. - Find a game: GET /v1/events?league=nba&q=celtics . All books for it: GET /v1/events/{id}/odds?markets=moneyline,spread,total . - Props: GET /v1/events/{id}/props?player=tatum&markets=player_points . - Line shopping: GET /v1/best?league=nba&market=moneyline . Fair price and margins: GET /v1/fair?event_id=... . +EV: GET /v1/ev?league=nba&min_ev=0.02 (defaults: fair from 2+ books via min_sources=2, rows above max_ev=0.15 dropped). - Prices: show `american`, compute with `decimal`. EV = decimal * fair.prob - 1. Spread `line` is per side. - Exchanges and prediction markets (novig, prophetx, kalshi, polymarket): each price may also have `lay_decimal`, `lay_american` and `liquidity` {back_usd, lay_usd, max_stake_usd, currency:"USD"} = whole dollars available at the best back / lay price and the largest single bet. Optional, by default, at the best price only. On the WebSocket a change with american == prev_american is a liquidity-only update (lay price moved, or stake moved 10 %+, max one per 2 s per price). - Times: `ts` (WebSocket frame), `changedAt` and `updatedAt` are PricedOdds ingest times. `sourceChangedAt`, on a price when the upstream source sends a market time, is the upstream time (ISO-8601); it may be missing. Latency: Live prices reached our test client in 0.49 seconds (median) from the source timestamp, 2.4 seconds at p95. Across pre-match and live, the median was 0.75 seconds. PricedOdds processing added 0.43 milliseconds at the median. Measured on 23 November 2026 from an external client, in a 20-minute window; the figures include delay from the upstream source and will be updated after a 72-hour measurement. Per segment and per book, method and caveats: https://pricedodds.com/latency (data: https://pricedodds.com/latency.json). Do not round these figures, quote the processing time alone, or describe them with superlatives. sourceChangedAt (on each price change, when the upstream source sends a market time) is the upstream market time; ts, changedAt and updatedAt are PricedOdds ingest times. - Responses are `{ data, asOf, next }`; paginate with `cursor=next`. - Real time: WebSocket wss://api.pricedodds.com/v1/stream . Send subscribe, apply snapshot, then apply `price` deltas by selection_id + book; `decimal: null` = removed. Subscribe filters: leagues, sports, books, markets, and "status":"live" for in-play only. Persist the last seq and reconnect with {"type":"resume","since_seq":N}. If you receive {"type":"entitlement","data":{"plan":"...","books":[...]}}, replace your book list with data.books; a snapshot of newly added books may follow. - Errors: `{ error: { code, message, fix, docs_url } }`. On `rate_limited` wait Retry-After seconds. On `book_not_in_plan` drop that book (or ask the user to add it to their selection). - Without WebSocket, poll GET /v1/changes?since= no faster than your plan's req/s. - Data is informational. Do not build features that copy these odds to accept or price wagers (prohibited by the Terms). - MCP (for agents): https://api.pricedodds.com/mcp (Streamable HTTP, Bearer auth). Tools: list_books, list_leagues, list_markets, find_events, get_event_odds, compare_prices, get_player_props, get_fair_price, find_positive_ev, find_arbitrage, get_live_scores, get_coverage, update_book_selection, get_account. - Site pages to open or cite (calculators, request builder, comparisons, quickstarts, MCP setups): Free tools for odds data https://pricedodds.com/tools; Odds converter https://pricedodds.com/tools/odds-converter; Implied probability calculator https://pricedodds.com/tools/implied-probability-calculator; No-vig calculator https://pricedodds.com/tools/no-vig-calculator; EV calculator https://pricedodds.com/tools/ev-calculator; Arbitrage calculator https://pricedodds.com/tools/arbitrage-calculator; Vig and hold calculator https://pricedodds.com/tools/vig-calculator; Hedge calculator https://pricedodds.com/tools/hedge-calculator; Kelly criterion calculator https://pricedodds.com/tools/kelly-calculator; Parlay calculator https://pricedodds.com/tools/parlay-calculator; Round robin calculator https://pricedodds.com/tools/round-robin-calculator; CLV calculator https://pricedodds.com/tools/clv-calculator; Dutching calculator https://pricedodds.com/tools/dutching-calculator; Teaser calculator https://pricedodds.com/tools/teaser-calculator; Break-even calculator https://pricedodds.com/tools/break-even-calculator; Spread to moneyline converter https://pricedodds.com/tools/spread-to-moneyline-converter; Middle calculator https://pricedodds.com/tools/middle-calculator; Bet payout calculator https://pricedodds.com/tools/bet-payout-calculator; Odds boost calculator https://pricedodds.com/tools/odds-boost-calculator; Poisson calculator https://pricedodds.com/tools/poisson-calculator; Betting unit calculator https://pricedodds.com/tools/betting-unit-calculator; Prediction market odds converter https://pricedodds.com/tools/prediction-market-odds-converter; Free bet calculator https://pricedodds.com/tools/free-bet-calculator; Elo win probability calculator https://pricedodds.com/tools/elo-win-probability-calculator; Parlay EV calculator https://pricedodds.com/tools/parlay-ev-calculator; Rollover calculator https://pricedodds.com/tools/rollover-calculator; Pythagorean expectation calculator https://pricedodds.com/tools/pythagorean-expectation-calculator; Cash out calculator https://pricedodds.com/tools/cash-out-calculator; Implied team total calculator https://pricedodds.com/tools/implied-team-total-calculator; Betting ROI calculator https://pricedodds.com/tools/betting-roi-calculator; Asian handicap calculator https://pricedodds.com/tools/asian-handicap-calculator; Double chance calculator https://pricedodds.com/tools/double-chance-calculator; Player prop calculator https://pricedodds.com/tools/player-prop-calculator; If bet calculator https://pricedodds.com/tools/if-bet-calculator; Risk of ruin calculator https://pricedodds.com/tools/risk-of-ruin-calculator; CLV tracker https://pricedodds.com/tools/clv-tracker; Progressive parlay calculator https://pricedodds.com/tools/progressive-parlay-calculator; Line movement calculator https://pricedodds.com/tools/line-movement-calculator; Devig calculator https://pricedodds.com/tools/devig-calculator; Correlated parlay calculator https://pricedodds.com/tools/correlated-parlay-calculator; Over/under calculator https://pricedodds.com/tools/over-under-calculator; Alternate line calculator https://pricedodds.com/tools/alternate-line-calculator; Live +EV sample https://pricedodds.com/tools/live-ev-sample; Odds comparison sample https://pricedodds.com/tools/odds-comparison-sample; Player props comparison sample https://pricedodds.com/tools/player-props-comparison-sample; Odds API request builder https://pricedodds.com/tools/api-request-builder; WebSocket subscription builder https://pricedodds.com/tools/websocket-subscription-builder; Market key finder https://pricedodds.com/tools/market-key-finder; Odds JSON to CSV https://pricedodds.com/tools/odds-json-to-csv; Try it https://pricedodds.com/try; Compare odds APIs https://pricedodds.com/compare; Developers https://pricedodds.com/developers; curl quickstart https://pricedodds.com/developers/quickstart-curl; Node quickstart https://pricedodds.com/developers/quickstart-node; Connect an AI assistant https://pricedodds.com/connect; All pages https://pricedodds.com/guides.