The Python SDK intentionally exposes policy streams only. Unary policy list/get/create/update/ delete methods require JWT/session administration and are not part of this API-key SDK.
| Async method | Sync method | Event type |
|---|---|---|
subscribe_subaccount_policies | subscribe_sync | SubaccountPolicy |
subscribe_api_policies | subscribe_api_policies_sync | ApiPolicy |
api_policies = await client.policies.subscribe_api_policies(
account_id=client.default_account_id,
)
async with api_policies:
async for policy in api_policies:
print(policy.id, policy.revision)
breakBoth are private channels and require API-key credentials, Account ID, and the corresponding policy read permission. Subscription return means the private token and Centrifugo handshake succeeded.
Policy events may include MFA requirement flags. They describe venue policy; this SDK cannot perform an MFA challenge. Manage assignments and mutations in the Polyester app/TypeScript session client.
Related: Authentication, Streaming.
Related Topics
Address book Saved destinations and whitelist views. API keys List, get, subscribe, and generate local API key material (no create on API-key SDKs). Auth Auth service helpers including nested profile access. Balances Read ledger balances, history, holds, and stream live balance updates. Candles Read and stream public spot OHLCV candles via market data (candles alias). Catalog Spot and Zipper catalog hydration, symbol lookups, and quantity scales used by decimal order writes. Chain helpers On-chain Funding โ Trading and Funding withdraw helpers. Chain analytics Chain analytics read APIs. Client configuration Constructor options, URLs, catalogs, wire format, and from_env behavior. Deposit Create and list per-account chain deposit addresses for funding your Polyester account. Errors Python SDK error types, MFA auth codes, realtime overflow, and retry guidance. Guard signer Guard signer approval helpers. Heatmap L2 order book heatmap reads. Internal transfers Move trading balances between Polyester accounts without touching a chain. Layout Layout collaboration APIs (reference-only). Lifecycle Deposit/withdraw lifecycle flows and subscribe. Market overview List and subscribe to per-market stats with optional snapshot-then-stream merge. Order book Depth snapshots and a stateful live order book that reconstructs the book for you. Orders Place, modify, cancel, batch, and stream spot orders, with optional attached take-profit, stop-loss, and trailing-stop risk. Polychart Polychart collaboration APIs (reference-only). Profile Profile identity reads and subscribe helpers. Public trades Public trade tape reads and subscribe via market data. Realtime Shared Centrifugo WebSocket client, subscription contract, handshake-before-return, and fail-closed overflow. Social verification Social verification APIs (reference-only). Subaccounts Subaccount reads, members, invites, activity. User trades List and stream your private spot fills (not the public tape). Transfers Transfer history reads. Triggers Create, manage, pause/resume, and stream standalone automations that place a child order when a market condition fires. Whiteboard Whiteboard collaboration APIs (reference-only). Withdrawals Trading withdraw intents to funding or external chain destinations (signed payload). Zipper Deposit/withdraw config and related Zipper reads.