Bot settings reference
Every field of every bot type the API accepts, with type, default, range and what it does. The tables are generated from the schemas the API itself uses.
On this page
These tables are not typed by hand. They are produced from the same schemas that get_bot_type_schema returns and that Prow checks every call against, so a field, a default or a range here is always the one the API enforces. Each bot type is one draft object (or draft of a link) with these fields. Send only the fields you need: a field with a default can be left out.
Conventions:
- Prices and sizes are plain numbers in a request (
"lower": 90000). Answers write them as decimal strings. - A field that says "or null" can be set to
nullto switch it off. Requiredmeans the field must be present. Fields insidestart,combo,spotand similar blocks apply only when that block is used.- Do not send fees, a stop-limit distance or a QFL
seed: Prow fills them in. - Start from a live example:
get_bot_type_schemawithtype,venue,marketanddirectionreturns one at today's price.
What the less obvious settings mean
rangeExit(grid): what happens when the price leaves the range.offkeeps the bot running and the stop loss decides,closestops the bot and closes the position,keepstops the bot and keeps the position with its stop.slAction(DCA): what happens when the stop loss is hit.stopcloses the bot,nextcloses the deal and lets the bot start the next one.pumpMovePct(grid): a price jump of this percent in five minutes counts as a pump and the bot holds back, so a spot grid that follows the price up does not chase it.trailingTpPct: after the take profit is reached, the bot closes when its profit falls back this many percent from its peak.takeOnCross: true lets the bot take levels the price already crossed at market.maxLossUsd: the bot stops when its loss reaches this many dollars. If you leave it out, Prow uses 30 percent of the investment, raised to cover the loss at the stop.
Grid
A grid places buy and sell orders at fixed levels inside a range. Perpetual grids can be long, short or neutral. Spot grids are long only at 1x.
Grid bot
| Field | Type | Required | Default | Range | What it does |
|---|---|---|---|---|---|
type | always grid | yes | Always grid. | ||
investment | number | yes | 0 to 1000000 | Money the bot may use, in US dollars (the margin; the position can be this times the leverage). | |
leverage | number | no | 1 | 1 to 5 | Leverage from 1 to 5. Above 3 only on the deepest markets. Isolated margin. |
maxLossUsd | number | no | at least 0 | Loss limit in US dollars. The bot stops when its loss reaches it. Default: 30 percent of the investment. | |
slippageBps | integer | no | 50 | 1 to 100 | How far from the expected price an order may fill, in basis points (1 to 100). Default 50. |
takeOnCross | boolean | no | false | True lets the bot take levels the price already crossed at market. Default false. | |
direction | one of: long, short, neutral | no | long | Which way the bot trades. | |
lower | number | yes | at least 0 | Lowest price of the range. | |
upper | number | yes | at least 0 | Highest price of the range. The range must be at least 2 percent wide. | |
count | integer | yes | 2 to 150 | Number of grid levels, 2 to 150 (at most 150 on Hyperliquid and 100 on Aster). | |
spacing | one of: arithmetic, geometric | no | geometric | geometric (equal percent steps, default) or arithmetic (equal price steps). | |
slLow | number or null | no | none | at least 0 | Stop loss below the range. Required for long and neutral grids; closes the position when the price falls to it. |
slHigh | number or null | no | none | at least 0 | Stop loss above the range. Required for short and neutral grids. |
takeProfitPct | number or null | no | none | 0.01 to 10000 | Take profit for the whole bot, percent of the investment. Optional. |
trailingTpPct | number or null | no | none | 0.01 to 100 | Trailing take profit distance in percent. Needs takeProfitPct. Optional. |
trailingUp | object or null | no | none | Spot grids only. Leave null on futures. | |
trailingUp.limit | number | yes | at least 0 | Spot grids only: the grid never shifts up above this price. | |
trailingDown | object or null | no | none | Spot grids only. Leave null on futures. | |
trailingDown.limit | number | yes | at least 0 | Spot grids only: the grid never shifts down below this price. | |
pumpMovePct | number or null | no | none | 0.01 to 100 | Optional: a price jump of this percent counts as a pump and the bot reacts. |
rangeExit | one of: off, close, keep | no | off | What happens when the price leaves the range: off (default), close or keep. | |
trigger | number or null | no | none | at least 0 | Optional price at which the grid starts. Until then it waits. |
- Prices in this example are placeholders. Pass venue and market to get one at the current price.
- A long grid needs slLow below the range, a short grid needs slHigh above it, a neutral grid needs both.
- The range must be at least 2 percent wide and the count at most 150 on Hyperliquid and 100 on Aster.
- Leverage is 1 to 5; above 3 only on the deepest markets. Short and neutral grids too.
- Every order must reach the venue's minimum: validate_bot_config says the minimum investment.
- Do not send fees or a seed: Prow fills them in.
DCA and QFL
A DCA bot buys a base order and adds safety orders as the price moves against it. A QFL bot is a DCA bot that waits for a crack under a base before it buys: its start.kind is qfl and it is long only.
DCA bot
| Field | Type | Required | Default | Range | What it does |
|---|---|---|---|---|---|
type | always dca | yes | Always dca. | ||
investment | number | yes | 0 to 1000000 | Money the bot may use, in US dollars (the margin; the position can be this times the leverage). | |
leverage | number | no | 1 | 1 to 5 | Leverage from 1 to 5. Above 3 only on the deepest markets. Isolated margin. |
maxLossUsd | number | no | at least 0 | Loss limit in US dollars. The bot stops when its loss reaches it. Default: 30 percent of the investment. | |
slippageBps | integer | no | 50 | 1 to 100 | How far from the expected price an order may fill, in basis points (1 to 100). Default 50. |
takeOnCross | boolean | no | false | True lets the bot take levels the price already crossed at market. Default false. | |
direction | one of: long, short | no | long | Which way the bot trades. | |
baseOrder | number | yes | at least 0 | Size of the first order in US dollars. | |
baseOrderType | one of: market, limit | no | market | market (default) or limit. | |
safetyOrder | number | yes | at least 0 | Size of each extra order in US dollars. | |
safetyCount | integer | yes | 0 to 25 | Number of extra orders, 0 to 25. | |
deviationPct | number | yes | 0.5 to 10 | Distance of the first extra order from the entry, percent (0.5 to 10). | |
stepScale | number | no | 1.2 | 1 to 2 | Each next extra order is this many times further than the one before (1 to 2). |
volumeScale | number | no | 1 | 1 to 2 | Each next extra order is this many times bigger than the one before (1 to 2). Above 1.2 Prow warns. |
maxActiveSafety | integer | no | 2 | 1 to 25 | Extra orders resting at once, 1 to 25, not more than safetyCount. |
tpPct | number | yes | 0.2 to 50 | Take profit per deal, percent (0.2 to 50). | |
tpFrom | one of: average, base | no | average | Measure the take profit from the average price or the first order. | |
trailingTpPct | number or null | no | none | 0.01 to 50 | Trailing take profit distance in percent; must be below tpPct. Not together with tpTargets. |
slPct | number | yes | 0.1 to 99 | Stop loss, percent from the average entry price (0.1 to 99). The stop follows the average as extra orders fill, so it moves with each one. Required. | |
slAction | one of: stop, next | no | stop | stop (default) closes the bot at the stop; next lets it try the next deal. | |
trailingSlPct | number or null | no | none | 0.01 to 50 | Optional trailing stop distance in percent. |
botTpPct | number or null | no | none | 0.01 to 10000 | Take profit for the whole bot, percent of the investment. Optional. |
start | object | no | {"kind":"immediate"} | How the bot starts: immediate, price, manual, signal or qfl. | |
start.kind | one of: immediate, price, manual, signal, qfl | no | immediate starts now; price waits for a price; qfl buys after a crack under a base. | ||
start.op | one of: lte, gte | no | For a price start: lte (at or below) or gte (at or above). | ||
start.price | number | no | at least 0 | For a price start: the price. | |
start.tfMin | number | no | 60 | For qfl: candle size in minutes (15, 60 or 240). | |
start.lookback | integer | no | 48 | 12 to 200 | For qfl: how many candles define the base (12 to 200). |
start.crackPct | number | no | 3 | 1 to 20 | For qfl: how far under the base the price must fall, percent (1 to 20). |
start.bouncePct | number | no | 2 | 0.5 to 20 | For qfl: how much it must bounce back, percent (0.5 to 20). |
cooldownSec | integer | no | 0 | 0 to 86400 | Seconds to wait between deals, 0 to 86400. |
repeat | boolean | no | true | True (default) starts a new deal after each one; false stops after the first. | |
tpTargets | array or null | no | none | 2 to 4 items | Optional 2 to 4 take-profit targets: each pct further than the one before, shares add up to 100. |
tpTargets[].pct | number | yes | 0.2 to 50 | How far from the entry this target sits, percent (0.2 to 50), higher than the target before it. | |
tpTargets[].share | number | yes | 5 to 95 | Share of the position closed at this target, percent (5 to 95). All shares add up to 100. | |
breakeven | boolean | no | false | With tpTargets: the stop moves to the entry after the first target. |
- slPct is required. The stop must sit beyond the last extra order; validate_bot_config checks it.
- A QFL bot is a DCA with start.kind qfl and runs long only.
- tpTargets (2 to 4 targets, shares adding up to 100) cannot be combined with trailingTpPct.
- Leverage is 1 to 5; above 3 only on the deepest markets.
- Each order must reach the venue's minimum: validate_bot_config says the minimum investment.
Ladder
A Ladder is a grid with a combo block. It is offered while Prow has Ladder bots on.
Ladder bot
| Field | Type | Required | Default | Range | What it does |
|---|---|---|---|---|---|
type | always grid | yes | Always grid. | ||
investment | number | yes | 0 to 1000000 | Money the bot may use, in US dollars (the margin; the position can be this times the leverage). | |
leverage | number | no | 1 | 1 to 5 | Leverage from 1 to 5. Above 3 only on the deepest markets. Isolated margin. |
maxLossUsd | number | no | at least 0 | Loss limit in US dollars. The bot stops when its loss reaches it. Default: 30 percent of the investment. | |
slippageBps | integer | no | 50 | 1 to 100 | How far from the expected price an order may fill, in basis points (1 to 100). Default 50. |
takeOnCross | boolean | no | false | True lets the bot take levels the price already crossed at market. Default false. | |
direction | one of: long, short, neutral | no | long | Which way the bot trades. | |
lower | number | yes | at least 0 | Lowest price of the range. | |
upper | number | yes | at least 0 | Highest price of the range. The range must be at least 2 percent wide. | |
count | integer | yes | 2 to 150 | Number of grid levels, 2 to 150 (at most 150 on Hyperliquid and 100 on Aster). | |
spacing | one of: arithmetic, geometric | no | geometric | geometric (equal percent steps, default) or arithmetic (equal price steps). | |
slLow | number or null | no | none | at least 0 | Stop loss below the range. Required for long and neutral grids; closes the position when the price falls to it. |
slHigh | number or null | no | none | at least 0 | Stop loss above the range. Required for short and neutral grids. |
takeProfitPct | number or null | no | none | 0.01 to 10000 | Take profit for the whole bot, percent of the investment. Optional. |
trailingTpPct | number or null | no | none | 0.01 to 100 | Trailing take profit distance in percent. Needs takeProfitPct. Optional. |
trailingUp | object or null | no | none | Spot grids only. Leave null on futures. | |
trailingUp.limit | number | yes | at least 0 | Spot grids only: the grid never shifts up above this price. | |
trailingDown | object or null | no | none | Spot grids only. Leave null on futures. | |
trailingDown.limit | number | yes | at least 0 | Spot grids only: the grid never shifts down below this price. | |
pumpMovePct | number or null | no | none | 0.01 to 100 | Optional: a price jump of this percent counts as a pump and the bot reacts. |
rangeExit | one of: off, close, keep | no | off | What happens when the price leaves the range: off (default), close or keep. | |
trigger | number or null | no | none | at least 0 | Optional price at which the grid starts. Until then it waits. |
combo | object | yes | Ladder settings. Leave null for a plain grid. | ||
combo.firstShare | number | no | 0.5 | 0.3 to 0.7 | Share of the investment in the first market order, 0.3 to 0.7. |
combo.trailStop | boolean | no | true | True keeps a trailing stop (default). | |
combo.reopen | object or null | no | none | Optional: re-open after the bot finishes, with a limit price. | |
combo.reopen.cooldownSec | integer | no | 3600 | 0 to 86400 | Seconds before a re-open. |
combo.reopen.maxPerDay | integer | no | 3 | 1 to 3 | Most re-opens a day. |
combo.reopen.limit | number | yes | at least 0 | Price the re-opened range may trail to. | |
combo.breakeven | boolean | no | false | Move the stop to the entry after the first take profit. |
- Prices in this example are placeholders. Pass venue and market to get one at the current price.
- A Ladder is a futures grid with a combo block: long or short, 6 to 40 levels, no trigger price and no range exit.
- The range must be at least 4 percent wide, with levels on both sides of the current price.
- Send type grid with a combo object. This type is only offered while Prow has Ladder bots switched on.
Arbitrage, Funding and spot hedge
These three are handed over as a link with create_two_leg_bot_link: the object you send is the draft of that call, and type is a separate argument.
Arbitrage bot
| Field | Type | Required | Default | Range | What it does |
|---|---|---|---|---|---|
strategies | array | yes | 1 to 3 items | funding: long where funding is lower and short where it is higher, Hyperliquid and Aster. basis: buy the coin on Hyperliquid spot and short its perp. gap: buy on the cheaper venue and sell on the dearer one. Only the ones list_bot_types names are on. | |
capitalUsd | number | yes | 0 to 1000000 | Money the bot may use across both venues in US dollars: each perp leg's margin plus each spot leg in full. | |
pairUsd | number | yes | 0 to 1000000 | Size of each leg of one pair, in US dollars. | |
leverage | integer | no | 2 | 1 to 3 | Leverage per leg, 1 to 3. Isolated margin. |
maxPairs | integer | no | 1 | 1 to 3 | Pairs open at once, 1 to 3. |
minNetAprPct | number | no | 8 | 0 to 500 | A pair opens only when its yearly difference after costs is at least this many percent. Default 8. |
horizonH | integer | no | 72 | 8 to 720 | Hours the entry check looks ahead, 8 to 720. Default 72. Not longer than maxHoldHours. |
maxHoldHours | integer | no | 168 | 24 to 720 | Longest time a pair stays open, 24 to 720 hours. Default 168. |
exitBps | number | no | 2 | 0 to 50 | Price gap strategy only: the pair exits when the gap is within this many basis points of its usual level, 0 to 50. Default 2. Funding pairs exit after funding flips for 2 settlements, whatever this says. |
cooldownH | number | no | 12 | 0 to 168 | Hours to wait after a pair closes before the same coin can open again, 0 to 168. Default 12. |
hedgeStyle | one of: taker, maker_first | no | taker | taker (default): both legs at once. maker_first: rests a limit order first; only while Prow has it switched on. | |
marginBufferPct | number | no | 20 | 10 to 90 | Share of free margin kept back, 10 to 90 percent. Default 20. |
guardPct | number | no | 75 | 50 to 85 | The bot closes a pair this many percent of the way to a leg's liquidation price, 50 to 85. Default 75. Must be below venueGuardPct. |
venueGuardPct | number | no | 80 | 50 to 85 | The stop placed on the venue, in percent of the way to liquidation, 50 to 85. Default 80. |
mirrorMarginBps | number | no | 50 | 0 to 100 | Extra margin the second leg keeps in step with the first, in basis points, 0 to 100. Default 50. |
maxHedgeSlipBps | number | no | 30 | 1 to 100 | How far the second leg's fill may be from the expected price, in basis points, 1 to 100. Default 30. |
maxUnhedgedUsd | number | no | 0 to 1000000 | Most money in one leg without the other, in US dollars. Default a quarter of a pair plus 10 percent; it cannot be more than one leg plus 10 percent. | |
maxUnhedgedS | number | no | 5 | 1 to 30 | Longest time one leg may stand without the other, in seconds, 1 to 30. Default 5. |
maxLossUsd | number | no | 0 to 1000000 | Loss limit in US dollars. Default 5 percent of capitalUsd, at least 1. It cannot be more than capitalUsd times leverage. | |
coins | array | yes | 1 to 10 items | Coin tickers such as BTC or ETH, 1 to 10. Each needs its perp on Hyperliquid, and on Aster for funding or gap, or a Hyperliquid spot pair for basis. Prow looks up each coin's markets itself. |
- These settings are handed over as a link: create_two_leg_bot_link validates them and returns a link that opens this bot's form in Prow with them filled in. Nothing is started and nothing is saved: you review every field and sign every leg in Prow.
- Every number here is a placeholder: take amounts from your own balances and pairs from list_arbitrage_opportunities.
- Funding and gap need a Hyperliquid and an Aster account, with the money already on each venue. The bot cannot move funds between venues or between spot and perps.
- The difference a pair earns is small and can turn negative. One leg can be stopped while the other is still open.
- Do not send fees, clip sizes or other settings the Prow form has no field for: Prow fills them in.
Funding bot
| Field | Type | Required | Default | Range | What it does |
|---|---|---|---|---|---|
mode | one of: fast, steady | yes | fast: decides every hour, 3x. steady: decides once a day, 2x, holds at least 3 days. | ||
capitalUsd | number | yes | 300 to 300000 | USDC the bot may use, 300 to 300000. It must be free on the Hyperliquid account. | |
coins | array | no | 3 to 20 items | Optional: the coins the bot may hold, at least 3. Left out, it may hold every coin that has a Hyperliquid spot pair in USDC. Coins you already hold on spot are skipped. | |
maxLossPct | number | no | 10 | 1 to 50 | Loss limit, percent of capitalUsd, 1 to 50. Default 10. |
- These settings are handed over as a link: create_two_leg_bot_link validates them and returns a link that opens this bot's form in Prow with them filled in. Nothing is started and nothing is saved: you review every field and sign every leg in Prow.
- Funding needs a Hyperliquid account on a unified balance (not portfolio margin) with the capital free in USDC.
- Fast reaction runs at 3x, steady at 2x, both with up to 3 positions at once.
- Funding is a rate the market pays and it can turn negative. Past funding does not predict future funding.
Spot hedge
| Field | Type | Required | Default | Range | What it does |
|---|---|---|---|---|---|
size | number | yes | at least 0 | How many coins to short: the amount of spot you hold, in coins (rounded down to the venue's step). | |
leverage | integer | no | 1 | 1 to 2 | 1 or 2. 1 is safer: at 2 a smaller rise liquidates the short. |
spot | object | yes | Where the spot is: {"source":"external"} for coins held anywhere else (Prow cannot see them), or {"source":"hl_spot","token":"UBTC"} for the spot on your Hyperliquid account (token: BTC is UBTC, ETH is UETH, SOL is USOL, HYPE is HYPE). | ||
spot.source | one of: hl_spot, external | no | hl_spot: the spot is on your Hyperliquid account (also send token). external: you hold the coins elsewhere. | ||
spot.token | string | no | With hl_spot: the Hyperliquid spot token that holds the coins (BTC is UBTC, ETH is UETH, SOL is USOL, HYPE is HYPE). | ||
guardFrac | number or null | no | 0.85 | 0.5 to 0.9 | The guard closes the short at this fraction of the way to its liquidation price, 0.5 to 0.9 (default 0.85). null switches the guard off, and then the venue liquidates the short if the price rises far enough. |
alertPct | number | no | 15 | 5 to 50 | Alert when the price has risen this many percent, 5 to 50. Default 15. |
addMarginReminder | boolean | no | true | Remind you to add margin as the price rises. Default true. | |
slippageBps | integer | no | 50 | 10 to 100 | How far from the expected price an order may fill, in basis points, 10 to 100. Default 50. |
coin | string | yes | The coin to protect, as its Hyperliquid perp is named, for example BTC. The short is opened on that perp. |
- These settings are handed over as a link: create_two_leg_bot_link validates them and returns a link that opens this bot's form in Prow with them filled in. Nothing is started and nothing is saved: you review every field and sign every leg in Prow.
- The size is a number of coins, not dollars. Prow rounds it down to the venue's step; below the venue's minimum order it is refused.
- A hedge shorts the Hyperliquid perp. If you sell the spot, stop the hedge, or the short becomes a bet on the price falling.
- Free margin for the short must be on the Hyperliquid perp account: the bot cannot move funds.
Settings of a running bot
What edit_bot accepts is a shorter list. get_bot returns it for each bot in editable_with_edit_bot. Change a running bot explains which settings are signed at the start and cannot be edited.
Last updated