Trade crypto perpetuals and spot tokens on Nado DEX (Ink blockchain). Real-time orderbook via WebSocket, position and PnL tracking, NLP vault management, multi-subaccount support, and interactive shell.
Trade crypto perpetual futures and spot tokens on the Nado Protocol — a decentralized derivatives exchange on the Ink blockchain.
This skill enables you to:
which nado
If not found, install it:
bun install -g @nadohq/nado-cli
# or
npm install -g @nadohq/nado-cli
Or run without installing:
bunx @nadohq/nado-cli --help
# or
npx @nadohq/nado-cli --help
nado --version
nado --help
Nado CLI resolves settings with this precedence: CLI flags > environment variables > config file > defaults.
Create ~/.config/nado/config.toml:
[default]
data_env = "nadoMainnet" # nadoMainnet | nadoTestnet
subaccount_name = "default"
[credentials]
private_key = "0x..."
subaccount_owner = "0x..." # only needed when using a linked signer
Or use the interactive configurator:
nado auth set
export PRIVATE_KEY=0x...your_private_key...
export DATA_ENV=nadoMainnet
| Variable | Description |
|---|---|
PRIVATE_KEY | Wallet private key |
DATA_ENV | nadoMainnet or nadoTestnet |
SUBACCOUNT_OWNER | Explicit subaccount owner address |
SUBACCOUNT_NAME | Subaccount name (default: "default") |
RPC_URL | Custom RPC endpoint |
NADO_FORMAT | Default output format: table or json |
For the best trading experience, set up a linked signer so the CLI can sign transactions without your main wallet key:
nado setup
The wizard offers two methods:
The hot signer key is saved to ~/.config/nado/config.toml and used for all future signing.
Spot products have even IDs (0, 2, 4…). Perp products have odd IDs (1, 3, 5…). Product 0 is USDT0 (the quote token).
Markets can be referenced by symbol (BTC, ETH), full name (BTC-PERP, ETH), or numeric product ID. The long/short commands auto-resolve to perp markets; buy/sell auto-resolve to spot markets.
nado market list # List all product IDs and names
nado auth set # Interactive credential setup
nado auth set private-key 0x... # Set a single credential
nado auth set owner 0x... # Set subaccount owner
nado auth set network nadoTestnet # Switch network
nado auth whoami # Show current identity and config
nado auth link-signer <address> # Link a signer for 1-click trading
nado setup # 1-click trading setup wizard
nado market list # List all available markets
nado market price BTC # Best bid/ask for one market
nado market prices BTC ETH SOL # Bid/ask for multiple markets
nado market orderbook BTC --depth 20 # Orderbook depth
nado market orderbook BTC --depth 20 -w # Watch orderbook in real-time (WebSocket)
nado market candles BTC --period 3600 --limit 10 # 1h OHLCV candles
nado market funding BTC # Current funding rate
nado market tickers # 24h tickers for all markets
nado market tickers --market perp # Perp tickers only
All account commands use your configured wallet. Override with --owner <address>.
nado account summary # Balances, health, positions
nado account positions # Open perp positions (cross + isolated)
nado account orders # Open orders across all markets
nado account orders BTC ETH # Open orders filtered by market (matches both spot and perp)
nado account history --limit 50 # Recent filled/cancelled orders
nado account history --product-ids BTC,ETH # Filter history by market
nado account fees # Maker/taker fee rates
nado account stats # 30-day trading statistics
nado account stats --days 7 # Weekly stats
nado trade long BTC 0.01 # Market long BTC-PERP
nado trade short ETH 0.5 -p 2500 # Limit short ETH-PERP @ $2500
nado trade long SOL 10 -m isolated --leverage 5 # 5x isolated long
nado trade short BTC 0.01 --tif post_only -p 70000 # Post-only limit
nado trade long BTC 0.01 --tp 75000 --sl 60000 # Long with inline TP/SL
nado trade buy BTC 0.1 # Market buy BTC spot
nado trade sell ETH 1.0 # Market sell ETH spot
nado trade buy BTC 0.05 -p 65000 # Limit buy BTC spot @ $65000
nado trade sell ETH 2.0 --no-borrow # Sell without borrowing
nado trade tp BTC 75000 # Take-profit on BTC position (full close)
nado trade sl BTC 60000 # Stop-loss on BTC position (full close)
nado trade tp BTC 75000 0.005 # TP on partial amount
nado trade sl BTC 60000 0.005 -p 59500 # SL with stop-limit price
# Close positions
nado trade close BTC # Close a position
nado trade close-all # Close all positions
nado trade close-all --side long # Close only long positions
nado trade close-all --product-ids BTC,ETH # Close specific markets
# Cancel orders
nado trade cancel BTC <digest> # Cancel specific order by digest
nado trade cancel-all BTC # Cancel all orders on a market
# Cancel trigger orders
nado trade cancel-trigger BTC <digest> # Cancel specific trigger order
nado trade cancel-trigger-all BTC # Cancel all trigger orders on a market
# Atomic cancel + place
nado trade cancel-and-place BTC long 0.01 --cancel-digests <digest> --cancel-market BTC -p 65000
# TWAP execution
nado trade twap BTC long 0.1 10 # TWAP long 0.1 BTC over 10 minutes
nado trade twap ETH short 1.0 30 --interval 60 # TWAP short with 60s intervals
# Trigger orders (stop-loss / take-profit)
nado trade trigger BTC long 0.01 --trigger-price 60000 --trigger-type oracle_price_below
nado trade trigger ETH short 0.5 --trigger-price 4000 --trigger-type oracle_price_above -p 3990
nado funds deposit 1000 # Deposit 1000 USDT0 into subaccount
nado funds withdraw 500 # Withdraw 500 USDT0 to wallet
nado funds transfer 200 --from default --to sub2 # Transfer between subaccounts
nado nlp info # Vault pool info and current state
nado nlp balance # Your locked/unlocked NLP balances
nado nlp mint 1000 # Deposit 1000 USDT0 to mint NLP tokens
nado nlp burn 500 # Burn 500 NLP to withdraw USDT0
nado nlp snapshots # Historical vault snapshots (daily)
nado nlp snapshots -g 3600 -l 24 # Hourly snapshots, last 24
nado shell
Starts an interactive REPL with tab completion and persistent history. Commands are the same as the CLI but without the nado prefix:
nado> market price BTC
nado> account summary
nado> trade long ETH 0.1
nado> help
nado> exit
Shell-specific commands: help, clear, exit/quit.
| Option | Description |
|---|---|
--format <format> | Output format: table or json |
--network <network> | Network: nadoMainnet or nadoTestnet |
--owner <address> | Subaccount owner address |
--subaccount <name> | Subaccount name |
-y, --force | Skip confirmation prompts |
--dry-run | Show what would happen without executing |
-h, --help | Show help |
Output defaults to table when running in a terminal (TTY) and json when piped. Override explicitly:
nado market price BTC # Table (default in terminal)
nado market price BTC --format json # Force JSON
nado market price BTC --format json | jq .bid # Pipe-friendly
When a user needs to set up trading, guide them through this process:
nado auth whoami to see current configurationnado setup for the full 1-click trading wizard, or nado auth set for manual configurationPRIVATE_KEY to your wallet's private key (simple but stores main key)nado setup to create a hot signer key linked to your subaccount — your main wallet key is never stored~/.config/nado/config.toml contains sensitive credentialsExample prompt to user:
To trade on Nado, you need to configure a signing key. The recommended approach:
- Run
nado setupand follow the interactive wizard- Choose "Deterministic" to derive the same signer the web app uses, or "Generate new" to create a fresh key
- Verify with
nado auth whoamiWould you like me to walk you through this?
Run nado trade trigger --help to see all valid --trigger-type values (e.g. oracle_price_above, oracle_price_below). The CLI validates the choice automatically.
nado account summary # Overall health, balances, margin
nado account positions # All open perp positions with PnL
nado account orders # All resting limit orders
nado account fees # Current fee tier
# Open 5x isolated long with inline TP/SL (single command)
nado trade long BTC 0.01 -m isolated --leverage 5 --tp 75000 --sl 58000
# Or set TP/SL separately on an existing position
nado trade long BTC 0.01 -m isolated --leverage 5
nado trade sl BTC 58000
nado trade tp BTC 75000
nado nlp info # Check current vault state
nado nlp mint 5000 # Deposit 5000 USDT0
nado nlp balance # Verify your NLP balance and lock status
nado nlp snapshots # Track vault performance over time