v2.20.1
Fixed
- Error Mapper: SDK Error Extraction (#56): Third-party SDK errors (e.g.
@polymarket/clob-client) that attach HTTP metadata (.status,.statusCode,.response) toErrorinstances are now properly mapped to specific error classes (InsufficientFunds,AuthenticationError,InvalidOrder, etc.) instead of falling through to a genericBadRequest. The error mapper also extracts the real API error message from.response.datainstead of using the SDK's generic.message.
Changed
- Error Mapper: Deduplicated Status Code Mapping: Extracted shared
mapByStatusCode()method to eliminate duplicated switch logic across axios, plain-object, and SDK error handling paths.
Installation
npm:
npm install pmxtjs@2.20.1PyPI:
pip install pmxt==2.20.1Links
Full Changelog: v2.20.0f...v2.20.1f