feat(ev): add is_suspended/suspended_since to EVOpportunity#13
Merged
Conversation
Additive optional fields mirroring the sharp-api-go EV engine's flag-gated suspended-opportunity state (EV_SUSPENDED_STATE, sharp-api-go #789). When a live opp's sharp reference is momentarily suspended the server keeps the opp visible with is_suspended=true and the edge hidden (never a stale EV%); the opp retains its stable id and updates in-place on resume. Fields are absent from the wire unless the server flag is enabled, so this is fully backward-compatible (no version bump). Type: feat Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.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.
What
Adds two additive, optional fields to the
EVOpportunityinterface:is_suspended?: boolean— true while a live opp's sharp reference is momentarily suspendedsuspended_since?: number— unix seconds the suspension began (present only when suspended)Why
Mirrors the server-side flag-gated suspended-opportunity state shipped in sharp-api-go #789 (
EV_SUSPENDED_STATE). When Pinnacle (the sharp ref) suspends a live market, the engine now keeps the opp visible-but-suspended with the same stableidand the edge hidden (never a stale EV%), instead of dropping it and re-adding on resume — eliminating live EV flicker. SDK consumers need the field to render the suspended state (greyed / EV hidden) and to keep the row in place across resume.Safety / compatibility
team_side/market_segmentprecedent (snake_case wire keys, passthrough).EV_SUSPENDED_STATE=1on the API. Today (flag off) the wire is byte-identical, so this is fully backward-compatible. No version bump.typecheck+buildpass.Type: feat