Repository navigation
Reconcile MVE price ranges + perps market_id drift (v19.0.0) - #530
Merged
TexasCoding merged 1 commit intoOct 6, 2026
Merged
Conversation
Closes #529. Adds required MultivariateEventCollection.price_level_structure and price_ranges, and optional perps market_id on create/amend order requests and kwargs (sync + async), after nightly strict contract failures. Re-vendors OpenAPI/AsyncAPI/perps specs (core info.version remains 3.32.0).
TexasCoding
deleted the
fix/529-spec-drift-mve-price-ranges-perps-market-id
branch
November 1, 2026 12:33
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.
Closes #529.
Reconciles the nightly strict spec-drift failures and releases as v19.0.0 (breaking).
Changes
MultivariateEventCollection.price_level_structure(requiredstr) andprice_ranges(required list of{start, end, step}dicts,nullcoerces to[]), matching spec-required fields. Same shape asMarket.price_ranges.market_idon perpsCreateMarginOrderRequest/AmendMarginOrderRequestandorders.create/orders.amendkwargs (sync + async); omitted from the body when unset. SDK keepstickerrequired for now even though the perps spec now acceptsmarket_idas an alternative.specs/openapi.yaml,specs/asyncapi.yaml,specs/perps_openapi.yaml.__version__, CHANGELOG), migration note indocs/migration.md, docs for multivariate and perps.Blast radius (manual; GitNexus unavailable)
kalshi/models/multivariate.py::MultivariateEventCollection— used bymultivariate_collections.list/get(sync + async) response parsing; constructors in tests/fixtures updated.kalshi/perps/models/orders.pyrequest models andkalshi/perps/resources/orders.py_build_create_body/_build_amend_bodyand the sync/asynccreate/amendoverloads. New kwarg is keyword-only and optional, so existing callers are unaffected.Gates
uv run ruff check .— passuv run mypy kalshi/— pass (160 files)uv run pytest tests/ --ignore=tests/integration -q— 4627 passed, 3 skippeduv run pytest tests/test_contracts.py -q -W error::UserWarning(nightly strict) — 842 passed