KerbTape
  1. Docs
  2. The terminal

The command line

Every command the terminal's command bar takes, generated from the code.

On this page

The command bar sits above the ticket. Press ` or : to focus it from anywhere (on a phone, open Command line on the Trade tab). It takes Insilico's command grammar plus equity and session commands, and hotkeys run the same strings. Type help or help <command> in the terminal for a reminder.

The command bar with a typed order and the preview below it listing the resolved size in dollars and units.
Every command shows a preview of exactly what it sends.

Preview and confirm#

Every command is parsed as you type and shows a preview: the dollars and units of everything it would send (repeats multiplied out). The command needs an explicit confirm, and a hotkey can't send it at all, when it:

  • flips a position, in one order or across statements;
  • adds more exposure than the cap ($25,000 or 25% of account value, whichever is lower, unless you changed it);
  • repeats more than 10 times;
  • sizes a high-priced market in whole units worth $5,000 or more (buy 100 sp500);
  • is a pair whose legs differ by more than 3× in dollars;
  • can't be priced (an opening order with no live price).

Each statement is checked again right before it is sent, against the live position, price and account value. The same cap also applies across commands: what you sent without a confirm in the last 60 seconds counts against it.

Sizes, prices and times#

Sizes
WriteMeans
100100 units of the market
1000$ · $1000 · 10k$That many dollars of notional
50%50% of the position this order reduces (always reduce-only; with no position it asks for %eq)
10%eq10% of account value as notional
50%pos50% of the current position
risk 0.5% · risk 100$Sized so that hitting the stop loses that much (a stop is required)
$sizeYour current position size on that market
Prices (after at, from or to)
WriteMeans
187.5An absolute price
+1 · -0.5%The mid plus or minus dollars or percent
bid ask mid mark oracle lastThat price, optionally with an offset (ask-0.05)
$entry · $clickYour entry price; the last price you clicked on the chart
bestA post-only limit at your own side of the book

Stops and TP levels: a plain % is a distance from the entry (stop 1% is 1% on the losing side); a signed number is an offset from the entry; a plain number is a price. A price more than 50% from the mark is refused with "did you mean stop 1.5%?" (add abs if you mean it); between 25% and 50% you get a warning.

Times: durations 500ms, 30s, 15m, 2h, 1d. Times of day with a zone: 14:30et, 09:00kst, 15:30jst, 20:00utc (also ct, hkt, sgt, uk, cet, ist). A time with no zone uses your browser's.

Markets: a ticker or coin in any case; a market you don't name is the desk's selected one.

Every command#

42 commands, plus the short forms b (buy), ice (iceberg), leverage (lev), s (sell), sl (stop), trailing (trail). This table is generated from the terminal's code.

Orders#

CommandWhat it doesExamples
buyalso b A long order. With no price it is a market order (IOC within 0.5% of the mid unless you set slippage); with `at` it is a limit; with `best` a post-only limit at your side of the book.buy <size> [sym] [at <price>] [stop] [tp] buy 100 nvda buy 1000$ at -0.2% buy risk 0.5% at 186 stop 184 tp 190 194 buy 10%eq best post
sellalso s A short order, or a reduction of a long. Same options as the long side.sell <size> [sym] [at <price>] [stop] [tp] sell 50 at +1% reduce sell 100% (your whole long, reduce-only) sell 5000$ stop 1.5% tp 2% 4%
long Another word for the long-side order command.same as buy
short Another word for the short-side order command.same as sell

Exits#

CommandWhat it doesExamples
stopalso sl A stop on your position (or part of it). `trigger` makes it a stop-limit; `on last` or `on oracle` watches that price in the tab instead of Hyperliquid's mark trigger.stop [at <price>] (position stop) stop at -1% (position stop) stop sell 10 nvda at 180 stop at 179 trigger 180 (stop-limit) stop at 180 on oracle
tp A TP order: it closes your position (or part of it) at a price in your favour, or a % from entry.take profit at <price>
trailalso trailing A trailing stop on your position, as a distance in % or $; on mark it is a native Hyperliquid stop that the tab ratchets.trail 1% (trailing stop) trail 1% trail nvda 2.5 activate 195

Algos#

CommandWhat it doesExamples
chase A post-only order that follows the best bid or ask until it fills, up to an optional distance cap.chase buy|sell <size> [to 0.1%] chase buy 5000$ to 0.1% chase sell 50% reduce chase buy 100 aggr chase cancel [keep]
stalk Rests a set number of ticks, % or $ away from the touch and keeps that distance.stalk buy|sell <size> <offset> [ticks] [trail] stalk buy 100 5 ticks trail stalk sell 50 0.1% maintain
scale Splits the size into 2–100 limit orders between two prices, evenly or bunched.scale buy|sell <size> into N from A to B scale buy 10000$ into 10 from -0.25% to -1% cubic 0.6 linear 1
swarm Sends all lots at once as IOC orders, optionally with random lot sizes.swarm buy|sell <size> into N
twap Slices the size over a duration (one lot per 30 s by default), with optional jitter and price bounds.twap buy|sell <size> over 30m twap sell 100000$ into 60 over 30m jitter 20% irregular bounds 180 200 pause twap chase buy 10 over 1h timeout 50% next twap buy 20000$ nvda over 30m around cash open
icebergalso ice Shows one slice of the size at a limit and refills it as it fills.iceberg buy|sell <size> at <price> show N iceberg buy 1000 nvda at 186.5 show 50 variance 20%

Pairs and baskets#

CommandWhat it doesExamples
pair A long leg and a short leg, sized by ratio, beta or equal notional, legged passively and hedged as fills arrive.pair long A short B 10000$ [ratio 1:10] pair long skhx short skhy 10000$ ratio 1:10 pair long nvda short sp500 20000$ beta 1.8 1 … passive skhy timeout 60s nounwind
basket Several long and short legs from one notional, split by weight.basket 20000$ long A B short C basket 30000$ long mu sndk short smh 2 chase

Session#

CommandWhat it doesExamples
at `at reopen <order>` fires the order when real pricing resumes for that market.at reopen <order>
flatten Closes positions at market a set number of minutes before their market reopens or closes.flatten before reopen 15m flatten before reopen 15m flatten skhx before reopen 10m flatten all before close 5m

Conditions#

CommandWhat it doesExamples
if Runs an order when up to 5 conditions hold (price, ratio, candle close, time, session event).if <cond> [and|or …] then <order> if nvda > 200 then buy 10 nvda if skhy/skhx < 0.13 then pair … if nvda 5m close > 190 and time > 14:30et then … if nvda reopens then …

Grid, carry, mirror#

CommandWhat it doesExamples
grid Post-only orders on N levels between two prices; each fill places the opposite order one level away. grid btc 95000-105000 20 levels 50$ each … geo long stop 90000 tp 110000 max 50 cycles grid cancel btc grid flatten btc
carry Long spot and short perp (or two perps) on the same asset, with the funding and cost shown first. carry hype 5000$ (long spot, short perp) carry io:nvda 2000$ vs xyz:nvda chase 0.2% timeout 20s carry close hype
mirror Your own order, at your size, in the same direction as a public address's latest move. mirror 0x<40 hex> nvda 250$ stop 2% mirror 0x… nvda (your default size) … stale (allow an old event)
opposite Like mirror, in the other direction. opposite 0x<40 hex> nvda 2%eq the other direction of what the address did, at your size

Manage#

CommandWhat it doesExamples
cancel Cancels orders: this market's, all, by side, stops, the top/bottom N, the oldest/newest N, or engine algos only.cancel [all|buys|sells|stops|top N] cancel cancel all cancel buys nvda cancel stops cancel top 5 cancel algos [stop too]
close Closes a position (or a share of it) with a reduce-only market order.close [sym] [50%] close close nvda 50% close all close long
reverse Flips the position at market. Always asks to confirm.flip the position
nuke `nuke positions` closes every position; `nuke orders` cancels every order and algo.nuke positions|orders
levalso leverage Sets leverage on a market, optionally cross or isolated.lev N [sym]

Move#

CommandWhat it doesExamples
bump Moves your resting limit orders by $ or %. Paused at launch.bump [sym|all] [buys|sells] [top|bottom N] <+x | -x%> bump +0.5 bump nvda buys -1% bump sells top 3 +0.2 bump all +1 post (stops and algo-managed orders are never moved)
amend Moves one resting limit order to a new price. Paused at launch.amend <order id> to <price> amend 123456 to 187.5 amend 123456 +0.5 amend 123456 -0.1% post

Scripting#

CommandWhat it doesExamples
set Stores a value in a variable (`@name`), for sizes, prices or any text.set @name value
unset Removes a variable.unset @name
print Shows a variable, or all of them.print @name|all
alias Names a command so a short word runs it; extra words are appended.alias name "command"
unalias Removes an alias.unalias name
tasks Lists running scripts that have a sleep or a repeat.running scripts
kill Stops a running script, or all of them.kill <id>|all
sleep Waits before the next statement (10 minutes at most).sleep 500ms|1s|2m
repeat Runs a block up to 100 times; blocks can nest.repeat N (…)

Keys and help#

CommandWhat it doesExamples
bind Binds a key combo to a command, for this market or everywhere (`global`).bind <keys> "command"
unbind Removes a binding, or all of them.unbind <keys>
switch Changes the desk's market. Typing a market name alone does the same.switch <sym>
help Shows help in the terminal, for everything or one command.help [command]

Scripting#

  • ; runs the next statement after this one is sent (it doesn't wait for fills); & runs statements side by side: buy 1000$ nvda & sell 1000$ sp500.
  • sleep waits (10 minutes at most); repeat N ( … ) loops up to 100 times and can nest.
  • set @big 5000$ stores a value; @big is then read right before each statement runs.
  • alias bigbuy "buy @big at -0.2%" makes a short word; extra words are appended (bigbuy skhx).
  • tasks lists scripts that are sleeping or repeating; kill <id> or kill all stops them.
  • A refused order stops the rest of its chain.

Not supported yet#

  • Several accounts at once (one active account; switch with Trade as).
  • Moving orders from the server runner. Moving is also paused at launch (Moving orders).

Keys for commands: Hotkeys reference. What each order type does: Order types and algos.

Updated . These pages describe what the product does. They are not investment advice and say nothing about where any price goes next.