Skip to content

Response drift: kalshi — price_ranges[] array in live market response not accessed by normalizer #2134

Description

@realfishsam

Summary

The live Kalshi market endpoint returns a price_ranges array alongside each market object. The kalshi/normalizer.ts does not access or type this field; it is silently dropped during normalization.

Impact

MEDIUM — no crash (field is optional and unread), but price range metadata (useful for ranged/bracket markets) is not surfaced to consumers. Related to #2064 (mve_selected_legs) which covers a similar unmodeled array on multi-variant-event markets.

Evidence

Live /markets/{ticker} response fields present but not accessed:

  • price_ranges: array — appears on ranged/bracket market types

Not present in KalshiRawMarket interface or accessed in the normalizer.

Affected files

  • core/src/exchanges/kalshi/normalizer.tsKalshiRawMarket interface missing price_ranges field
  • core/src/exchanges/kalshi/normalizer.tsnormalizeMarket() does not extract price_ranges

Fix direction

Add price_ranges?: unknown[] (or a typed sub-interface) to KalshiRawMarket and decide whether to surface range metadata in the UnifiedMarket output.

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