Skip to content

docs(api)!: drop game_state from EV/arb/low-hold reference#195

Merged
Mlaz-code merged 1 commit into
mainfrom
docs/remove-game-state-from-opportunities
Apr 29, 2026
Merged

docs(api)!: drop game_state from EV/arb/low-hold reference#195
Mlaz-code merged 1 commit into
mainfrom
docs/remove-game-state-from-opportunities

Conversation

@Mlaz-code
Copy link
Copy Markdown
Collaborator

Summary

  • Remove the game_state row from sample payloads + schema tables on the EV, arbitrage, and low-hold reference pages.
  • Add a breaking-change callout on each page pointing readers at /api/v1/gamestate and the gamestate stream channel.

Why

The server is dropping the game_state object from /api/v1/opportunities/{ev,arbitrage,low_hold} — see Mlaz-code/sharp-api-go#61. Live state is exclusive to the gamestate endpoint going forward.

Test plan

  • Local mdx builds without errors
  • Vercel preview renders the three updated pages
  • Callouts visible on /en/api-reference/opportunities-ev, /opportunities-arbitrage, /opportunities-low-hold

This should land before the server PR so users see the warning before the field disappears.

🤖 Generated with Claude Code

Live game state (scores, period, clock) is exclusive to /api/v1/gamestate
and the gamestate stream channel. Remove the game_state row from sample
payloads + schema tables on the EV, arbitrage, and low-hold reference
pages, and add a breaking-change callout pointing readers at gamestate.

BREAKING CHANGE: clients that read game_state off opportunity rows must
fetch /api/v1/gamestate (or subscribe to /api/v1/stream/gamestate) and
join by event_id.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
@vercel
Copy link
Copy Markdown

vercel Bot commented Apr 25, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
docs.sharpapi.io Ready Ready Preview, Comment Apr 25, 2026 2:57am

Request Review

@Mlaz-code Mlaz-code merged commit b7e688e into main Apr 29, 2026
2 checks passed
@Mlaz-code Mlaz-code deleted the docs/remove-game-state-from-opportunities branch April 29, 2026 21:03
Mlaz-code added a commit that referenced this pull request May 2, 2026
New page at /en/streaming/single-connection covering how to cover
multiple sports, leagues, books, markets, events, and odds + every
opportunity type on a single SSE or WebSocket connection — instead of
opening parallel sockets per filter.

Frames the guidance against the new 1-stream-per-key cap (newer-wins
displacement on second connect) and points fleet/multi-process users to
the per-key `maxStreams` Unkey override for Enterprise.

Five concrete patterns: multi-sport via comma-joined leagues,
`channel=all` for odds + opportunities, N-event tracking via
comma-joined event IDs, per-book/market splits, dynamic re-subscription
on WebSocket. Ends with a server-side cost rationale and migration
checklist for users moving off a multi-stream architecture.

Page was drafted in a parked tdev session (8-day-old branch
docs/remove-game-state-from-opportunities, already merged via #195) and
reviewed clean — cross-links resolve, Nextra components match the rest
of the streaming/ section.
Mlaz-code added a commit that referenced this pull request May 7, 2026
Live game state (scores, period, clock) is exclusive to /api/v1/gamestate
and the gamestate stream channel. Remove the game_state row from sample
payloads + schema tables on the EV, arbitrage, and low-hold reference
pages, and add a breaking-change callout pointing readers at gamestate.

BREAKING CHANGE: clients that read game_state off opportunity rows must
fetch /api/v1/gamestate (or subscribe to /api/v1/stream/gamestate) and
join by event_id.

Co-authored-by: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Mlaz-code added a commit that referenced this pull request May 7, 2026
New page at /en/streaming/single-connection covering how to cover
multiple sports, leagues, books, markets, events, and odds + every
opportunity type on a single SSE or WebSocket connection — instead of
opening parallel sockets per filter.

Frames the guidance against the new 1-stream-per-key cap (newer-wins
displacement on second connect) and points fleet/multi-process users to
the per-key `maxStreams` Unkey override for Enterprise.

Five concrete patterns: multi-sport via comma-joined leagues,
`channel=all` for odds + opportunities, N-event tracking via
comma-joined event IDs, per-book/market splits, dynamic re-subscription
on WebSocket. Ends with a server-side cost rationale and migration
checklist for users moving off a multi-stream architecture.

Page was drafted in a parked tdev session (8-day-old branch
docs/remove-game-state-from-opportunities, already merged via #195) and
reviewed clean — cross-links resolve, Nextra components match the rest
of the streaming/ section.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant