cancel
Cancel an open order in the ProfitPlay prediction market by specifying its order ID to manage active trades.
Instructions
Cancel an open order by order ID.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| orderId | Yes | The order ID to cancel |
Implementation Reference
- src/index.ts:194-195 (handler)Handler for the "cancel" tool. It calls the POST /api/order/cancel endpoint with the orderId argument.
case "cancel": return { content: [{ type: "text", text: JSON.stringify(await apiPost("/api/order/cancel", { orderId: args?.orderId }), null, 2) }] }; - src/index.ts:105-114 (registration)Registration of the "cancel" tool within the ListToolsRequestSchema handler.
name: "cancel", description: "Cancel an open order by order ID.", inputSchema: { type: "object" as const, properties: { orderId: { type: "string", description: "The order ID to cancel" }, }, required: ["orderId"], }, },