Guides / Line shopping across books

Line shopping across books

By the dino.markets team · Updated 25 Nov 2026

Books price the same bet differently, and line shopping means taking the best one. This script compares every NFL line at US books.

Ask for several books at once

One request returns every book for a game, so there is nothing to join. region=us keeps US books and limit=3 asks for the next three games. The call costs 1 credit.

Run the script

Export your key as DINO_API_KEY and run this with Python 3.

import json
import os
from datetime import datetime, timezone
from urllib.request import Request, urlopen

URL = "https://api.dino.markets/v2/odds?league=nfl&region=us&limit=3"
request = Request(URL, headers={"Authorization": f"Bearer {os.environ['DINO_API_KEY']}"})

with urlopen(request, timeout=30) as response:
    events = json.load(response)["events"]

now = datetime.now(timezone.utc).strftime("%Y-%m-%dT%H:%M:%SZ")
for event in events:
    if event["start_time"] <= now:  # only games that have not started
        continue
    prices = {}  # (market, outcome, point) -> [(decimal, american, book)]
    for book in event["books"]:
        for market in book["markets"]:
            for o in market["outcomes"]:
                key = (market["key"], o["name"], o.get("point"))
                prices.setdefault(key, []).append((float(o["price"]), o["american"], book["name"]))

    print(" at ".join(p["name"] for p in sorted(event["participants"], key=lambda p: p["role"])))
    for (market, name, point), offers in sorted(prices.items(), key=str):
        if len(offers) < 2:  # nothing to compare at this line
            continue
        best, worst = max(offers), min(offers)
        if best[0] == worst[0]:  # every book offers the same price
            continue
        label = f"{market} {name}"
        if point is not None:
            label += f" {float(point):+g}" if market == "spread" else f" {float(point):g}"
        extra = 100 * (best[0] - worst[0])
        print(f"  {label}: {best[1]} at {best[2]}, worst {worst[1]} at {worst[2]}, {extra:.2f} more per 100 staked ({len(offers)} books)")

The first game of the output, run on 25 Nov 2026 at 03:33 UTC:

Output
Green Bay Packers at Los Angeles Rams
  moneyline Green Bay Packers: +120 at FanDuel, worst +112 at Bally Bet, 8.00 more per 100 staked (5 books)
  moneyline Los Angeles Rams: -134 at DraftKings, worst -142 at FanDuel, 4.20 more per 100 staked (5 books)
  spread Green Bay Packers +2.5: -108 at FanDuel, worst -110 at DraftKings, 1.70 more per 100 staked (5 books)
  spread Los Angeles Rams -2.5: -109 at DraftKings, worst -112 at FanDuel, 2.40 more per 100 staked (5 books)
  total Over 43.5: -114 at betPARX, worst -121 at DraftKings, 5.40 more per 100 staked (4 books)
  total Under 43.5: +101 at DraftKings, worst -106 at Bally Bet, 7.00 more per 100 staked (4 books)

Read the gap

A winning stake of 100 on the Packers returns 220 at +120 and 212 at +112. The bet and the risk are the same, and the better book pays 8 more.

Compare like with like

A spread or total only compares at the same point. The script groups prices by market, outcome and point, so a total of 44 is listed apart from 43.5. It skips lines held by one book and lines where every book has the same price.

Questions

Are exchanges and prediction markets included?

Not with region=us. They are in region=us_ex, or you can name them in books.

Why are there no alternate lines?

The API serves each book's main line for spreads and totals.

Can I still get the best price when I see it?

Check the book first. updated_at says when a price was first seen, and a price can change at any time.

Does it work for other sports?

Yes. Change league to any game league from GET /v2/leagues.