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.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.
Trading guide
Review the full market discovery, execution, and monitoring loop.