秋田预测市场 · Discord 审计

市场 price_ranges 数据结构边界定义不清晰

2026-07-08 · Kalshi · 4 条相关讨论

Bumbling Bayesian 2026-07-07 21:17:44

> The source of truth for a market’s valid prices remains the price_ranges array on the market object But `price_ranges` still seems underspecified to me without a bound type on the `start` and `end`.

> The source of truth for a market’s valid prices remains the price_ranges array on the market object But `price_ranges` still seems underspecified to me without a bound type on the `start` and `end`.

lactobacillus 2026-07-07 21:30:31

i treat it as inclusive [start, end], and validate that each range's end is always equal to the next range's start, which seems to have held for all of the existing structures, but agree that it's underspecified in the docs and we'll see if my assumption holds with these new ones

i treat it as inclusive [start, end], and validate that each range's end is always equal to the next range's start, which seems to have held for all of the existing structures, but agree that it's underspecified in the docs and we'll see if my assumption holds with these new ones

Bumbling Bayesian 2026-07-07 21:51:17

Agreed. I currently have an assertion in place that should crash if my assumption proves wrong.

Agreed. I currently have an assertion in place that should crash if my assumption proves wrong.

Bumbling Bayesian 2026-07-07 21:52:42

Treating all `start` and `end` as inclusive works if there are only three ranges. `start` and `end` cannot be inclusive for adjoining ranges.

Treating all `start` and `end` as inclusive works if there are only three ranges. `start` and `end` cannot be inclusive for adjoining ranges.