Limit orders require a signed-in user session and live execution mode. Start with
Authentication and Funding & Withdrawals
before placing live orders.
executeManaged instead. Limit orders are venue-specific:
you choose one venue, one venueMarketOutcomeId, a side, a limit price, and a size.
How It Works
1
User signs in
The request uses user-tier auth:
x-app-id plus the user’s bearer token.2
Find an outcome
Use discovery, market pages, or orderbook APIs to select the exact
venueMarketOutcomeId
for the venue where the order should rest.3
Check funding or position inventory
For buys, the user needs enough spendable cash on AGG-managed balances. For sells, the user
needs enough available position size in that outcome. AGG reserves the required amount while
the order is open.
4
Place the limit order
Call
POST /execution/limit-orders. The response is usually pending first because the
executor submits to the venue asynchronously.5
Poll or stream order state
Use
GET /execution/orders to read order state. If your app uses AGG WebSocket lifecycle
notifications, use the REST call as a backfill on page load and reconnect.6
Cancel when needed
Call
POST /execution/orders/{orderId}/cancel for queued or open orders. Cancels can return
cancel_pending before the venue confirms cancellation.Request Shape
limitPriceRaw and sizeRaw are six-decimal integer strings:
Prices must be greater than
0 and less than 1000000. A price of 1000000
would be $1.00, which is outside the accepted limit-order price range.
Place An Order
The SDK currently exposes this endpoint throughclient.request. Define a small typed wrapper in
your app so the rest of your code does not hand-build the REST call.
GTD orders, include a future ISO expiresAt value:
Monitor Until Open Or Terminal
POST /execution/limit-orders creates the AGG order and schedules venue submission. Treat the
initial response as an admission result, then poll the order row until it is open or terminal.
Cancel An Order
Use the same typed-wrapper pattern for cancellation:Venue Support
SupportedtimeInForce and post-only behavior differs by venue:
AGG rejects unsupported venue/time-in-force/post-only combinations before the order reaches the
venue.
Recommended UX
- Show the venue name clearly. Limit orders do not smart-route across venues.
- Show raw-price equivalents as user-friendly cents or percentages, but submit six-decimal raw strings to the API.
- Disable
GTDsubmission until the user chooses a future expiration. - Show
pendingas “submitting” and keep the cancel action disabled until the order is open or explicitly cancellable. - Poll
GET /execution/ordersafter page load so refreshed tabs recover open orders. - Store
clientOrderIdin your own system for support and reconciliation.
Related
Place Limit Order API
Full request and response schema for
POST /execution/limit-orders.Funding & Withdrawals
Prepare balances before placing live buy orders.