Agara

Agara Trading API

Place orders, read live depth, and monitor fills on AGARA markets.

REST origin: https://app.agara.xyz · WebSocket origin: wss://app.agara.xyz

Trading endpoints live under /trade/v1; market discovery lives under /api/v1.

API order placement

For API trading, use pre-signed orders. Server-side signing may slow order ingestion. Follow the one-time setup and grant orders:place_signed for signed single-order and batch submissions.

Where to start

Reference

Endpoint summary

What you want to doMethodPath
Browse or search eventsGET/api/v1/events?source=AGARA
Read one event and its marketsGET/api/v1/events/{slug}
Place a pre-signed order (recommended)POST/trade/v1/orders/signed
Place a batch of pre-signed ordersPOST/trade/v1/orders/signed/batch
Place a server-signed orderPOST/trade/v1/orders
List your ordersPOST/trade/v1/orders/list
Look up one orderGET/trade/v1/orders/{order_id}
Cancel an orderDELETE/trade/v1/orders/{order_id}
Schedule cancellation of current nonterminal ordersPOST/trade/v1/orders/cancel-all
Read the orderbookGET/trade/v1/orderbook/{token_id}
Stream market dataWS/trade/v1/market-stream
Stream account eventsWS/trade/v1/account-stream
Read fill historyGET/trade/v1/portfolio/trades

Orders and account REST requests need an Authorization: Bearer <token> header. Market discovery, orderbooks, and the market stream are public. The account WebSocket receives its token in the first subscribe message; do not put it in the WebSocket URL.

Funding in this environment

Production uses real USDC on Base. Verify the token contract on Collateral before depositing or withdrawing.

The web app can quote supported cross-chain withdrawals. Query the withdrawal supported-assets endpoint immediately before requesting a route because availability can change.