Skip to main content
The Python SDK is published as alterscope on PyPI. It is generated from the canonical OpenAPI spec, so the API reference and the client stay in lockstep.

Install

Python 3.10+ is supported.

Sync client

Resources mirror the API surface — client.oracles, client.yield_opportunities, client.portfolio, client.webhooks, and more.

Async client

For high-throughput callers, the async client (installed via the [async] extra) has the same surface and supports streaming pagination:

Provenance

Every release ships a PROVENANCE.md recording the OpenAPI SHA-256 it was generated from plus the generator version, so if the SDK and the API ever drift you can tell which side is stale.

Real-time and webhooks

For WebSocket subscriptions and signed-webhook verification, see Realtime → WebSockets and Webhooks.