Skip to content

feat(perps): add margin.corporate_actions (GET /margin/corporate_actions); release 22.2.0 - #552

Merged
TexasCoding merged 1 commit into
mainfrom
fix/550-corporate-actions
Oct 20, 2026
Merged

TexasCoding merged 1 commit into
mainfrom
fix/550-corporate-actions

Conversation

@TexasCoding

Copy link
Copy Markdown
Owner

Closes #550

Summary

Adds the new perps endpoint GET /margin/corporate_actions as margin.corporate_actions() (sync + async), with response models, contract-map registration (kalshi/_contract_map.py, tests/_contract_support.py METHOD_ENDPOINT_MAP), unit tests, docs, and synced upstream specs. Release 22.2.0 (minor: additive only).

Blast radius (hand-written; GitNexus unavailable)

  • kalshi/perps/resources/margin_account.py: new corporate_actions method on sync and async resources; existing methods untouched.
  • kalshi/perps/models/margin_account.py + model/package __init__ exports: new models only.
  • kalshi/perps/ws/*: small additive change from synced perps AsyncAPI spec.
  • Specs synced (specs/*.yaml); contract tests cover the new path.
  • No changes to auth, transport, or existing request/response shapes. Existing callers unaffected.

Gates

ruff, mypy, unit tests (4,757 passed, 3 skipped), strict contract tests (864 passed).

@TexasCoding
TexasCoding merged commit 9c07a33 into main Oct 20, 2026
12 checks passed
@TexasCoding
TexasCoding deleted the fix/550-corporate-actions branch November 1, 2026 12:33
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-20)

1 participant