Cancel an exit rule
MCP tool: set_exit_rule
Cancels the rule only. The position itself is untouched: this stops the automatic sell, it does not sell.
Returns 404 when no active rule exists for that position, so a cancel is safe to issue without checking first.
Body parameters
platformstringrequired"polymarket" or "kalshi".
positionKeystringrequiredFrom the portfolio endpoint.
Response
A position with no active rule returns 404 with code NOT_FOUND rather than reporting a cancel that did nothing.
curl -X DELETE https://api.rivo.markets/v1/exits \
-H "Authorization: Bearer rivo_live_..." \
-H "Content-Type: application/json" \
-d '{
"platform": "polymarket",
"positionKey": "7194...2f10"
}'import requests
r = requests.delete(
"https://api.rivo.markets/v1/exits",
headers={"Authorization": "Bearer rivo_live_..."},
json={
"platform": "polymarket",
"positionKey": "7194...2f10",
},
)
print(r.json()["data"])const res = await fetch("https://api.rivo.markets/v1/exits", {
method: "DELETE",
headers: {
Authorization: "Bearer rivo_live_...",
"Content-Type": "application/json",
},
body: JSON.stringify({
platform: "polymarket",
positionKey: "7194...2f10",
}),
});
const { data } = await res.json();response
{
"success": true,
"data": { "cancelled": true }
}