Skip to content

feat(ev): add is_suspended/suspended_since to EVOpportunity#13

Merged
Mlaz-code merged 1 commit into
mainfrom
feat/ev-is-suspended-sdk
Jun 4, 2026
Merged

feat(ev): add is_suspended/suspended_since to EVOpportunity#13
Mlaz-code merged 1 commit into
mainfrom
feat/ev-is-suspended-sdk

Conversation

@Mlaz-code

Copy link
Copy Markdown
Contributor

What

Adds two additive, optional fields to the EVOpportunity interface:

  • is_suspended?: boolean — true while a live opp's sharp reference is momentarily suspended
  • suspended_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 stable id and 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

  • Purely additive optional fields — mirrors the team_side/market_segment precedent (snake_case wire keys, passthrough).
  • Inert until the server flag flips: the fields are absent from the wire unless EV_SUSPENDED_STATE=1 on the API. Today (flag off) the wire is byte-identical, so this is fully backward-compatible. No version bump.
  • typecheck + build pass.

Type: feat

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>
@Mlaz-code Mlaz-code merged commit 69105cb into main Jun 4, 2026
3 checks passed
@Mlaz-code Mlaz-code deleted the feat/ev-is-suspended-sdk branch June 4, 2026 16:04
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