Python SDK
The Python SDK covers the REST API and the market-data WebSocket. Its core is generated from the same contracts this portal documents, so it follows them release by release. A small hand-written layer adds what a generator cannot: a market-data stream that authenticates and reconnects by itself, and helpers for money and idempotency keys.
The SDK is in private preview. Access is granted per organisation during onboarding, and you receive each release as a Python wheel. It is not on a public package index yet.
Install
The SDK needs Python 3.10 or newer. Install the wheel you were given:
The package imports as immix.
The REST API
There is no public REST environment yet, so pass the base URL your onboarding gave you:
Every write takes an idempotency key: immix.new_idempotency_key() mints one. Keep it, and send
the same key when you retry that write. Money is a decimal string, and immix.to_decimal and
immix.format_decimal cross to and from Decimal exactly — never through a float.
Market data
MarketData opens the production socket. It sends your token as a message once the socket is
open, never in the handshake. When the connection drops, it reconnects, authenticates again and
resubscribes every topic it held, then yields Reconnected where the gap is. Every frame is a
typed model of the Market Data WebSocket reference. A refused token
raises immix.AuthenticationError, and a subscription refused as a whole raises
immix.SubscriptionError.