Skip to content

v2.20.3

Choose a tag to compare

@github-actions github-actions released this 14 Mar 22:17
· 31 commits to main since this release

Fixed

  • Kalshi API v2 Compatibility: Handle renamed trade fields (yes_priceyes_price_dollars, countcount_fp). Normalizer now parses both old (cents int) and new (dollar string) formats, fixing NaN prices and undefined amounts in fetchTrades / fetchMyTrades.

Changed

  • Compliance Test Hardening: fetchOHLCV tries multiple resolutions (1d, 6h, 1h) coarsest-first across top markets by volume instead of giving up early. watchTrades filters for markets traded within the last 5 minutes and applies a 10-minute recency gate before attempting WebSocket watches.
  • Broader Skip Conditions: isSkippableError now handles AuthenticationError, PermissionDenied, missing credentials, and ESM import failures. Individual tests (createOrder, fetchPositions) cover additional expected rejection messages.
  • KalshiDemoExchange Excluded: Removed from compliance test matrix (redundant, no separate demo credentials).
  • SDK Integration Tests: Added server-availability guard so tests skip gracefully when the PMXT server is not running.

Installation

npm:

npm install pmxtjs@2.20.3

PyPI:

pip install pmxt==2.20.3

Links

Full Changelog: v2.20.2f...v2.20.3f