History

Opening and closing lines

Use this page to read the first, latest and closing price of each pre-match selection. It needs the history:read ability, which Business has.

1. Read the lines

/matches/{id}/odds/lines returns one row for each pre-match selection with the first price bet365 offered, the latest price and, once the match has kicked off, the closing price. moved is the latest decimal price minus the opening one.

curl "https://odds-feed.on-forge.com/api/v2/matches/0199c5a0-7b1e-7c3a-9f4e-2d6b8a1c4e71/odds/lines" \
  -H "Authorization: Bearer YOUR_KEY"
Response
{
  "data": [
    {
      "group": { "key": "goal_line", "name": "Goal Line" },
      "selection": { "name": "Over", "column": null, "line": 2.25, "team": null, "player": null },
      "opening": { "price": { "decimal": 1.9, "fractional": "9/10" }, "at": "2026-11-26T10:40:20.000Z" },
      "latest": { "price": { "decimal": 1.8, "fractional": "4/5" }, "at": "2026-11-27T10:30:20.000Z" },
      "closing": null,
      "moved": -0.1
    },
    "…"
  ],
  "meta": {
    "match": "0199c5a0-7b1e-7c3a-9f4e-2d6b8a1c4e71",
    "topic": "odds",
    "kickoff_at": "2026-11-28T10:40:20.000Z",
    "lines_status": "open",
    "availability": { "status": "available" },
    "next_cursor": null,
    "has_more": false,
    "…": "…"
  },
  "links": { "…": "…" }
}

meta.lines_status is open before kick-off and closed after, when closing is filled in.

2. Filter the lines

group keeps one market group by its key, player keeps one player's selections by bet365 player id, and closed=1 keeps only selections that have a closing price.

curl "https://odds-feed.on-forge.com/api/v2/matches/0199c5a0-7b1e-7c3a-9f4e-2d6b8a1c4e71/odds/lines?group=goal_line&closed=1" \
  -H "Authorization: Bearer YOUR_KEY"
Response
{
  "data": [],
  "meta": { "availability": { "status": "unavailable", "reason": "not_held" }, "…": "…" },
  "links": { "…": "…" }
}

Nothing has closed yet because the match has not kicked off, so the list is empty.

Reference

Parameters on GET /matches/{id}/odds/lines.

Parameter Values Notes
group Group key For example goal_line.
player bet365 player id Digits only.
closed 1, 0, true, false 1 keeps closed selections.
limit 1 to 5000 Default 1000.
cursor Value of meta.next_cursor See Paging with cursors.

Fields of a line.

Field Notes
group key and name of the market group.
selection name, column, line, team and player.
opening, latest, closing price and at. closing is null until the match has kicked off.
moved Latest decimal price minus the opening one.

Lines start from when we began recording a match. A match with nothing recorded answers 200 with an empty data and the reason not_held.

Odds Yorkie

Prices are shown as bet365 offers them. OddsYorkie supplies data only and does not take bets. 18+ only. BeGambleAware.org