docs(api-reference): clarify market= vs market_type= and league slug vs market_segment#281
Open
sharp-resolver[bot] wants to merge 1 commit into
Open
docs(api-reference): clarify market= vs market_type= and league slug vs market_segment#281sharp-resolver[bot] wants to merge 1 commit into
sharp-resolver[bot] wants to merge 1 commit into
Conversation
…vs market_segment (crew #2374) Fixes #2374 Type: docs Co-Authored-By: sharp-resolver[bot] <285242166+sharp-resolver[bot]@users.noreply.github.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes #2374
Sentinel logged ~380 customer 400 errors on 2026-07-05 across three patterns:
market=passed with amarket_type=-style value (92 hits, 5 customers)offset> 500 cap (169 hits — covered by the existing offset docs, no change needed)league=passed a market-segment slug likenfl_1st_quarter_spreads(19 hits)PRs #279 (market_type= alias note in param row) and #280 (common-4xx-errors page covering offset/paths/streaming/unknown-slug) already landed. This PR adds the two remaining missing pieces:
Changes
common-4xx-errors.mdxTwo new sections added after the offset section:
market=vsmarket_type=confusion — explains the query param (market=) vs response field (market_type) naming difference, with a lookup table (alias vs exact type), and notes thatmarket_type=is accepted as an alias.400 invalid_filterbody whenleague=nfl_1st_quarter_spreadsis passed, with the fix (usemarket_segment=instead, fetch slugs from/api/v1/leagues).Updated description from "four" → "six" client-side mistakes.
odds.mdxmarket=param row to explicitly cross-reference themarket_typeresponse field by name, so the connection is clear at a glance.<Callout type="warning">boxes before the Market Category Aliases section — one per confusion pattern — with direct links to/api/v1/leaguesand the common-4xx-errors page.Gate
Type: docs