Skip to content

Reconcile perps market_version drift (v18.0.0) - #528

Merged
TexasCoding merged 1 commit into
mainfrom
fix/527-perps-market-version
Oct 3, 2026
Merged

TexasCoding merged 1 commit into
mainfrom
fix/527-perps-market-version

Conversation

@TexasCoding

Copy link
Copy Markdown
Owner

Summary

Reconciles upstream OpenAPI 3.32.0 content drift plus perps/AsyncAPI updates after nightly contract failures.

Closes #527

Breaking

  • Perps MarginMarket.market_version (required int) — market version counter (starts at 1; increases on corporate actions). Live list/get callers unaffected; constructors/mocks must pass it.

Added

  • Optional market_version on CreateMarginOrderRequest / orders.create (sync + async). Server rejects with HTTP 409 / market_version_mismatch if set and the market version differs.

Spec notes

  • Core OpenAPI info.version still 3.32.0
  • Fills ticker description: comma-separated list up to 100
  • AsyncAPI lastUpdateReason adds SettlementBoundsCancel

Version bump to 18.0.0.

Test plan

  • uv run ruff check .
  • uv run mypy kalshi/
  • uv run pytest tests/ --ignore=tests/integration -q (4617 passed)

Closes #527. Adds required MarginMarket.market_version and optional
CreateMarginOrderRequest.market_version / orders.create kwarg after
nightly strict contract failures. Re-vendors OpenAPI/AsyncAPI/perps
specs (core info.version remains 3.32.0).
@TexasCoding
TexasCoding merged commit 1e5e3da into main Oct 3, 2026
6 checks passed
@TexasCoding
TexasCoding deleted the fix/527-perps-market-version branch October 3, 2026 14:38
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.

Nightly spec-drift: strict contract tests failing (since 2026-10-03)

1 participant