Skip to content

fix(spec): reconcile drift — multivariate tickers, Klear corporate-action payments (Closes #544) - #545

Merged
TexasCoding merged 1 commit into
mainfrom
fix/544-spec-drift
Oct 16, 2026
Merged

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

Conversation

@TexasCoding

Copy link
Copy Markdown
Owner

Closes #544

Reconciles nightly spec drift after re-vendoring specs/openapi.yaml, specs/asyncapi.yaml, and specs/perps_scm_openapi.yaml.

Drift fixed

  • GET /events/multivariate: new optional tickers filter on events.list_multivariate / list_all_multivariate (sync + async). Lists are comma-joined; empty elements or embedded commas raise ValueError.
  • New Klear endpoint GET /margin/obligations/{obligation_id}/corporate_action_payments: corporate_action_payments / corporate_action_payments_all (sync + async), registered in the SCM method map; paginator-only kwargs in PERPS_EXCLUSIONS.
  • ObligationEntry gains required corporate_action_payments (new CorporateActionPaymentDetail) and optional corporate_action_payments_truncated.
  • AssetClass enum widened: Crypto, Equities, Metals, Indices, Energy.
  • AsyncAPI change is description-only; no WebSocket code changed.

Breaking: constructing ObligationEntry without corporate_action_payments now fails validation. Noted in CHANGELOG (Unreleased) and docs/migration.md.

Blast radius (GitNexus unavailable, assessed manually): events resource multivariate methods (additive kwarg), Klear margin resource + models, contract maps/tests. No generated code edited.

Gates: ruff pass · mypy pass (160 files) · pytest (non-integration) 4713 passed · strict contracts -W error::UserWarning 856 passed.

@TexasCoding
TexasCoding merged commit 60e2a62 into main Oct 16, 2026
6 checks passed
@TexasCoding
TexasCoding deleted the fix/544-spec-drift 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-15)

1 participant