From cba32273377ae55612b89a60fd5fbd7ec01ae688 Mon Sep 17 00:00:00 2001 From: odds-api-io Date: Fri, 13 Nov 2026 09:16:07 +0100 Subject: [PATCH] docs: link the market reference and bookmaker coverage pages --- CHANGELOG.md | 4 ++++ README.md | 2 +- src/OddsApiClient.php | 5 ++++- 3 files changed, 9 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index c36f95a..49a7c05 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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. diff --git a/README.md b/README.md index 1a2bf5c..6b8fc43 100644 --- a/README.md +++ b/README.md @@ -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 diff --git a/src/OddsApiClient.php b/src/OddsApiClient.php index 81d9de2..a1df8f5 100644 --- a/src/OddsApiClient.php +++ b/src/OddsApiClient.php @@ -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 */ @@ -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 */ @@ -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 */