Skip to content

feat: batch 1 API updates — new endpoints, WS channel, _fp fields#26

Merged
pbeets merged 1 commit intomainfrom
feat/batch1-api-updates
Feb 21, 2026
Merged

feat: batch 1 API updates — new endpoints, WS channel, _fp fields#26
pbeets merged 1 commit intomainfrom
feat/batch1-api-updates

Conversation

@pbeets
Copy link
Owner

@pbeets pbeets commented Feb 21, 2026

Summary

Implements Kalshi API changelog items from Batch 1 (Jan 22–29, 2026):

  • New REST endpoints: trigger_order_group (PUT .../trigger), update_order_group_limit (PUT .../limit), get_api_limits (GET /account/limits)
  • New WebSocket channel: OrderGroupUpdates for order group lifecycle events (created, triggered, reset, deleted, limit_updated)
  • Fixed-point _fp fields: Added contracts_limit_fp on order group models, and delta_fp, volume_fp, open_interest_fp, count_fp, post_position_fp, position_fp on WebSocket message types
  • Breaking: CreateOrderGroupRequest.contracts_limit is now Option<i64> (was i64); use contracts_limit_fp as alternative
  • New put_no_response HTTP helper for PUT endpoints with JSON body and no response body

All paths and model fields verified against the Kalshi Python SDK (v3.7.0).

Test plan

  • cargo test — 182 tests pass
  • cargo clippy — clean
  • cargo build --examples — all examples compile
  • cargo run --example order_groups — exercises trigger/limit endpoints live (requires API credentials)

…l, and _fp fields

Add new Kalshi API endpoints:
- PUT /portfolio/order_groups/{id}/trigger (trigger_order_group)
- PUT /portfolio/order_groups/{id}/limit (update_order_group_limit)
- GET /account/limits (get_api_limits)

Add OrderGroupUpdates WebSocket channel for order group lifecycle events
(created, triggered, reset, deleted, limit_updated).

Add fixed-point _fp string fields to order group models and WebSocket
message types (OrderbookDeltaData, TickerData, TradeData, FillData,
MarketPositionData) for precise decimal representation.

Make contracts_limit optional on CreateOrderGroupRequest, supporting
contracts_limit_fp as an alternative.
@pbeets pbeets merged commit b2e9b35 into main Feb 21, 2026
5 checks passed
@pbeets pbeets deleted the feat/batch1-api-updates branch February 21, 2026 07:48
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.

1 participant