Skip to content

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 null to switch it off.
  • Required means the field must be present. Fields inside start, combo, spot and 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_schema with type, venue, market and direction returns one at today's price.

What the less obvious settings mean

  • rangeExit (grid): what happens when the price leaves the range. off keeps the bot running and the stop loss decides, close stops the bot and closes the position, keep stops the bot and keeps the position with its stop.
  • slAction (DCA): what happens when the stop loss is hit. stop closes the bot, next closes 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

FieldTypeRequiredDefaultRangeWhat it does
typealways gridyesAlways grid.
investmentnumberyes0 to 1000000Money the bot may use, in US dollars (the margin; the position can be this times the leverage).
leveragenumberno11 to 5Leverage from 1 to 5. Above 3 only on the deepest markets. Isolated margin.
maxLossUsdnumbernoat least 0Loss limit in US dollars. The bot stops when its loss reaches it. Default: 30 percent of the investment.
slippageBpsintegerno501 to 100How far from the expected price an order may fill, in basis points (1 to 100). Default 50.
takeOnCrossbooleannofalseTrue lets the bot take levels the price already crossed at market. Default false.
directionone of: long, short, neutralnolongWhich way the bot trades.
lowernumberyesat least 0Lowest price of the range.
uppernumberyesat least 0Highest price of the range. The range must be at least 2 percent wide.
countintegeryes2 to 150Number of grid levels, 2 to 150 (at most 150 on Hyperliquid and 100 on Aster).
spacingone of: arithmetic, geometricnogeometricgeometric (equal percent steps, default) or arithmetic (equal price steps).
slLownumber or nullnononeat least 0Stop loss below the range. Required for long and neutral grids; closes the position when the price falls to it.
slHighnumber or nullnononeat least 0Stop loss above the range. Required for short and neutral grids.
takeProfitPctnumber or nullnonone0.01 to 10000Take profit for the whole bot, percent of the investment. Optional.
trailingTpPctnumber or nullnonone0.01 to 100Trailing take profit distance in percent. Needs takeProfitPct. Optional.
trailingUpobject or nullnononeSpot grids only. Leave null on futures.
trailingUp.limitnumberyesat least 0Spot grids only: the grid never shifts up above this price.
trailingDownobject or nullnononeSpot grids only. Leave null on futures.
trailingDown.limitnumberyesat least 0Spot grids only: the grid never shifts down below this price.
pumpMovePctnumber or nullnonone0.01 to 100Optional: a price jump of this percent counts as a pump and the bot reacts.
rangeExitone of: off, close, keepnooffWhat happens when the price leaves the range: off (default), close or keep.
triggernumber or nullnononeat least 0Optional 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

FieldTypeRequiredDefaultRangeWhat it does
typealways dcayesAlways dca.
investmentnumberyes0 to 1000000Money the bot may use, in US dollars (the margin; the position can be this times the leverage).
leveragenumberno11 to 5Leverage from 1 to 5. Above 3 only on the deepest markets. Isolated margin.
maxLossUsdnumbernoat least 0Loss limit in US dollars. The bot stops when its loss reaches it. Default: 30 percent of the investment.
slippageBpsintegerno501 to 100How far from the expected price an order may fill, in basis points (1 to 100). Default 50.
takeOnCrossbooleannofalseTrue lets the bot take levels the price already crossed at market. Default false.
directionone of: long, shortnolongWhich way the bot trades.
baseOrdernumberyesat least 0Size of the first order in US dollars.
baseOrderTypeone of: market, limitnomarketmarket (default) or limit.
safetyOrdernumberyesat least 0Size of each extra order in US dollars.
safetyCountintegeryes0 to 25Number of extra orders, 0 to 25.
deviationPctnumberyes0.5 to 10Distance of the first extra order from the entry, percent (0.5 to 10).
stepScalenumberno1.21 to 2Each next extra order is this many times further than the one before (1 to 2).
volumeScalenumberno11 to 2Each next extra order is this many times bigger than the one before (1 to 2). Above 1.2 Prow warns.
maxActiveSafetyintegerno21 to 25Extra orders resting at once, 1 to 25, not more than safetyCount.
tpPctnumberyes0.2 to 50Take profit per deal, percent (0.2 to 50).
tpFromone of: average, basenoaverageMeasure the take profit from the average price or the first order.
trailingTpPctnumber or nullnonone0.01 to 50Trailing take profit distance in percent; must be below tpPct. Not together with tpTargets.
slPctnumberyes0.1 to 99Stop 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.
slActionone of: stop, nextnostopstop (default) closes the bot at the stop; next lets it try the next deal.
trailingSlPctnumber or nullnonone0.01 to 50Optional trailing stop distance in percent.
botTpPctnumber or nullnonone0.01 to 10000Take profit for the whole bot, percent of the investment. Optional.
startobjectno{"kind":"immediate"}How the bot starts: immediate, price, manual, signal or qfl.
start.kindone of: immediate, price, manual, signal, qflnoimmediate starts now; price waits for a price; qfl buys after a crack under a base.
start.opone of: lte, gtenoFor a price start: lte (at or below) or gte (at or above).
start.pricenumbernoat least 0For a price start: the price.
start.tfMinnumberno60For qfl: candle size in minutes (15, 60 or 240).
start.lookbackintegerno4812 to 200For qfl: how many candles define the base (12 to 200).
start.crackPctnumberno31 to 20For qfl: how far under the base the price must fall, percent (1 to 20).
start.bouncePctnumberno20.5 to 20For qfl: how much it must bounce back, percent (0.5 to 20).
cooldownSecintegerno00 to 86400Seconds to wait between deals, 0 to 86400.
repeatbooleannotrueTrue (default) starts a new deal after each one; false stops after the first.
tpTargetsarray or nullnonone2 to 4 itemsOptional 2 to 4 take-profit targets: each pct further than the one before, shares add up to 100.
tpTargets[].pctnumberyes0.2 to 50How far from the entry this target sits, percent (0.2 to 50), higher than the target before it.
tpTargets[].sharenumberyes5 to 95Share of the position closed at this target, percent (5 to 95). All shares add up to 100.
breakevenbooleannofalseWith 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

FieldTypeRequiredDefaultRangeWhat it does
typealways gridyesAlways grid.
investmentnumberyes0 to 1000000Money the bot may use, in US dollars (the margin; the position can be this times the leverage).
leveragenumberno11 to 5Leverage from 1 to 5. Above 3 only on the deepest markets. Isolated margin.
maxLossUsdnumbernoat least 0Loss limit in US dollars. The bot stops when its loss reaches it. Default: 30 percent of the investment.
slippageBpsintegerno501 to 100How far from the expected price an order may fill, in basis points (1 to 100). Default 50.
takeOnCrossbooleannofalseTrue lets the bot take levels the price already crossed at market. Default false.
directionone of: long, short, neutralnolongWhich way the bot trades.
lowernumberyesat least 0Lowest price of the range.
uppernumberyesat least 0Highest price of the range. The range must be at least 2 percent wide.
countintegeryes2 to 150Number of grid levels, 2 to 150 (at most 150 on Hyperliquid and 100 on Aster).
spacingone of: arithmetic, geometricnogeometricgeometric (equal percent steps, default) or arithmetic (equal price steps).
slLownumber or nullnononeat least 0Stop loss below the range. Required for long and neutral grids; closes the position when the price falls to it.
slHighnumber or nullnononeat least 0Stop loss above the range. Required for short and neutral grids.
takeProfitPctnumber or nullnonone0.01 to 10000Take profit for the whole bot, percent of the investment. Optional.
trailingTpPctnumber or nullnonone0.01 to 100Trailing take profit distance in percent. Needs takeProfitPct. Optional.
trailingUpobject or nullnononeSpot grids only. Leave null on futures.
trailingUp.limitnumberyesat least 0Spot grids only: the grid never shifts up above this price.
trailingDownobject or nullnononeSpot grids only. Leave null on futures.
trailingDown.limitnumberyesat least 0Spot grids only: the grid never shifts down below this price.
pumpMovePctnumber or nullnonone0.01 to 100Optional: a price jump of this percent counts as a pump and the bot reacts.
rangeExitone of: off, close, keepnooffWhat happens when the price leaves the range: off (default), close or keep.
triggernumber or nullnononeat least 0Optional price at which the grid starts. Until then it waits.
comboobjectyesLadder settings. Leave null for a plain grid.
combo.firstSharenumberno0.50.3 to 0.7Share of the investment in the first market order, 0.3 to 0.7.
combo.trailStopbooleannotrueTrue keeps a trailing stop (default).
combo.reopenobject or nullnononeOptional: re-open after the bot finishes, with a limit price.
combo.reopen.cooldownSecintegerno36000 to 86400Seconds before a re-open.
combo.reopen.maxPerDayintegerno31 to 3Most re-opens a day.
combo.reopen.limitnumberyesat least 0Price the re-opened range may trail to.
combo.breakevenbooleannofalseMove 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

FieldTypeRequiredDefaultRangeWhat it does
strategiesarrayyes1 to 3 itemsfunding: 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.
capitalUsdnumberyes0 to 1000000Money the bot may use across both venues in US dollars: each perp leg's margin plus each spot leg in full.
pairUsdnumberyes0 to 1000000Size of each leg of one pair, in US dollars.
leverageintegerno21 to 3Leverage per leg, 1 to 3. Isolated margin.
maxPairsintegerno11 to 3Pairs open at once, 1 to 3.
minNetAprPctnumberno80 to 500A pair opens only when its yearly difference after costs is at least this many percent. Default 8.
horizonHintegerno728 to 720Hours the entry check looks ahead, 8 to 720. Default 72. Not longer than maxHoldHours.
maxHoldHoursintegerno16824 to 720Longest time a pair stays open, 24 to 720 hours. Default 168.
exitBpsnumberno20 to 50Price 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.
cooldownHnumberno120 to 168Hours to wait after a pair closes before the same coin can open again, 0 to 168. Default 12.
hedgeStyleone of: taker, maker_firstnotakertaker (default): both legs at once. maker_first: rests a limit order first; only while Prow has it switched on.
marginBufferPctnumberno2010 to 90Share of free margin kept back, 10 to 90 percent. Default 20.
guardPctnumberno7550 to 85The 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.
venueGuardPctnumberno8050 to 85The stop placed on the venue, in percent of the way to liquidation, 50 to 85. Default 80.
mirrorMarginBpsnumberno500 to 100Extra margin the second leg keeps in step with the first, in basis points, 0 to 100. Default 50.
maxHedgeSlipBpsnumberno301 to 100How far the second leg's fill may be from the expected price, in basis points, 1 to 100. Default 30.
maxUnhedgedUsdnumberno0 to 1000000Most 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.
maxUnhedgedSnumberno51 to 30Longest time one leg may stand without the other, in seconds, 1 to 30. Default 5.
maxLossUsdnumberno0 to 1000000Loss limit in US dollars. Default 5 percent of capitalUsd, at least 1. It cannot be more than capitalUsd times leverage.
coinsarrayyes1 to 10 itemsCoin 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

FieldTypeRequiredDefaultRangeWhat it does
modeone of: fast, steadyyesfast: decides every hour, 3x. steady: decides once a day, 2x, holds at least 3 days.
capitalUsdnumberyes300 to 300000USDC the bot may use, 300 to 300000. It must be free on the Hyperliquid account.
coinsarrayno3 to 20 itemsOptional: 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.
maxLossPctnumberno101 to 50Loss 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

FieldTypeRequiredDefaultRangeWhat it does
sizenumberyesat least 0How many coins to short: the amount of spot you hold, in coins (rounded down to the venue's step).
leverageintegerno11 to 21 or 2. 1 is safer: at 2 a smaller rise liquidates the short.
spotobjectyesWhere 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.sourceone of: hl_spot, externalnohl_spot: the spot is on your Hyperliquid account (also send token). external: you hold the coins elsewhere.
spot.tokenstringnoWith hl_spot: the Hyperliquid spot token that holds the coins (BTC is UBTC, ETH is UETH, SOL is USOL, HYPE is HYPE).
guardFracnumber or nullno0.850.5 to 0.9The 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.
alertPctnumberno155 to 50Alert when the price has risen this many percent, 5 to 50. Default 15.
addMarginReminderbooleannotrueRemind you to add margin as the price rises. Default true.
slippageBpsintegerno5010 to 100How far from the expected price an order may fill, in basis points, 10 to 100. Default 50.
coinstringyesThe 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