Orders
Close Position Order
Create an order to close an existing position in a market. This will sell all contracts held in the specified market.
post/v1/order/close-position
Request
- Base URLhttps://api.polymarket.us
- AuthAPI key in header X-PM-Access-Key and API key in header X-PM-Timestamp and API key in header X-PM-Signature
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Request body
Example request
{
"slippageTolerance": {
"currentPrice": {
"value": "123.45"
}
}
}Response
Position order closed successfully
Changes
No recorded changes to this operation across all 1 revision of this API.