client.chain_analytics provides public time-series reads for Zipper and unified assets.
| Method | Required identity |
|---|---|
get_zipped_asset_supply(zipped_asset_id, range, ...) | Zipped asset ID |
get_zipped_asset_supply_group(group_id, range, ...) | Group ID |
get_unified_asset_balances(asset_id, range, ...) | Unified asset ID |
series = await client.chain_analytics.get_zipped_asset_supply(
zipped_asset_id=1,
range="1d",
)
balances = await client.chain_analytics.get_unified_asset_balances(
asset_id=2,
range="7d",
bucket="30m",
)Optional bucket, start_ts_sec, and end_ts_sec refine the server-selected window. Leave bucket empty to let the server choose one. An unknown range label fails client-side, and a
bucket that doesn't belong to the range fails with "bucket is not valid for range".
| Range | Buckets |
|---|---|
1d | 1m, 5m |
7d | 10m, 15m, 30m |
30d | 30m, 1h, 2h |
90d | 2h, 4h, 8h |
180d | 4h, 8h, 12h |
365d | 8h, 12h, 1d |
Responses are ApiData because these analytical Protobuf shapes intentionally remain
forward-compatible:
print(series.raw) # recursively converted dict/list/scalarsDo not use chart aggregation output as an order-book or balance source of truth. For trading, use Market data and Balances.
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 and history, see reserved amounts, 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. 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. Fees Read effective spot fee rates, reserve rates, scheduled changes, and the fee breakdown with client.fees. Guard signer Guard signer approval helpers. Heatmap L2 order book heatmap reads. Internal transfers Move trading balances between Polyester accounts without touching a chain. 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. Policies Realtime API-key and subaccount-policy updates. 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. Withdrawals Trading withdraw intents to funding or external chain destinations (signed payload). Zipper Deposit/withdraw config and related Zipper reads.