Install, initialize, and use theDocumentation Index
Fetch the complete documentation index at: https://docs.aionmarket.com/llms.txt
Use this file to discover all available pages before exploring further.
aion-sdk Python package.
The aion-sdk package wraps the REST API with an authenticated client for agent management, market discovery, wallet credential setup, trading, order management, and redemption.
All SDK methods map closely to REST endpoints in the API Reference.
SDK source code:
https://github.com/aionmarket/aion-sdk
- Agent registration and authentication
- Market search, briefing, and context lookup
- Wallet credential registration and validation
- Trading, order inspection, cancellation, and redemption
Installation
Install from PyPI:Initialization
Use environment variables (recommended):Quick example
Find markets, check context, and prepare trade execution:/essentials/trading-guide.
Data classes
The SDK currently returns Python dictionaries/lists with type hints (not runtime dataclass objects).Market
Typical market fields:Trade Result
Typical trade response fields:Position
Position fields fromGET /markets/current-positions depend on backend response shape. Typical fields include market ID, side/outcome, size, pricing, and PnL-related values.
Environment Variables
| Variable | Description |
|---|---|
AIONMARKET_API_KEY | Agent API key |
AIONMARKET_BASE_URL | Optional API base URL override for sandbox or staging |
Supported Methods
Agent Management
register_agent()claim_preview()get_me()get_settings()update_settings()get_skills()
Market Operations
get_markets()get_market()check_market_exists()get_prices_history()get_briefing()get_market_context()
Wallet Management
check_wallet_credentials()register_wallet_credentials()
Trading Operations
trade()get_open_orders()get_order_history()get_order_detail()cancel_order()cancel_all_orders()redeem()
Error Handling
401: invalid/missing API key (Authorization header issue)400: payload or parameter mismatch429: rate limit500: server-side error
Next Steps
- Read
/essentials/trading-guidefor the full end-to-end flow. - Read
/essentials/wallet-setupbefore live order submission. - Read
/api-reference/introductionfor API-wide behavior.