A fully typed, validated async client for the Aster API.
- Documentation: https://tribulnation.com/typed/aster
- Source Code: https://github.com/tribulnation/typed/tree/main/packages/aster
from typed_aster import Aster
async with Aster.new(public=True) as client:
book = await client.futures.market.depth('BTCUSDT', limit=5)
print(book['bids'][0])
One Aster client covers four surfaces:
client.futures: perpetual futuresclient.spot: spot tradingclient.prediction: prediction marketsclient.chain: Aster Chain (staking, transfers, withdrawals, and on-chain reads by address)
Public market data needs no credentials. Everything signed uses Aster's Pro API wallets. See Authenticated Setup.
Why Typed Aster?
- 🎯 Precise Types: Typed order unions and
datetimetimestamps across futures, spot, prediction and Aster Chain, notdict/Any. Prices and quantities Aster sends as strings areDecimal; the few amounts it sends as JSON numbers (Aster Chain balances such aswalletBalance, withdrawal fee estimates, fee caps) arefloat. - ✅ Runtime Validation: Every REST, JSON-RPC and WebSocket response is validated by default, not just typed on paper.
- ⚡ Async First: Async HTTP plus WebSocket market and user-data streams, built for concurrent workflows.
- 📚 Full Surface: Every documented Pro API endpoint, including strategy orders, sub-accounts, builders, prediction outcomes and staking.
Installation
pip install typed-aster
How To
- Fetch Market Data
- Fetch Account Data
- Place & Manage Orders
- Paginate Through Results
- Listen To Live Streams
- Trade Prediction Markets
- Stake ASTER
- Manage Deposits & Withdrawals
Reference
Design Philosophy
Typed Aster follows the principles outlined in this blog post.
Details matter. Developer experience matters.
License
MIT — see LICENSE.
Release files for typed-aster 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| typed_aster-0.1.0.tar.gz | 136.7 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| typed_aster-0.1.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 483.6 kB
Release files / typed_aster-0.1.0.tar.gz
| Download URL | typed_aster-0.1.0.tar.gz |
|---|---|
| Size | 136.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
977586fb581124c325907768bf4e9d01713e92dd9e51a82cdc0f13a758d37b53
|
|
BLAKE2b-256 checksum How to use checksums |
f6ecf646929f9d015810d8c9f85f86104f60eecaf46c5187c4862ffb25c48677
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Sep 24, 2026.
Transparency logRelease files / typed_aster-0.1.0-py3-none-any.whl
| Download URL | typed_aster-0.1.0-py3-none-any.whl |
|---|---|
| Size | 346.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
d7988c4db89fa725798184e8a9a003cf46f11e7ac94557940ae792c71cdf4433
|
|
BLAKE2b-256 checksum How to use checksums |
fc53bda1f59ea7c8bbfccf4437d7a50f7231f5ea8f3e84c57ac241a67f5c0ed7
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Sep 24, 2026.
Transparency log