v2.20.3
Fixed
- Kalshi API v2 Compatibility: Handle renamed trade fields (
yes_price→yes_price_dollars,count→count_fp). Normalizer now parses both old (cents int) and new (dollar string) formats, fixingNaNprices andundefinedamounts infetchTrades/fetchMyTrades.
Changed
- Compliance Test Hardening:
fetchOHLCVtries multiple resolutions (1d,6h,1h) coarsest-first across top markets by volume instead of giving up early.watchTradesfilters for markets traded within the last 5 minutes and applies a 10-minute recency gate before attempting WebSocket watches. - Broader Skip Conditions:
isSkippableErrornow handlesAuthenticationError,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.3PyPI:
pip install pmxt==2.20.3Links
Full Changelog: v2.20.2f...v2.20.3f