v3.1.0
OpenAPI + AsyncAPI spec sync from v3.19.0 → v3.20.0 (#385). Adds the
new GET /events/fee_changes endpoint plus three smaller additive
changes upstream re-published into 3.20.0 after the drift issue was
filed (the OpenAPI checksum in #385 is therefore stale; the AsyncAPI
checksum still matches).
Added
events.fee_changes()/fee_changes_all()(sync + async) for
GET /events/fee_changes— the new paginated event-level fee-override
feed (event_ticker,limit,cursor). ReturnsPage[EventFeeChange]
(and an auto-paginating iterator).EventFeeChangeexposes
fee_type_override/fee_multiplier_override, both present-but-None
when an override is cleared.is_block_tradequery param onmarkets.list_trades/
list_all_trades(+ deprecatedlist_trades_all) and
historical.trades/trades_all. Omit for all trades,Truefor
only block trades,Falsefor only non-block.Trade.is_block_trade(bool) — new spec-required, non-nullable
response field; a missing key raises so a schema regression surfaces.- WebSocket
event_fee_updatemessage on the existing
market_lifecycle_v2channel (EventFeeUpdateMessage/
EventFeeUpdatePayload).subscribe_market_lifecycle()now yields
MarketLifecycleMessage | EventFeeUpdateMessage. Channel count is
unchanged (still 11) — this is a second message type on an existing
channel. Behavioral note for existing subscribers: discriminate on
.typebefore reading payload fields — anEventFeeUpdatePayloadhas no
market_ticker, so naive access raisesAttributeError. See the
migration callout indocs/websockets.md.
Internal
specs/openapi.yaml(sha256
b72a2aa138695d810f6ca85096bfe19e1b66ba5e9b2ed37753be284b5288d271)
andspecs/asyncapi.yaml(sha256
2f72d0a3fd25fe331210ed300f03ad4c1fedcb561b3ab425046b2dca6f4683ec)
snapshots bumped;kalshi/_generated/models.pyregenerated.- Spec also relaxed
CreateOrderV2Request.client_order_idand
EventData.product_metadatafrom required to optional, and added
ApiKeyScope/FeeTypeenums. No SDK-facade change: the V2 order
keepsclient_order_idrequired by design,Event.product_metadata
already tolerated server omission, and API-keyscopesstaysstr
for forward-compat. - README +
docs/index.mdbanners bumped to "99 operations … OpenAPI
v3.20.0".