v2.21.0
Added
- Typed Error Classes (Python SDK): 14 error classes (
BadRequest,AuthenticationError,RateLimitExceeded,NotFoundError, etc.) mirroringcore/src/errors.ts. Server error responses are automatically parsed into typed exceptions viafrom_server_error(). All catch blocks in the client now raise specificPmxtErrorsubclasses instead of genericException. - Typed Error Classes (TypeScript SDK): Matching error hierarchy with
fromServerError()factory.handleResponse()and all HTTP error paths now throw typedPmxtErrorsubclasses. All error classes exported from the package.
Fixed
- Credential Logging (Security): Removed plaintext logging of API credentials in Polymarket auth flow.
- Hardcoded Price Fallbacks: Replaced
0.5fallback prices with0in Kalshi, Baozi, and Myriad normalizers. Missing price data now correctly indicates "no price" instead of silently fabricating a 50-cent midpoint.
Installation
npm:
npm install pmxtjs@2.21.0PyPI:
pip install pmxt==2.21.0Links
Full Changelog: v2.20.3f...v2.21.0f