price to a value between 0 and 1 for a limit order, or leave it null to execute at the current market price.
Endpoint
Authentication
This endpoint requires HMAC authentication. Include the
Key, Timestamp, and HMAC headers on every request. See the authentication guide for signing instructions.Request
The market (outcome) ID to place the order on.
Order side. Use
bid to purchase shares or ask to sell shares.Currency for the order. One of
USDC, USDT, USD, or OOM.Limit price expressed as a probability between 0 and 1. Set to
null to place a market order that executes immediately at the best available price.Number of shares to buy or sell.
Total cost of the order in currency units. Used for validation against
shares and price. Optional if shares is provided.Position direction. Use
l (long) to bet that the outcome occurs, or s (short) to bet against it.ISO 8601 datetime at which an unfilled or partially filled limit order is automatically canceled. Set to
null for no expiration.When
true, any existing open orders that conflict with this order are canceled before the new order is placed.Response
Returns201 Created with the newly created order object.
Unique ID of the created order.
Market (outcome) ID the order is placed on.
Order side:
bid or ask.Currency used:
USDC, USDT, USD, or OOM.Limit price between 0 and 1, or
null for a market order.Number of shares in the order.
Cost of the order in currency units.
Position direction:
l (long) or s (short).Initial order status. Typically
open or processing immediately after creation.Expiration datetime, or
null if no expiration is set.ISO 8601 datetime when the order was created.
Error codes
| Error code | Description |
|---|---|
RealMoneyForbiddenCountry | Real-money trading is not available in your country. |
RealMoneyBetNotAllowed | Your account is not permitted to place real-money orders. |
EmailNotConfirmed | You must confirm your email address before placing orders. |
UserBlockedBets | Your account has been blocked from placing orders. |
InvalidHMACKey | The HMAC signature or key is invalid. |
UserNotEnoughBalance | Your account balance is insufficient for this order. |
InvalidShares | The number of shares specified is not valid. |
OutcomeDisabled | The selected market outcome is currently disabled. |
MarketClosed | The market is closed and no longer accepting orders. |
OrderBookMarketClosed | The order book for this market is closed. |
OrderBookConflictingOrders | Conflicting open orders exist. Set cancel_conflicting_orders to true to resolve. |
OrderBookInvalidAmount | The order amount does not meet the minimum or maximum requirements. |
Example
Sample response (201 Created)