Skip to content

fix(spec-drift): settlement-advance lock + SubaccountBalance fields (#486) - #487

Merged
TexasCoding merged 1 commit into
mainfrom
fix/spec-drift-486-settlement-advance
Jul 26, 2026
Merged

fix(spec-drift): settlement-advance lock + SubaccountBalance fields (#486)#487
TexasCoding merged 1 commit into
mainfrom
fix/spec-drift-486-settlement-advance

Conversation

@TexasCoding

Copy link
Copy Markdown
Owner

Summary

Reconciles nightly strict contract failures from #486 against OpenAPI 3.26.0 content (paths 92→93, ops 103→105; 104 mapped).

  • subaccounts.lock_settlement_advance() / unlock_settlement_advance() (sync + async) — PUT/DELETE /portfolio/subaccounts/settlement-advance-lock
  • SubaccountBalance: required voluntarily_locked + settlement_advance; optional settlement_advance_state
  • Request models with extra="forbid"; contract maps + DELETE-body exclusions
  • Docs + version bump to 7.4.0

Closes #486

Test plan

  • uv run mypy kalshi/
  • uv run ruff check .
  • uv run pytest tests/test_subaccounts.py tests/test_contracts.py -q
  • Full unit suite: 4227 passed (excl. integration)
  • CI green on this PR

…486)

Reconcile OpenAPI 3.26.0 content for the subaccount settlement-advance
surface: lock/unlock endpoints and required balance fields. Bump to
7.4.0; update docs, contract maps, and unit tests.

Closes #486

Test plan:
- uv run pytest tests/test_subaccounts.py tests/test_contracts.py -q
- uv run mypy kalshi/
- uv run ruff check .
@TexasCoding
TexasCoding merged commit 778a016 into main Jul 26, 2026
6 checks passed
@TexasCoding
TexasCoding deleted the fix/spec-drift-486-settlement-advance branch July 26, 2026 13:15
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-07-25)

1 participant