feat: batch 6 API updates - balance subaccount, historical endpoints, deprecations#29
Merged
feat: batch 6 API updates - balance subaccount, historical endpoints, deprecations#29
Conversation
…nts, deprecations Add batch 6 changes from the Kalshi API changelog (Feb 13-19, 2026): - Deprecate `Market.liquidity` and `Market.liquidity_dollars` (always return 0) - Add `GetBalanceParams` with `subaccount` filter for `GET /portfolio/balance` - Add `settlement_value` to `MarketLifecycleData` for WebSocket determined events - Add 6 historical data endpoints with dedicated response types - Add `HistoricalCandlesticksResponse` with dollar-string-only OHLC types (historical candlesticks use a different schema than live candlesticks) - Add `yes_settlement_value_dollars` to `MveSelectedLeg`
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Market.liquidityandMarket.liquidity_dollarsfields (always return 0 per Kalshi API changelog Feb 13)GetBalanceParamswithsubaccountfilter forGET /portfolio/balance— omitting returns combined balance,subaccount(0)filters to primary onlysettlement_valuefield onMarketLifecycleDatain WebSocketmarket_lifecycle_v2channel formarket_determinedeventsHistoricalCandlesticksResponsewith dollar-string-only OHLC types (HistoricalCandlestick,HistoricalOhlc,HistoricalPriceOhlc) — the historical candlestick API uses a different wire schema than live candlesticks (dollar strings only, no cent integers)yes_settlement_value_dollarstoMveSelectedLegAll types cross-referenced against the official Kalshi API docs and
kalshi_python_asyncv3.7.0 SDK.Test plan
cargo buildpassescargo test— all 195 tests passcargo fmt— no changes neededcargo clippy --all-targets— zero warningsHistoricalCandlesticksResponse(including nullable price fields)