Widgets
Command Line

Command Line

The Command Line is a keyboard-first order entry system. Type trading commands in a concise shorthand syntax to place orders, manage positions, and control the terminal without touching the mouse.

Features

  • Shorthand Syntax - Place orders in 3-5 keystrokes (e.g. l btc 10k)
  • Advanced Order Types - TWAP, Scale, and Chase orders via modifiers
  • Auto-Complete - Tab completion for commands and symbols
  • Command History - Arrow keys to recall previous commands
  • Variables - Dynamic placeholders like {last} (last news coin) and {size1}
  • Command Chaining - Execute multiple commands with semicolons
  • Custom Aliases - Define your own shortcuts in Settings
  • Built-In Help - Type ? for a full command reference

Modes

The Command Line works in two modes:

Bar Mode (Default)

  • Appears as a slim bar at the bottom of the terminal
  • Press / to open, Escape to close
  • Includes an FPS counter on the right
  • Shows the last news coin for quick reference

Widget Mode

  • Add as a standalone widget via Add Widget
  • Persistent input field with a scrollable command log
  • Results display inline instead of as notifications

Command Syntax

All trading commands follow the pattern:

{action} {symbol} {size} [price] [modifiers]

Actions

CommandAliasesDescription
llong, buy, bOpen long / buy
sshort, sellOpen short / sell
cclose, xClose position
cancelCancel open orders
slstoploss, stopSet stop loss

Size Formats

Sizes are specified in USDT and automatically converted to base asset quantity:

FormatExampleValue
{n}k10k10,000 USDT
{n}m1.5m1,500,000 USDT
{n}%50%50% of available balance
Plain number50005,000 USDT

Price Formats

FormatExampleDescription
Absolute42000Exact price
Relative-1%1% below current mark price
Named (any of)p42000 / p_42000 / @42000Explicit price — all three are equivalent. Use when another arg might be a bare number (TWAP, Scale)
OmittedMarket order

Order Examples

Market Orders

l btc 10k          # Long BTC $10,000 at market
s eth 5k           # Short ETH $5,000 at market

Limit Orders

l btc 10k 42000    # Long BTC $10k at $42,000 (bare price)
l btc 10k p42000   # Same — `p` prefix, no separator
l btc 10k @42000   # Same — `@` prefix
l btc 10k p_42000  # Same — `p_` prefix (legacy form)
s eth 5k -1%       # Short ETH $5k at 1% below mark
l sol 1k p180      # Long SOL $1k at $180

All four price forms are equivalent. Use the prefixed forms (p/p_/@) when another arg in the command might be ambiguous with a bare number — that's why TWAP and Scale require a prefix.

Close Positions

c btc              # Close 100% of BTC position
c btc 50%          # Close 50% of BTC position
c all              # Close all positions
x eth 25%          # Close 25% of ETH position

Cancel Orders

cancel btc         # Cancel all BTC orders
cancel all         # Cancel all open orders

Stop Loss

sl btc -2%         # Stop loss 2% below mark, close 100%
sl btc -3% 50%     # Stop loss 3% below mark, close 50%
sl eth 2% 25%      # Stop loss 2% above mark (for shorts), close 25%

Advanced Order Types

TWAP (Time-Weighted Average Price)

Split a large order into smaller slices executed over time:

l btc 100k twap_20s              # $100k in slices every 20 seconds
l btc 400k twap_20s max_10k      # Max $10k per slice
l btc 100k twap_5m until_30m     # Every 5 minutes for 30 minutes
l btc 100k twap_5m maker <70000  # Post-only, stop above $70k
c btc twap_20s                   # Close via TWAP
ModifierDescription
twap_{N}sInterval in seconds
twap_{N}mInterval in minutes
max_{size}Maximum size per slice
until_{N}m or until_{N}hDuration limit
<{price}Price limit (stop if exceeded)
makerPost-only slices

Scale Orders

Place multiple limit orders at spaced price levels:

l btc 10k scale_5_2% p42000     # 5 orders, 2% apart, starting at $42k
s eth 50k scale_10_1% @4200     # 10 orders, 1% apart, starting at $4.2k
l btc 10k scale_5_2% p_42000    # Legacy `p_` form still works

Total size is split evenly across all orders.

Chase Orders

Continuously re-price at best bid/ask for passive fills:

l btc 10k chase                  # Chase at best bid
s eth 5k chase                   # Chase at best ask
l btc 50k chase <70000           # Chase with price limit
c btc chase                      # Close position via chase

The chase engine automatically adjusts the limit price as the orderbook moves and tracks partial fills.

Variables

Dynamic placeholders are replaced at execution time:

VariableDescription
{last}Last coin mentioned in the news feed
{coin}Currently active symbol in the header
{symbol}Same as {coin}
{size1} - {size4}Size presets from Settings > Trading
l {last} {size1}     # Long the last news coin with preset size 1
s {coin} 10k         # Short the active symbol

Command Chaining

Execute multiple commands in sequence using semicolons:

l btc 5k; l eth 5k; l sol 5k     # Open three positions
cancel all; c all                  # Cancel orders then close all
l btc 10k; wait 500; s btc 10k   # Buy, wait 500ms, then sell

The wait {ms} command pauses between chained commands. Defaults to 500ms if no value is given.

Command Aliases

Define custom shortcuts in Settings > Trading > Command Aliases:

AliasCommandUsage
yolol {last} {size4}Type yolo to long the last news coin with your largest preset
snipel {last} {size1} chaseChase-buy the latest coin

The alias replaces the first word; remaining arguments pass through.

Built-In Help

Type ? in the command line for a full reference overview. Search for specific topics:

? twap           # TWAP documentation
? chase          # Chase order docs
? leverage       # How to set leverage
? hotkeys        # Keyboard shortcuts

In widget mode, help results display inline in the command log. In bar mode, they appear as a notification.

Keyboard Shortcuts

KeyAction
/Open command line (bar mode)
EscapeClose command line (bar mode) or cancel all orders
Arrow Up/DownNavigate command history
TabAuto-complete suggestion or normalize symbol

The command line supports live syntax validation. The input text turns red if the command is unrecognized.

Troubleshooting

Command Not Recognized

  • Check spelling and syntax (e.g. l not L)
  • Verify the symbol exists on the active exchange
  • Type ? for the full command reference

Order Failed

  • Ensure exchange API credentials are configured
  • Check for sufficient balance
  • Verify the size meets the exchange minimum

Variables Not Resolving

  • {last} requires a coin to have appeared in the news feed
  • Size presets must be configured in Settings > Trading