Install, initialize, and use the aion-sdk Python package
Install, initialize, and use the 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
The current SDK focuses on:
Agent registration and authentication
Market search, briefing, and context lookup
Wallet credential registration and validation
Trading, order inspection, cancellation, and redemption
The SDK requires your API key and automatically sends Authorization: Bearer YOUR_API_KEY on every authenticated request. If api_key is missing or
invalid, requests fail with 401.
Position fields from GET /markets/current-positions depend on backend response shape. Typical fields include market ID, side/outcome, size, pricing, and PnL-related values.