Aster SDK
Spot and linear perpetual Market support for Aster,
built on typed-aster. Install with pip install tribulnation-aster.
from tribulnation.aster import AsterMarket
async with AsterMarket.new(public=True) as venue:
market = await venue.perp.market('BTCUSDT')
book = await market.depth(levels=5)
Authenticated use needs the main wallet's address (user) and the private key of a
trading agent registered for it (signer). The main wallet's own key is never needed:
venue = AsterMarket.new(user='0x…', signer='0x…', mainnet=False)
- Exchanges are
spotandperp, with native symbols such asBTCUSDT. - Public data: discovery, tickers, rules, REST depth (up to 1000 levels), shared
depth streams (up to 20 levels), candles in the six SDK intervals, perpetual index,
next funding, funding-rate history and bulk
perp_stats(without open interest). - Account and trading: fees, order queries, open orders, fill streams, perpetual
trade history,
MARKET,LIMIT(GTC) andPOST_ONLY(GTX) orders, and all cancellation methods. Market orders ignore the SDKprice. Perpetual position and collateral cover one-way, cross-margin accounts. These are verified on testnet only. Perpetual funding payments are available per market or exchange-wide, with positive amounts paid, and are verified on mainnet. - Unsupported methods raise
NotImplementedError: spot balances, spot trade history,available_notionalandperp_collateral. tribulnation.aster.Reportsnapshots, throughReportSDK, the mainnetperpwallet (without unrealized PnL) and positions with their entry prices, thespotwallet, and ASTER staked on Aster Chain with its unclaimed rewards, signed by the trading agent. Testnet snapshots are unsupported. Itshistory()streams perpetual income and spot transactions as unclassified cash deltas, verified on testnet only.
See Aster Market for account
configuration through MarketSDK.
Metadata
Release files for tribulnation-aster 0.4.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| tribulnation_aster-0.4.2.tar.gz | 18.7 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| tribulnation_aster-0.4.2-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 40.3 kB
Release files / tribulnation_aster-0.4.2.tar.gz
| Download URL | tribulnation_aster-0.4.2.tar.gz |
|---|---|
| Size | 18.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
7e6a50fa24047cbe4cabc4e7224dff69dfde64e3ce885f8c7a83a1a77d2725ec
|
|
BLAKE2b-256 checksum How to use checksums |
2ebaadb225abe48ccc107f431875a41cd8146efb2e3757f78d6d7f485775f885
|
| 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 Oct 5, 2026.
Transparency logRelease files / tribulnation_aster-0.4.2-py3-none-any.whl
| Download URL | tribulnation_aster-0.4.2-py3-none-any.whl |
|---|---|
| Size | 21.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
96b39ff5637d0f00b425a0d899a8f721a0d60e18dd695533a6c9f9d43674ec86
|
|
BLAKE2b-256 checksum How to use checksums |
34cb9c4bf30e37b2559dada4bc1e842d245be8aa6c8df44268dc593c8cdac488
|
| 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 Oct 5, 2026.
Transparency log