Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# Changelog

## Unreleased

- Docs: `getMarkets()`, `getBookmakers()`, the `$markets` parameter of `getEventOdds()` and the README link to the market reference at https://odds-api.io/markets and bookmaker coverage at https://odds-api.io/sportsbooks#coverage.

## 0.1.0 (2026-11-11)

First release.
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ $live = $client->searchEvents('Liverpool', status: 'live');

List parameters (`bookmakers`, `markets`, `eventIds`, `leagues`, `status`) accept a comma-separated string (`'Bet365,SingBet'`) or an array. Dates accept an RFC3339 string, a `DateTimeInterface` or Unix seconds. Responses are decoded JSON arrays with the same field names as the [API reference](https://docs.odds-api.io/api-reference/introduction).

Market names must match in full: there is no `Match Winner` (use `ML`) and no bare `Over/Under`. Call `getMarkets($sport)` to see the names a sport serves.
Market names must match in full: there is no `Match Winner` (use `ML`) and no bare `Over/Under`. Call `getMarkets($sport)` to see the names a sport serves, or browse the [market reference](https://odds-api.io/markets) per sport (for example [football](https://odds-api.io/markets/football)). Bookmaker coverage by sport is at [odds-api.io/sportsbooks](https://odds-api.io/sportsbooks#coverage).

## Odds comparison and summary

Expand Down
5 changes: 4 additions & 1 deletion src/OddsApiClient.php
Original file line number Diff line number Diff line change
Expand Up @@ -157,6 +157,7 @@ public function getLeagues(string $sport, ?bool $all = null): array

/**
* The market catalogue: the exact names to pass as "markets". Omit $sport for every sport.
* Browsable per sport at https://odds-api.io/markets (e.g. https://odds-api.io/markets/football).
*
* @return Row
*/
Expand All @@ -169,6 +170,7 @@ public function getMarkets(?string $sport = null): array

/**
* All bookmakers, with status (ok, degraded, down) and reason.
* Coverage by sport: https://odds-api.io/sportsbooks#coverage
*
* @return list<Row>
*/
Expand Down Expand Up @@ -299,7 +301,8 @@ public function searchEvents(string $query, ?string $status = null): array
* Odds for one event.
*
* @param StrList $bookmakers up to 30, e.g. ['Bet365', 'SingBet']
* @param StrList|null $markets up to 40, e.g. ['ML', 'Spread', 'Totals']; omit for every market
* @param StrList|null $markets up to 40, e.g. ['ML', 'Spread', 'Totals']; omit for every market.
* Every name per sport: https://odds-api.io/markets
* @param bool|null $includeSeq true to get the WebSocket sequence in the X-OddsAPI-Seq header
* @return Row
*/
Expand Down