Places a BUY or SELL limit order on a market outcome. price is 1–99 (cents). Orders match immediately if a counterparty exists, otherwise rest as open orders.
Documentation Index
Fetch the complete documentation index at: https://docs.predictamarkets.com/llms.txt
Use this file to discover all available pages before exploring further.
Flexible identifier type that accepts either a numeric integer ID or a human-readable qualified ID string (QID). QIDs follow a prefix convention: MA for markets, MAA for market assets, AP for account payouts. Most path parameters that accept an ID use this type so callers can use whichever form is more convenient.
Request body for POST /v1/markets/{market_id}/orders. Specifies the outcome to trade, the price (1–99 cents), quantity (number of shares), and whether this is a standard limit order or a simpler opinion order.
ID of the account placing the order
The numeric ID of the market asset (outcome) you want to trade within this market. Obtain this from market_assets[n].id in the market detail response. Despite the field name 'mini_market_id', this maps directly to the market_asset.id.
Type of order (BUY or SELL)
BUY, SELL Which side of the outcome you are betting on: YES (the event will happen) or NO (it will not). This must match the side of the prediction_key you supply.
YES, NO Limit price for the order, in the range 1–99 (integer cents). This represents the implied probability you are willing to trade at — a price of 65 means you believe the event has at least a 65% probability of occurring (for BUY YES) or you are willing to sell at 65c. The order will only match against counterparties at this price or better.
Number of shares to buy or sell. Each share costs 'price' cents when filled. Total cost for a BUY order is approximately price x quantity (in PT). Must be a positive value.
The prediction key of the option you want to trade. This is the key field from the relevant entry in market_asset.options — fetch the market assets first, pick the option (e.g. the YES entry), and pass its key value here.
ID of the account that referred the user
Timestamp when the order will be automatically cancelled if unfilled
Set to true for an opinion order — a simplified order variant where only the side matters and the system auto-assigns the best available price. Useful for UX flows where the user just wants to express a directional view without specifying a price. When true, the price field is still required but may be overridden by the engine.
Order placed
The response is of type string.