Skip to content

Spec drift: kalshi — GET /portfolio/balance new subaccount query param not in spec #433

@realfishsam

Description

@realfishsam

Exchange

kalshi

Drift Type

changed_params

Severity

LOW — New optional parameter for multi-subaccount balance queries. No existing functionality broken.

Their Docs

GET /portfolio/balance now accepts an optional subaccount query parameter (integer: 0 for primary account, 132 for named subaccounts). When provided, the response reflects only that subaccount's balance.
Source: https://docs.kalshi.com

Our Cached Spec

core/specs/kalshi/Kalshi.yaml (version 3.7.0) and core/src/exchanges/kalshi/api.ts define GetBalance at GET /portfolio/balance with no query parameters.

callApi() References at Risk

  • callApi('GetBalance') at fetcher.ts:302 — works correctly for primary account; cannot target subaccounts.

Hardcoded URL Bypasses

None.

Impact

PMXT can only fetch the primary account balance. Users with Kalshi subaccounts cannot retrieve per-subaccount balances via PMXT until the spec and callApi() call are updated.


Found by automated spec drift audit

Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions