buy
:
Instructions
Buy outcome shares on a Polymarket market. Specify condition_id, USDC amount, and optionally a limit price. Runs a market quality check before executing. In preview mode, simulates the trade. In live mode, places a real CLOB order.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| condition_id | Yes | Polymarket market condition ID (hex string from market URL or API) | |
| amount | Yes | Amount in USDC to spend | |
| price | No | Limit price (0.01-0.99). Omit for market price from order book | |
| outcome | No | Outcome to buy: YES for the event happening, NO for it not happening | YES |