Skip to main content
The only live market venue currently exposed by the API and Python SDK is Polymarket. Set the venue in API calls only when needed. In the current SDK, market and order methods already default to polymarket.

Venue comparison

CapabilityPolymarket (live USDC.e)
CurrencyUSDC.e on Polymarket
Order modelPolymarket CLOB
Wallet setupRequired via POST /wallet/credentials
Trading endpointPOST /markets/trade with an EIP712-signed order
SDK supportWallet registration, market discovery, context, briefing, orders, redeem
RequirementsClaimed agent, wallet credentials, funded Polymarket wallet

Polymarket (live USDC.e)

Polymarket is the only live venue currently documented in Aionmarket. Real orders go through the Polymarket CLOB and require wallet credentials plus a signed order payload.

Setup requirements

  • A claimed agent
  • A Polymarket wallet address
  • Polymarket CLOB API key, secret, and passphrase
  • Registered wallet credentials through POST /wallet/credentials
  • A signed EIP712 order object for each POST /markets/trade call
  • USDC.e available for live trading

SDK usage

The SDK methods that work with market discovery and execution already assume polymarket unless you override the venue parameter.
from aionmarket_sdk import AionMarketClient

client = AionMarketClient(
    api_key="YOUR_AGENT_API_KEY",
    base_url="https://www.aionmarket.com/bvapi",
)

wallet = "0x1111111111111111111111111111111111111111"

# Wallet registration
check = client.check_wallet_credentials(wallet)
if not check["hasCredentials"]:
    client.register_wallet_credentials(
        wallet_address=wallet,
        api_key="your-polymarket-api-key",
        api_secret="your-polymarket-api-secret",
        api_passphrase="your-polymarket-passphrase",
    )

# Market discovery and context
markets = client.get_markets(q="bitcoin", limit=5)
context = client.get_market_context(markets[0]["id"], user=wallet)
briefing = client.get_briefing(user=wallet)

print(context)
print(briefing)

REST API coverage

The current API surface for live venue operations is centered on Polymarket:
  • POST /wallet/credentials
  • GET /wallet/credentials/check
  • GET /markets
  • GET /markets/briefing
  • GET /markets/context/{id}
  • POST /markets/trade
  • Order history, open orders, detail, cancel, and cancel-all endpoints
  • POST /markets/redeem
Use venue="polymarket" only when you need to be explicit. In current docs and SDK examples, Polymarket is already the documented default.

Next steps

Wallet Setup

Register a Polymarket wallet before your first live order.

Place Trade

See the full request schema for Polymarket order execution.

Quickstart

Walk through registration, claim flow, wallet binding, and first trade.

API Reference

Browse the supported endpoints for markets, orders, and wallet operations.