Documentation Index
Fetch the complete documentation index at: https://docs.sportsxapp.com/llms.txt
Use this file to discover all available pages before exploring further.
Place an order
place_order is the single mutation for placing limit and market orders on probability markets. It takes a user_order input describing what you want, and returns an OrderResult with the placed Order (or errors if the server rejected it).
Prices are integer cents in the range
1–99 for probability markets (1¢ = 1% probability). MARKET orders ignore the price field; LIMIT orders use it as the cap (BUY) or floor (SELL).Cancel an order
Cancel multiple orders
Two flavors:cancel_all_orders is the bulk hammer; reach for it on bot-shutdown or before placing a fresh wave of orders.
Place multiple orders at once
place_orders accepts a list of UserOrder inputs and atomically attempts each:
List your orders
orders: order_ids, client_order_ids, market_ids, plus pagination via the pagination field.
Trade history (fills)
my_trades_for_order(params={"order_id": …}) is the narrower query.
Subscribing to order updates
For event-driven bots, skip pollingclient.orders() and subscribe to the Channels.ORDERS Phoenix channel instead — every order state transition pushes immediately. See WebSockets → Orders.
Idempotency
place_order and cancel_order are not idempotent — calling either twice with the same params results in two server-side actions. The default retry policy excludes them for this reason (errors-and-retries). If you genuinely need to retry yourself, wrap the call and use client.orders() to confirm the prior attempt’s outcome before retrying.
What’s not yet exposed
A few server-side operations don’t have first-class SDK support yet (you can call them via the dynamic proxy by name; they’re just not in the typed surface):- Amend / modify in-place — workaround: cancel + re-place
- FIX-style fills aggregation — fetch via
tradesand group client-side
Next
WebSockets
Live order and position updates without polling.
Errors & retries
What gets retried, what doesn’t, and why.