place_order
Submit a limit order to buy or sell outcome shares on Polymarket prediction markets, with max order size validation and dry-run testing.
Instructions
Place a limit order on a Polymarket prediction market.
⚠️ WARNING: This action actively spends real currency! The total order value (price × size) is validated against the POLYMARKET_MAX_ORDER_SIZE prior to API submission.
To test safely without financial execution, configure POLYMARKET_DRY_RUN=true in the environment .env file.
Args: token_id (str): The fundamental CLOB token ID indicating the precise outcome side (e.g., YES or NO). price (float): The designated limit price, scaling strictly between 0.01 and 0.99 (representing outcome probability). size (float): The aggregate number of shares to purchase or sell. side (str): The functional trading direction, strictly either 'BUY' or 'SELL'. order_type (Optional[str]): The operational order type payload. Options: GTC (Good-Til-Cancelled), FOK (Fill-Or-Kill), GTD (Good-Til-Date), FAK (Fill-And-Kill). tick_size (Optional[str]): The calculated market tick size structure (e.g., '0.1', '0.01', '0.001', '0.0001'). neg_risk (Optional[bool]): Designates whether the overarching market utilizes a negative risk framework.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| side | Yes | ||
| size | Yes | ||
| price | Yes | ||
| neg_risk | No | ||
| token_id | Yes | ||
| tick_size | No | 0.01 | |
| order_type | No | GTC |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |