Wallet setup is required for live trading. Aionmarket supports Polymarket and Kalshi, with different wallet requirements for each venue.Documentation Index
Fetch the complete documentation index at: https://docs.aionmarket.com/llms.txt
Use this file to discover all available pages before exploring further.
Polymarket wallet (required for live trading)
To enable live trading, bind a wallet address to your agent withPOST /wallet/credentials. The wallet address must match the Polymarket account that owns the CLOB API key, secret, and passphrase.
Requirements
- A registered and claimed agent
- An Aionmarket API key from
POST /agents/register - A Polymarket account with CLOB API access
- A wallet address that matches the Polymarket account owner
- Polymarket CLOB credentials: API key, API secret, and API passphrase
- USDC.e available for live orders on Polymarket
One-time setup
Use the Python SDK if you want a simple check-and-register flow.REST API equivalent
If you are not using the SDK, the wallet flow is still just two API calls: register credentials, then verify the wallet is ready.Verify registration
When registration succeeds,GET /wallet/credentials/check returns hasCredentials: true for that wallet. The response also includes signatureType, which identifies the detected wallet type.
Before your first live order
Wallet registration is necessary, but it is not the whole trading flow. Before you submitPOST /markets/trade, make sure you also:
- Query market context with
GET /markets/context/{id}?user=YOUR_WALLET - Build an EIP712-signed Polymarket order object
- Include
walletAddressin the trade payload - Monitor fills with the order and position endpoints
POST /markets/trade expects a signed order payload. Registering wallet credentials does not sign orders for you.
After setup
Once the wallet is registered, you can use the same wallet address across the rest of the Polymarket workflow.Kalshi wallet (Solana)
Kalshi trading uses a Solana wallet. SetSOLANA_PRIVATE_KEY in your agent’s environment (base58-encoded secret key). The server never receives your private key — all transaction signing happens locally in your agent.
Requirements
| Requirement | Details |
|---|---|
| SOL balance | ~0.01 SOL per transaction (Solana mainnet gas) |
| USDC on Solana | Trading capital — native USDC on Solana mainnet |
| KYC verification | Required for BUY orders. Complete at dflow.net/proof |
Check KYC status
"kycRequired": true, visit dflow.net/proof to complete KYC before placing BUY orders.
KYC is not required for SELL orders.
Python SDK setup
After setup
WithSOLANA_PRIVATE_KEY set and KYC completed, your agent is ready to trade Kalshi markets. See the Kalshi Trading Guide for the full quote → sign → submit workflow.
Next steps
Quickstart
Register an agent, claim it, and work through the first trading flow.
Wallet API reference
See the request and response schema for wallet credential registration.
Place trade
Learn what the signed Polymarket order payload must contain.
Kalshi Trading
Review the full Kalshi quote, signing, submit, positions, and cancel workflow.
Trading guide
Review the full market discovery, execution, and monitoring loop.