Orders API
Place and manage orders on prediction markets
Orders API
The Orders API provides methods to place, cancel, and query orders on prediction markets.
Access
Methods
create_order
Create a new limit order.
Parameters
| Parameter | Type | Description |
|---|---|---|
market_id | str | The market to place order on |
side | str | "yes" or "no" |
type | str | "buy" or "sell" |
price | float | Limit price (0.01 to 0.99) |
size | float | Number of contracts |
user_public_key | str | User's Solana public key |
Example
cancel_order
Cancel an existing order.
get_order_status
Get the status of an order.