Version 0.1.0
This is the initial public release of the Molecule Python SDK.
What’s included
- Initial public client — full REST and WebSocket client for interacting with the Molecule execution API.
- REST APIs —
MarketsAPI,OrdersAPI,ComplexOrdersAPI,PortfolioAPI, andRiskAPIare all available through a singleMolecule(orAsyncMolecule) instance. - WebSocket helpers — signed connection helpers via
client.wsandclient.iter_ws()for streaming orders, fills, positions, balances, orderbooks, and trade prints. - Local Ed25519 request signing — all REST requests and WebSocket connections are signed locally using your Ed25519 private key. Canonical string formats for both REST and WebSocket signatures are documented.
- Synchronous and asynchronous clients — use
Moleculefor standard blocking usage orAsyncMoleculeforasyncio-based workflows. - Full error hierarchy — API error codes map to typed Python exceptions:
UnauthorizedError,ForbiddenError,NotFoundError,ConflictError,ValidationError,RateLimitedError,RoutingUnavailableError,BadRequestError, andAPIError. - Supported venues — Demo, Polymarket, and Kalshi.
- Python compatibility — Python 3.10, 3.11, 3.12, and 3.13.
