Update Bot
This route changes a paper bot. Send only the fields you want to change. Each kind of bot takes its own fields:
| Kind | Takes |
|---|---|
| trader | sizing, mirrorExits, copy, dailyCapUsd, slippage, status, alerts, archived |
| signal | name, signal, sizing, alerts, historyDays, archived |
| market | name, rule, sizing ({ usd } only), status, alerts, buyWindows, sellBeforeCloseSeconds, pauseLimits, archived |
You cannot pause a signal bot. It records every match for as long as it exists, so archive or delete it to stop it. Some signal bots hold settings that only the app can edit, such as sports leagues. Change those bots' signals in the app. The API refuses changes to a live bot.
Example request
curl -X PATCH "https://api.rivo.markets/v2/bots/signal%3A2c91e7d4-5a3b-4f08-b6e2-91d04f7a3c55" \
-H "Authorization: Bearer rivo_live_..." \
-H "Content-Type: application/json" \
-d '{
"sizing": {
"usd": 100
},
"alerts": true
}'import requests
url = "https://api.rivo.markets/v2/bots/signal%3A2c91e7d4-5a3b-4f08-b6e2-91d04f7a3c55"
headers = {
"Authorization": "Bearer rivo_live_...",
}
body = {
"sizing": {
"usd": 100,
},
"alerts": True,
}
res = requests.patch(url, headers=headers, json=body)
res.raise_for_status()
print(res.json())const res = await fetch("https://api.rivo.markets/v2/bots/signal%3A2c91e7d4-5a3b-4f08-b6e2-91d04f7a3c55", {
method: "PATCH",
headers: {
Authorization: `Bearer ${process.env.RIVO_API_KEY}`,
"Content-Type": "application/json",
},
body: JSON.stringify({
"sizing": {
"usd": 100
},
"alerts": true
}),
});
if (!res.ok) throw new Error(`Rivo API ${res.status}`);
const { data } = await res.json();Path parameters
idstringrequiredThe bot's id, as List Bots returns it:
trader:<id>,signal:<id>ormarket:<id>.
Body
namestringThe bot's new name, from 1 to 60 characters.
sizingobjectHow much each trade stakes. Send exactly one of the two forms below.
Show 3 sizing fields
usdnumberA fixed stake for each trade in USD, above 0 and up to 1,000,000.
percentnumberStakes this percentage of the source trade's dollars, above 0 and up to 10,000. Send it together with
maxUsd.maxUsdnumberThe most any one trade stakes when you use
percent, in USD, up to 1,000,000.
signalobjectA signal bot's new signal. It replaces the old one.
Show 12 signal fields
venuestring[]Matches buys on these venues:
kalshi,polymarket,polymarket_usorgemini. You can pass up to 50. Leave it out to match every venue.categorystring[]Matches buys in these categories:
sports,politics,crypto,finance,culture. You can pass up to 5. It matches the market's stored category, as saved signal bots do.minUsdnumberThe smallest trade to match, in USD.
maxUsdnumberThe largest trade to match, in USD. It must be at least
minUsd.priceMinnumberThe lowest price paid to match, from 0 to 1.
priceMaxnumberThe highest price paid to match, from 0 to 1. It must be at least
priceMin.entrystringdefaultallWhich buys to match.
openmatches new positions only,addmatches buys that add to a position, andallmatches both.traderstrader ref[]Matches only these traders' buys. Pass 1 to 25 trader refs.
keywordsstring[]Matches markets whose name contains any of these words. Pass 1 to 10 words, each up to 40 characters.
skipLosingTradersbooleandefaulttrueLeaves out traders on a losing 90-day record: net down with at least 10 settled trades. A backtest uses each trader's record today across its whole window, while a bot checks at the time of each trade. Set
falseto include them.endsWithinHoursnumberMatches only markets expected to end within this many hours of the buy, 1 to 8760, so no bet is held longer (24 holds nothing past a day). The end is the venue's expected end: a game's end, not the last date the market could settle. Leave it out to match any market. A backtest reads a market settled before November 2026 as ending at its last whale trade, so it can include longer bets than a bot would take.
maxPerGameUsdnumberThe most the bot puts into one game across every market on it (the winner, spreads, totals and props), in dollars, up to 1000000. A buy takes only what is left under it, so a trader who ladders one game is copied only up to this. A backtest holds each game to it the same way. Leave it out for no limit.
ruleobjectA market bot's new rule. It replaces the old one. Set at most one of
buyBelow,buyAbove,dropsByandrisesBy. If you set none, the bot buys right away.Show 17 rule fields
buyBelownumberThe bot buys when the side's price falls to this level, between 0 and 1.
buyAbovenumberThe bot buys when the side's price rises to this level, between 0 and 1.
dropsBynumberThe bot buys when the price drops this far below where it stood when the bot started. Write it in dollars of price, so
0.05is 5 points.risesBynumberThe bot buys when the price rises this far above where it stood when the bot started. Write it in dollars of price.
moveWithinSecondsintegerWith
dropsByorrisesBy, the move has to happen within this many seconds, from 5 to 600: the bot measures it from the highest price (a drop) or the lowest (a rise) in that time instead of where the price started.{ risesBy: 0.1, moveWithinSeconds: 10 }buys a 10 point jump inside 10 seconds. A paper bot reads the price about every 3 seconds, a live bot every change.priceMinnumberThe bot buys only when the side costs at least this, between 0 and 1. When the entry fires below it, the bot waits for a reading that meets the entry inside the range.
priceMaxnumberThe bot buys only when the side costs at most this, between 0 and 1. It must be above
priceMin.takeProfitnumberThe bot sells when the price reaches this level, between 0 and 1.
stopLossnumberThe bot sells when the price falls to this level, between 0 and 1.
takeProfitPointsnumberThe bot sells when the price rises this far above the price paid. Write it in dollars of price.
stopLossPointsnumberThe bot sells when the price falls this far below the price paid. Write it in dollars of price.
trailPointsnumberA trailing stop. The bot sells once the price falls this far below its highest price since the buy. Write it in dollars of price.
trailFromnumberThe trailing stop starts only once the price reaches this level, between 0 and 1. Without it, or
trailFromPoints, it is on from the buy.trailFromPointsnumberThe trailing stop starts only once the price is this far above the price paid. Set this or
trailFrom, not both.maxHoldHoursnumberThe bot sells after it has held the position this many hours, up to 720.
streakobjectOnly for a bot that follows a series. The bot buys on a market only once the markets of the series just before it all settled one way. Give
count, from 1 to 10, andresult,yesorno, whereyesis the first outcome (Up on an up-or-down series). Each market's answer comes from the venue's results once the market before it has settled, so a bot can buy a little after a market opens. A market where the streak fails is skipped.repeatbooleandefaultfalseSet to
trueto buy again after each sale. When it is off, the bot trades once, or once per market when it follows a series.
mirrorExitsbooleanSet to
trueto make a trader bot sell when the trader sells.copyobjectTrader bots only: which of the trader's trades to copy.
{ newPositionsOnly, minPrice, maxPrice, minAmountUsd, maxAmountUsd, categories, maxBets, oneSidePerMarket, endsWithinHours, maxPerGameUsd }:newPositionsOnlyskips their adds to a bet they hold;minPriceandmaxPricebound the buy price, each 0.01 to 0.99 or null;minAmountUsdandmaxAmountUsdbound the size of their bet in dollars, each null for no limit;categorieslists categories or kinds of market ("sports", "tennis"), empty for every market;maxBetsis{ count, per: "day" | "total" }or null, counting bets (a market and outcome), not fills, and a bet already held keeps topping up;oneSidePerMarketskips a buy of the other side of a market while the bot holds one;endsWithinHourscopies only markets expected to end within that many hours of the copy (1 to 8760, or null for any market), so no bet is held longer;maxPerGameUsdis the most the bot puts into one game across every market on it (the winner, spreads, totals and props), in dollars, or null for no limit, and a copy takes only what is left under it. Send only the fields you want; any left out mean no limit. Replaces the rules the bot has.dailyCapUsdnumberTrader bots only: the daily limit on buys in USD, as on create.
nullclears it.slippageobjectTrader bots only:
{ cents }or{ percent }, as on create.nullputs it back on 2.5%.statusstringA trader or market bot's status:
runningorpaused.alertsbooleanWhether the bot sends in-app and Telegram messages about its trades.
buyWindowsarrayOne or two parts of each market the bot may buy in, on the market's own clock:
[{ fromSeconds, untilSeconds }], seconds from the open. Each lasts at least 30 seconds, ends by the close and does not overlap the other.[{ fromSeconds: 0, untilSeconds: 180 }, { fromSeconds: 720, untilSeconds: 900 }]buys only in the first and last 3 minutes of a 15 minute market. Only market bots on the 5 and 15 minute markets take it. Replaces its windows;nulllets it buy at any time.sellBeforeCloseSecondsnumberA market bot's sale before each close, 5 to 3600 seconds, on the 5 and 15 minute markets.
nullholds to settlement.pauseLimitsobjectLimits that pause the bot by itself, each optional:
{ dayLossUsd, drawdownUsd, minWinRatePct, winRateTrades }.dayLossUsdis a day's loss in your own day,drawdownUsda fall below its best running total, andminWinRatePctwithwinRateTradesa win rate under that over its last N closed trades (send both). They count from when they are set. Only market bots take it. Replaces its limits;nullclears them.historyDaysnumberAdd the matching trades from this many days back to a signal bot's paper record, 1 to 365. Trades already in it stay as they are. They fill in after the response.
archivedbooleanSet to
trueto archive the bot: it stops, keeps its record and no longer counts toward the bot limits. Set tofalseto restore it. A trader or market bot comes back paused, and a signal bot comes back running. Restoring needs room under the limit. Send it on its own, with no other field.
Example response
{
"data": {
"id": "signal:2c91e7d4-5a3b-4f08-b6e2-91d04f7a3c55",
"name": "Kalshi sports buys, 30¢ to 70¢, $5,000 or more",
"kind": "signal",
"mode": "paper",
"summary": "Kalshi sports buys, 30¢ to 70¢, $5,000 or more",
"status": "running",
"archived": false,
"venues": ["kalshi"],
"profit": 523.17,
"winRate": 0.5521,
"lastTradeAt": "2026-10-15T01:58:12.000Z",
"settings": {
"signal": {
"entry": "all",
"venue": ["kalshi"],
"category": ["sports"],
"minUsd": 5000,
"priceMin": 0.3,
"priceMax": 0.7,
"skipLosingTraders": true
},
"sizing": { "usd": 100 },
"alerts": true
},
"record": {
"trades": 212,
"settled": 192,
"wins": 106,
"losses": 86,
"open": 20,
"winRate": 0.5521,
"realized": 498.6,
"unrealized": 24.57,
"profit": 523.17,
"staked": 19200,
"return": 0.026
},
"curve": [
{ "time": "2026-09-22T19:04:51.000Z", "profit": -100 },
{ "time": "2026-09-23T01:12:08.000Z", "profit": 21.43 }
]
}
}Response fields
dataobjectThe bot after the change, with the same fields Get Bot returns.
Show 17 data fields
idstringThe bot's id:
trader:<id>,signal:<id>ormarket:<id>.namestringThe bot's name. A trader bot with no name of its own takes its trader's name, and a market bot takes the name of its market or series.
kindstringThe kind of bot. A
traderbot copies one trader, asignalbot runs a signal, and amarketbot runs a price rule on one market.modestringWhether the bot trades on
paperorlive. A live bot trades real money. You set it up in the app, and the API can only read it. A live bot's counts and profit come from its real orders on the venue, never from paper.summarystringWhat the bot does, in one line.
statusstringThe bot's status:
running,pausedorended. A signal bot is never paused. It runs for as long as it exists, unless you archive it.archivedbooleanWhether you archived the bot. An archived bot is stopped, keeps its record and does not count toward the bot limits. Lists leave it out unless you ask for archived bots.
venuesstring[]The venues the bot trades on.
profitnumberThe bot's profit in USD, from both closed and open trades.
winRatenumber or nullThe share of the bot's settled trades that won, from 0 to 1.
lastTradeAtstring or nullWhen the bot last traded, in ISO 8601 UTC.
settingsobjectWhat the bot runs. The response includes only the fields for the bot's kind.
Show 13 settings fields
traderobjectOn a trader bot, the trader it copies.
Show 2 trader fields
reftrader refThe trader's ref.
namestring or nullThe trader's public name.
signalobject or nullOn a signal bot, the signal, with the same fields Backtest takes. It is
nullwhen the bot holds settings that only the app can edit.marketobjectOn a market bot, the contract and side it watches.
Show 4 market fields
refmarket refThe contract's ref.
titlestringThe contract's title.
outcomestringThe side the bot trades:
YesorNo.seriesbooleanWhether the bot follows the repeating series.
ruleobjectOn a market bot, the rule, with the same fields
POST /v2/botstakes.sizingobject or nullHow much each trade stakes:
{ usd }or{ percent, maxUsd }.mirrorExitsbooleanOn a trader bot, whether it sells when the trader sells.
copyobjectOn a trader bot, its copy rules, in the same shape
copytakes on create, update and backtest:newPositionsOnly,minPrice,maxPrice,minAmountUsd,maxAmountUsd,categories,maxBets,oneSidePerMarket,endsWithinHoursandmaxPerGameUsd, a null meaning no limit.dailyCapUsdnumber or nullOn a trader bot, its daily limit on buys in USD, or
nullfor none.slippageobject or nullOn a trader bot, its slippage:
{ cents }over the trader's price or{ percent }of it, ornullon the 2.5% default.alertsbooleanWhether the bot sends in-app and Telegram messages.
buyWindowsarray or nullOn a market bot, the parts of each market it may buy in,
[{ fromSeconds, untilSeconds }]from the open, ornullto buy at any time.sellBeforeCloseSecondsnumber or nullOn a market bot, how many seconds before each close it sells what it holds, or
nullto hold to settlement.pauseLimitsobject or nullOn a market bot, the limits that pause it by itself (
dayLossUsd,drawdownUsd,minWinRatePct,winRateTrades), ornullfor none.
recordobjectThe bot's record.
Show 11 record fields
tradesintegerThe number of trades the bot took.
settledintegerThe number of trades that settled or closed.
winsintegerThe number of wins.
lossesintegerThe number of losses.
openintegerThe number of trades still open.
winRatenumber or nullThe share of settled trades that won, from 0 to 1.
realizednumberThe profit from closed trades, in USD.
unrealizednumberThe profit on open trades, in USD.
profitnumberThe closed and open profit added together, in USD.
stakednumberThe dollars the bot staked.
returnnumber or nullThe profit divided by the dollars staked.
curveobject[]The running total of closed profit, one point for each trade.
Show 2 curve fields
timestringThe time of this point, in ISO 8601 UTC.
profitnumberThe total profit up to this point, in USD.
tradesobjectOne page of the bot's trades, newest first, when you ask for
include=trades.Show 2 trades fields
dataobject[]The trades on this page.
Show 11 data fields
marketobject or nullThe market the trade is on. Here
categoryandkindare alwaysnull.Show 7 market fields
refmarket refThe market's ref. You can pass it to any
marketfilter or to Get Market. On a market of several outcomes, it names the whole event.contractmarket ref or nullThe ref of the exact contract. It is the same as
refon a market with one contract. On a market of several outcomes, such as a game with a moneyline and a spread, it tells the contracts apart. Pass it to Place Paper Order or a market bot.venueIdstring or nullThe venue's own id for that exact contract, so you can find it on the venue without parsing a ref: the ticker on Kalshi and Gemini (such as
KXETH15M-26OCT271715-15), the market slug on Polymarket. It isnullexactly whencontractis.titlestringThe market's title, as the venue writes it.
venuestringThe venue that lists the market: one of
kalshi,polymarket,polymarket_usorgemini.categorystring or nullThe market's category: one of
sports,politics,crypto,finance,culture. It isnullwhen Rivo has not classified the market.kindstring or nullThe kind of market, such as
nflorbitcoin. It isnullwhen Rivo has not classified the market yet.
outcomestringThe side the bot bought.
contractsnumberThe number of contracts bought.
entryPricenumberThe price paid, from 0 to 1.
pricenumberThe price now while the trade is open. Once it closes, this is the exit price or the payout.
profitnumberThe profit in USD.
statusstringWhether the trade is
openorclosed.resultstring or nullThe result once the trade closes:
win,lossorvoid.openedAtstringWhen the trade opened, in ISO 8601 UTC.
closedAtstring or nullWhen the trade closed, in ISO 8601 UTC.
ruleobject or nullThe bot's rule when it made this trade, as it was saved then, so trades from before and after an edit can be told apart.
nullon trades from before the bot's rule was kept.Show 2 rule fields
savedAtstringWhen this version of the rule was saved, in ISO 8601 UTC.
summarystringThe rule in words. For a market bot, its rule, stake and timing settings. For a trader bot, its copy settings. For a signal bot, its signal, sizing and autopilot.
nextCursorstring or nullPass this as
cursorto read the next page. It isnullon the last page.
liveobjectOn a live bot only: what it sent to the venue, its limits and what it passed on.
Show 5 live fields
sincestring or nullWhen it placed its first real order, in ISO 8601 UTC.
limitsobjectIts limits in USD and how close it is to them:
spentTodayagainstdailyLimit,lossWindowProfitsincelossWindowStartedAtagainstlossLimit,openBetsagainstmaxOpen, andmaxPerTrade. A limit that is not set isnull.ordersobject[]Its 20 newest orders:
at,side(buyorsell),market,outcome,status(filled,partial,working,canceledorrefused),contracts,price,usd, andreasonwhen it did not fill.skippedobjectTrades it saw in the last 24 hours and did not copy:
total,reasons(each{ reason, count }), and the 10 newest inrecent.unpricedintegerOpen holdings the venue has no price for right now. The record holds them at cost.
activityobject or nullHow busy the bot's trigger has been, when you ask for
include=activity. It isnullfor a market bot.Show 5 activity fields
tradesintegerThe number of trades the trigger matched in the window.
windowDaysintegerThe length of the window in days, which is 30.
medianTradeUsdnumber or nullThe middle trade size, in USD.
lastTradeAtstring or nullWhen the newest matching trade happened, in ISO 8601 UTC.
dailyPositionsobjectOn a trader bot, the trader's new positions a day in the window: each market and outcome counted on the UTC day of its first buy, as
copy.maxBetscounts bets. Left out when they opened none.Show 3 dailyPositions fields
daysintegerDays they opened at least one position.
averagenumberNew positions on a day they opened any.
maxintegerNew positions on their busiest day. Size
maxBetsor a daily limit to it.
Errors
| Code | When |
|---|---|
SCOPE_REQUIRED | The key does not have the write scope. |
NOT_FOUND | No bot has that id. |
VALIDATION | The body is empty, or a field is unknown or does not fit this kind of bot. You sent status to a signal bot, or a market bot's sizing is not { usd }. The bot holds a signal that only the app can edit, or the bot is live. |