Delete Bot
This route removes a paper bot. Rivo deletes a signal or market bot. A trader bot stops copying, but you keep following the trader, and your alerts stay as they were.
Rivo does not sell the bot's open paper positions. They stay in Get Paper Account until they settle. The API refuses to delete a live bot.
Example request
DELETE /v2/bots/{id}
curl -X DELETE "https://api.rivo.markets/v2/bots/signal%3A2c91e7d4-5a3b-4f08-b6e2-91d04f7a3c55" \
-H "Authorization: Bearer rivo_live_..."import requests
url = "https://api.rivo.markets/v2/bots/signal%3A2c91e7d4-5a3b-4f08-b6e2-91d04f7a3c55"
headers = {
"Authorization": "Bearer rivo_live_...",
}
res = requests.delete(url, headers=headers)
res.raise_for_status()
print(res.status_code)const res = await fetch("https://api.rivo.markets/v2/bots/signal%3A2c91e7d4-5a3b-4f08-b6e2-91d04f7a3c55", {
method: "DELETE",
headers: {
Authorization: `Bearer ${process.env.RIVO_API_KEY}`,
},
});
if (!res.ok) throw new Error(`Rivo API ${res.status}`);Path parameters
idstringrequiredThe bot's id, as List Bots returns it:
trader:<id>,signal:<id>ormarket:<id>.
Example response
Response
{
"data": {
"id": "signal:2c91e7d4-5a3b-4f08-b6e2-91d04f7a3c55",
"deleted": true
}
}Response fields
dataobjectThe bot that the API deleted.
Show 2 data fields
idstringThe deleted bot's id.
deletedbooleanThis is always
true.
Errors
| Code | When |
|---|---|
SCOPE_REQUIRED | The key does not have the write scope. |
NOT_FOUND | No bot has that id. |
VALIDATION | The bot is live. |