orders.sell
Sell open positions on Polymarket by trade or condition ID. Execute live sell orders or preview realized P&L calculations in simulation mode.
Instructions
Sell an open position by trade_id (from get_positions) or condition_id. In live mode, places a sell order on Polymarket. In preview mode, marks the position as sold in the database and calculates realized P&L.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| trade_id | No | Trade ID to sell (from get_positions) | |
| condition_id | No | Condition ID to sell (finds matching open position) | |
| price | No | Limit price (omit for current market price) |