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;
settings={'aster': {'depth_source': 'fast' | 'bbo'}}selects 5 levels at 100 ms or the real-timebookTicker), candles in the six SDK intervals, perpetual index, next funding, funding-rate history and bulkperp_stats(open interest for at most five named contracts). - Account reads, verified on mainnet: fees, spot balances (mainnet only), spot and
perpetual trade history (spot also exchange-wide), one-way perpetual position,
cross or isolated
perp_collateral,leverageand cappedavailable_notional. Perpetual funding payments are available per market or exchange-wide, positive when received. - Trading, verified on testnet only: order queries, open orders, fill streams,
MARKET,LIMIT(GTC) andPOST_ONLY(GTX) orders, and all cancellation methods. Market orders ignore the SDKprice.settings={'aster': {'time_in_force': 'IOC'}}sends aLIMITorder immediate-or-cancel. - Unsupported methods raise
NotImplementedError: hedge-mode positions, exchange-wide perpetual trade history, and spot balances and trade history on testnet. 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.
Funding payment signs
Since 0.5.0, funding payments are positive when received and negative when paid, for every supported history scope. Requires SDK >=2.10.0. Funding rates keep their existing signs. See migration notes before upgrading.
Metadata
Release files for tribulnation-aster 0.13.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 | Provenance | Actions |
|---|---|---|---|---|
| tribulnation_aster-0.13.0.tar.gz | 29.4 kB | With provenance | Details for tribulnation_aster-0.13.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| tribulnation_aster-0.13.0-py3-none-any.whl | Python 3 | none | any | Details for tribulnation_aster-0.13.0-py3-none-any.whl |
Total release size: 61.9 kB
Release files / tribulnation_aster-0.13.0.tar.gz
| Download URL | tribulnation_aster-0.13.0.tar.gz |
|---|---|
| Size | 29.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
949a286cf3b5439f390154ba0382b22586e785685dc459871381f7dc9daf49d4
|
|
BLAKE2b-256 checksum How to use checksums |
1fdc7341867710330a1fefdb338332de29dce666cded275a2ecaa08e76e09644
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
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 27, 2026.
Transparency logRelease files / tribulnation_aster-0.13.0-py3-none-any.whl
| Download URL | tribulnation_aster-0.13.0-py3-none-any.whl |
|---|---|
| Size | 32.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
8cac20ce58410b26d071d848eb9bc86fb4158abd95fa2ff82311ba66605ce2a7
|
|
BLAKE2b-256 checksum How to use checksums |
f840b0c314dea8f1c8fae790565ff76a42395dcd1fff461207be2ec68bee1355
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
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 27, 2026.
Transparency logSecurity for tribulnation-aster 0.13.0
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.
Full provenance
Both files in this release have been uploaded with provenance metadata.
Attestation for tribulnation_aster-0.13.0.tar.gz
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 27, 2026.
Transparency logA note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.