Skip to content

Reconcile OpenAPI settlement/RFQ/amend drift (v17.0.0) - #524

Merged
TexasCoding merged 1 commit into
mainfrom
fix/522-spec-drift
Sep 29, 2026
Merged

TexasCoding merged 1 commit into
mainfrom
fix/522-spec-drift

Conversation

@TexasCoding

Copy link
Copy Markdown
Owner

Summary

Reconciles nightly Spec Drift Detection failures on main (Closes #522).

Upstream OpenAPI 3.31.0 content drift (same info.version) plus matching perps OpenAPI and AsyncAPI updates:

  • Breaking: Market.settlement_bounds_type ("default" / "floor", required). Live markets.list / markets.get callers are unaffected; constructors/fixtures must pass the field.
  • Added (optional): Market.settlement_floor, CreateRFQRequest.obscure_creator_id (+ rfqs.create / create_rfq kwargs), AmendOrderV2Request.expiration_time, perps AmendMarginOrderRequest.expiration_time (+ orders.amend kwargs).

Re-vendored specs:

  • openapi.yaml dde105932d49e4ea6e197068b82741178ea87edbc991d8fd7676c101162c1c1e
  • asyncapi.yaml 49ea4f5b4f35feba19ba2109e554f6bbcb0a1e123e58feb64e5cfd8182bc72e7
  • perps_openapi.yaml bfeb993d2a270e9a319b61d520facacd624e72039c8fe79e45fded10f0578eb7

Version bump to 17.0.0. See CHANGELOG and docs/migration.md.

Test plan

  • uv run ruff check .
  • uv run mypy kalshi/
  • uv run pytest tests/ --ignore=tests/integration -q (4603 passed, 3 skipped)
  • CI green on this PR

Closes #522

@TexasCoding
TexasCoding merged commit e54ed51 into main Sep 29, 2026
6 checks passed
@TexasCoding
TexasCoding deleted the fix/522-spec-drift branch September 29, 2026 14:49
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-09-28)

1 participant