Skip to content

Response drift: smarkets — markets[].inplay_enabled not in interface, not accessed #2192

Description

@realfishsam

Exchange

smarkets

Severity

MEDIUM

What Our Normalizer Expects

The SmarketsRawMarket TypeScript interface does not declare inplay_enabled. The smarkets normalizer does not access this field when normalizing markets.

What The Live API Returns

The live markets endpoint returns:

markets[].inplay_enabled: boolean

This flag indicates whether the market accepts in-play (live) betting after the event has started.

Impact

  • Normalized smarkets markets carry no in-play availability signal
  • Consumers cannot distinguish pre-match-only markets from in-play markets
  • Attempting to place in-play bets on markets where inplay_enabled: false would fail at the venue with no prior warning from the unified feed

Suggested Fix

  1. Add inplay_enabled?: boolean to the SmarketsRawMarket interface
  2. Surface it on the normalized UnifiedMarket (e.g., as isInplayEnabled in sourceMetadata or as a dedicated field if the unified schema supports it)

Found by automated response shape drift audit

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions