[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M777Z3JSQ6Z1MBPXGBBF93VF":3,"skill-same:01M777Z3JSQ6Z1MBPXGBBF93VF":47},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":16,"categories":17,"keywords":18,"publishedAt":19,"linkOnly":20,"markdownContent":21,"markdownBody":22,"frontMatter":23,"refName":24,"commitSha":25,"skillDirectory":26,"forksCount":27,"repositoryHtmlUrl":28,"repositoryHomepageUrl":6,"ownerHtmlUrl":29,"ownerBlogUrl":30,"ownerDescription":31,"updatedAt":32,"install":33,"resources":46},"01M777Z3JSQ6Z1MBPXGBBF93VF","supurr",null,"Backtest, deploy, and monitor trading bots on Hyperliquid. Supports Grid, DCA, and Spot-Perp Arbitrage strategies across Native Perps, Spot markets (USDC\u002FUSDH), and HIP-3 sub-DEXes.","javimosch\u002Fopen-claw-skills","javimosch","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F12900508?v=4","01M6D3F2AS6PV75ET9PZ1QGP8J","Javier Leandro Arancibia","01M75B8NCTAJG9WH5YNZH7C3D8",0,"MIT","https:\u002F\u002Fgithub.com\u002Fjavimosch\u002Fopen-claw-skills\u002Fblob\u002Fmain\u002Fskills\u002Fyashagarwal1994\u002Fsupurr-hyperliquid\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: supurr\ndescription: Backtest, deploy, and monitor trading bots on Hyperliquid. Supports Grid, DCA, and Spot-Perp Arbitrage strategies across Native Perps, Spot markets (USDC\u002FUSDH), and HIP-3 sub-DEXes.\n---\n\n# Supurr CLI — Complete Command Reference\n\n> **For LLMs**: This is the authoritative reference. Use exact syntax. Config files are in `~\u002F.supurr\u002Fconfigs\u002F`.\n\n---\n\n## Quick Reference\n\n| Command                | Purpose                       |\n| ---------------------- | ----------------------------- |\n| `supurr init`          | Setup wallet credentials      |\n| `supurr whoami`        | Show current wallet           |\n| `supurr new grid`      | Generate grid strategy config |\n| `supurr new arb`       | Generate spot-perp arb config |\n| `supurr new dca`       | Generate DCA strategy config  |\n| `supurr configs`       | List saved configs            |\n| `supurr config \u003Cname>` | View config details           |\n| `supurr backtest`      | Run historical simulation     |\n| `supurr deploy`        | Deploy bot to production      |\n| `supurr monitor`       | View active bots              |\n| `supurr history`       | View historical bot sessions  |\n| `supurr stop`          | Stop a running bot (signed)   |\n| `supurr prices`        | Debug price data              |\n| `supurr update`        | Update CLI to latest          |\n\n---\n\n## Global Options\n\n```bash\nsupurr --help              # Show all commands\nsupurr --version, -V       # Show CLI version\nsupurr -d, --debug         # Enable debug logging (any command)\n```\n\n---\n\n## 1. `supurr init` — Credential Setup\n\n```bash\n# Interactive\nsupurr init\n\n# Non-interactive\nsupurr init --address 0x... --api-wallet 0x...\n\n# Overwrite existing\nsupurr init --force\n```\n\n| Option                | Description                    |\n| --------------------- | ------------------------------ |\n| `-f, --force`         | Overwrite existing credentials |\n| `--address \u003Caddress>` | Wallet address (0x...)         |\n| `--api-wallet \u003Ckey>`  | API wallet private key         |\n\n---\n\n## 2. `supurr whoami` — Show Identity\n\n```bash\nsupurr whoami    # Shows: Address + masked key\n```\n\n---\n\n## 3. `supurr new \u003Cstrategy>` — Config Generator\n\nSupports three strategies: `grid`, `arb`, `dca`.\n\n```bash\nsupurr new grid [options]   # Grid trading\nsupurr new arb [options]    # Spot-perp arbitrage\nsupurr new dca [options]    # Dollar-cost averaging\n```\n\n---\n\n### 3a. `supurr new grid` — Grid Strategy\n\n#### Market Types\n\n| Type     | Quote    | Requires  | Example                                 |\n| -------- | -------- | --------- | --------------------------------------- |\n| `native` | USDC     | —         | `--asset BTC`                           |\n| `spot`   | Variable | `--quote` | `--asset HYPE --type spot --quote USDC` |\n| `hip3`   | Per-DEX  | `--dex`   | `--asset BTC --type hip3 --dex hyna`    |\n\n#### Grid Options\n\n| Option                  | Default       | Description                                    |\n| ----------------------- | ------------- | ---------------------------------------------- |\n| `-a, --asset \u003Csymbol>`  | `BTC`         | Base asset (BTC, ETH, HYPE, etc.)              |\n| `-o, --output \u003Cfile>`   | `config.json` | Output filename                                |\n| `--type \u003Ctype>`         | `native`      | Market type: native, spot, hip3                |\n| `--dex \u003Cdex>`           | —             | **Required for hip3**: hyna, xyz, km, vntl     |\n| `--quote \u003Cquote>`       | —             | **Required for spot**: USDC, USDE, USDT0, USDH |\n| `--mode \u003Cmode>`         | `long`        | Grid mode: long, short, neutral                |\n| `--levels \u003Cn>`          | `20`          | Number of grid levels                          |\n| `--start-price \u003Cprice>` | —             | Grid start price                               |\n| `--end-price \u003Cprice>`   | —             | Grid end price                                 |\n| `--investment \u003Camount>` | `1000`        | Max investment in quote currency               |\n| `--leverage \u003Cn>`        | `2`           | Leverage (1 for spot)                          |\n| `--testnet`             | false         | Use Hyperliquid testnet                        |\n\n#### Grid Examples\n\n```bash\n# Native Perp (BTC-USDC)\nsupurr new grid --asset BTC --levels 4 --start-price 88000 --end-price 92000 --investment 100 --leverage 20\n\n# USDC Spot (HYPE\u002FUSDC)\nsupurr new grid --asset HYPE --type spot --quote USDC --levels 3 --start-price 29 --end-price 32 --investment 100\n\n# Non-USDC Spot (HYPE\u002FUSDH)\nsupurr new grid --asset HYPE --type spot --quote USDH --levels 3 --start-price 29 --end-price 32 --investment 100\n\n# HIP-3 (hyna:BTC)\nsupurr new grid --asset BTC --type hip3 --dex hyna --levels 4 --start-price 88000 --end-price 92000 --investment 100 --leverage 20\n```\n\n#### HIP-3 DEXes\n\n| DEX    | Quote | Assets                              |\n| ------ | ----- | ----------------------------------- |\n| `hyna` | USDE  | Crypto perps (BTC, ETH, HYPE, etc.) |\n| `xyz`  | USDE  | Stocks (AAPL, TSLA, etc.)           |\n| `km`   | USDT  | Kinetiq Markets                     |\n| `vntl` | USDE  | AI\u002Ftech tokens                      |\n\n---\n\n### 3b. `supurr new arb` — Spot-Perp Arbitrage Strategy\n\nGenerates a config that simultaneously trades the **spot** and **perp** legs of the same asset, capturing spread differentials.\n\n> **Market Constraint**: Only assets that have **both** a spot token AND a perp market on Hyperliquid are eligible. The CLI auto-resolves the spot counterpart.\n\n#### Spot Resolution Logic\n\nHyperliquid spot tokens for major assets use a `U`-prefix naming convention:\n\n| You pass `--asset` | CLI resolves spot token | Spot pair  | Perp pair  |\n| ------------------ | ----------------------- | ---------- | ---------- |\n| `BTC`              | `UBTC`                  | UBTC\u002FUSDC  | BTC perp   |\n| `ETH`              | `UETH`                  | UETH\u002FUSDC  | ETH perp   |\n| `SOL`              | `USOL`                  | USOL\u002FUSDC  | SOL perp   |\n| `ENA`              | `UENA`                  | UENA\u002FUSDC  | ENA perp   |\n| `WLD`              | `UWLD`                  | UWLD\u002FUSDC  | WLD perp   |\n| `MON`              | `UMON`                  | UMON\u002FUSDC  | MON perp   |\n| `MEGA`             | `UMEGA`                 | UMEGA\u002FUSDC | MEGA perp  |\n| `ZEC`              | `UZEC`                  | UZEC\u002FUSDC  | ZEC perp   |\n| `XPL`              | `UXPL`                  | UXPL\u002FUSDC  | XPL perp   |\n| `PUMP`             | `UPUMP`                 | UPUMP\u002FUSDC | PUMP perp  |\n| `HYPE`             | `HYPE` (exact name)     | HYPE\u002FUSDC  | HYPE perp  |\n| `TRUMP`            | `TRUMP` (exact name)    | TRUMP\u002FUSDC | TRUMP perp |\n| `PURR`             | `PURR` (exact name)     | PURR\u002FUSDC  | PURR perp  |\n| `BERA`             | `BERA` (exact name)     | BERA\u002FUSDC  | BERA perp  |\n\nResolution order: try `U{ASSET}` first → fallback to exact name → fail if neither exists.\n\n> **⚠️ U-prefix Hazard**: Do NOT pass asset names that already start with `U` (e.g., `UNIT`). The CLI will prepend another `U` and look for `UUNIT`, which doesn't exist. Always use the **perp ticker name** (e.g., `BTC`, not `UBTC`).\n\n#### Arb Options\n\n| Option                 | Default            | Description                                  |\n| ---------------------- | ------------------ | -------------------------------------------- |\n| `-a, --asset \u003Csymbol>` | `BTC`              | Perp asset name (BTC, ETH, HYPE, etc.)       |\n| `--amount \u003Cusdc>`      | `100`              | Order amount in USDC per leg                 |\n| `--leverage \u003Cn>`       | `1`                | Leverage for perp leg                        |\n| `--open-spread \u003Cpct>`  | `0.003`            | Min opening spread (0.003 = 0.3%)            |\n| `--close-spread \u003Cpct>` | `-0.001`           | Min closing spread (-0.001 = -0.1%)          |\n| `--slippage \u003Cpct>`     | `0.001`            | Slippage buffer for both legs (0.001 = 0.1%) |\n| `-o, --output \u003Cfile>`  | `{asset}-arb.json` | Output filename                              |\n| `--testnet`            | false              | Use Hyperliquid testnet                      |\n\n#### Arb Examples\n\n```bash\n# BTC spot-perp arb (default $100\u002Fleg)\nsupurr new arb --asset BTC\n\n# HYPE arb with $50 per leg, 2x leverage on perp\nsupurr new arb --asset HYPE --amount 50 --leverage 2\n\n# ETH arb with tighter spreads\nsupurr new arb --asset ETH --open-spread 0.002 --close-spread -0.0005 --slippage 0.0005\n\n# SOL arb on testnet\nsupurr new arb --asset SOL --testnet\n```\n\n> **Balance Requirement**: Arb bots require USDC balance in **both** Spot and Perps wallets on Hyperliquid, since the bot trades on both sides simultaneously.\n\n---\n\n### 3c. `supurr new dca` — DCA Strategy\n\nGenerates a Dollar-Cost Averaging config that opens positions in steps when price deviates, then takes profit on the averaged entry.\n\n#### DCA Options\n\n| Option                       | Default       | Description                                        |\n| ---------------------------- | ------------- | -------------------------------------------------- |\n| `-a, --asset \u003Csymbol>`       | `BTC`         | Base asset                                         |\n| `--mode \u003Cmode>`              | `long`        | Direction: long or short                           |\n| `--type \u003Ctype>`              | `native`      | Market type: native, spot, hip3                    |\n| `--trigger-price \u003Cprice>`    | `100000`      | Price to trigger base order                        |\n| `--base-order \u003Csize>`        | `0.001`       | Base order size in base asset                      |\n| `--dca-order \u003Csize>`         | `0.001`       | DCA order size in base asset                       |\n| `--max-orders \u003Cn>`           | `5`           | Max number of DCA orders                           |\n| `--size-multiplier \u003Cx>`      | `2.0`         | Size multiplier per DCA step                       |\n| `--deviation \u003Cpct>`          | `0.01`        | Price deviation % to trigger first DCA (0.01 = 1%) |\n| `--deviation-multiplier \u003Cx>` | `1.0`         | Deviation multiplier for subsequent steps          |\n| `--take-profit \u003Cpct>`        | `0.02`        | Take profit % from avg entry (0.02 = 2%)           |\n| `--stop-loss \u003Cpnl>`          | —             | Optional stop loss as absolute PnL threshold       |\n| `--leverage \u003Cn>`             | `2`           | Leverage (1 for spot)                              |\n| `--restart`                  | false         | Restart cycle after take profit                    |\n| `--cooldown \u003Csecs>`          | `60`          | Cooldown between cycles in seconds                 |\n| `-o, --output \u003Cfile>`        | `config.json` | Output filename                                    |\n| `--testnet`                  | false         | Use Hyperliquid testnet                            |\n\n#### DCA Examples\n\n```bash\n# BTC DCA long, trigger at $95k\nsupurr new dca --asset BTC --trigger-price 95000\n\n# ETH DCA short with custom deviation\nsupurr new dca --asset ETH --mode short --deviation 0.02\n\n# HYPE DCA with auto-restart\nsupurr new dca --asset HYPE --restart --cooldown 120 --take-profit 0.03\n\n# DCA on spot market\nsupurr new dca --asset HYPE --type spot --quote USDC --trigger-price 25\n```\n\n---\n\n## 4. `supurr configs` — List Saved Configs\n\n```bash\nsupurr configs    # Lists all configs in ~\u002F.supurr\u002Fconfigs\u002F\n```\n\n**Output:**\n\n```\n📁 Configs (\u002FUsers\u002Fyou\u002F.supurr\u002Fconfigs):\n  btc-grid.json         grid     BTC-USDC\n  hype-usdc-spot.json   grid     HYPE-USDC\n  hyna-btc.json         grid     BTC-USDE\n```\n\n---\n\n## 5. `supurr config \u003Cname>` — View Config\n\n```bash\nsupurr config btc-grid        # View btc-grid.json\nsupurr config btc-grid.json   # Same\n```\n\n---\n\n## 6. `supurr backtest` — Run Backtest\n\n### Syntax\n\n```bash\nsupurr backtest -c \u003Cconfig> [options]\n```\n\n### Options\n\n| Option                | Description                              |\n| --------------------- | ---------------------------------------- |\n| `-c, --config \u003Cfile>` | **Required.** Config file (name or path) |\n| `-s, --start \u003Cdate>`  | Start date (YYYY-MM-DD)                  |\n| `-e, --end \u003Cdate>`    | End date (YYYY-MM-DD)                    |\n| `-p, --prices \u003Cfile>` | Use local prices file                    |\n| `-o, --output \u003Cfile>` | Save results to JSON                     |\n| `--no-cache`          | Disable price caching                    |\n\n### Examples\n\n```bash\n# By config name (looks in ~\u002F.supurr\u002Fconfigs\u002F)\nsupurr backtest -c btc-grid.json -s 2026-01-28 -e 2026-02-01\n\n# By full path\nsupurr backtest -c ~\u002F.supurr\u002Fconfigs\u002Fbtc-grid.json -s 2026-01-28 -e 2026-02-01\n\n# Save results\nsupurr backtest -c btc-grid.json -s 2026-01-28 -e 2026-02-01 -o results.json\n```\n\n### Archive Data Availability\n\n| Dex           | Asset Format           | Example            |\n| ------------- | ---------------------- | ------------------ |\n| `hyperliquid` | `BTC`, `HYPE`          | Native perp + Spot |\n| `hyna`        | `hyna:BTC`, `hyna:ETH` | HIP-3 DEX          |\n\n> **Note**: Archive data available from 2026-01-28 onwards.\n>\n> **Important**: Backtests use Supurr's price archive (tick-level) or a user-provided prices file (`-p`). Do **not** use Hyperliquid Info API mids\u002Fcandles for backtests; they don't provide tick-level historical data and will produce inaccurate results.\n\n---\n\n## 7. `supurr deploy` — Deploy Bot\n\n```bash\nsupurr deploy -c \u003Cconfig> [-s \u003Caddress> | -v \u003Caddress>]\n```\n\n| Option                       | Description                                             |\n| ---------------------------- | ------------------------------------------------------- |\n| `-c, --config \u003Cfile>`        | **Required.** Config file (name or path)                |\n| `-s, --subaccount \u003Caddress>` | Trade from a subaccount (validates master ownership)    |\n| `-v, --vault \u003Caddress>`      | Trade from a vault (validates you are the vault leader) |\n\n> **Subaccount vs Vault:**\n>\n> - **Subaccount** = personal trading account under your master wallet. Verified via `subAccounts` API (checks `master` field).\n> - **Vault** = shared investment pool you manage. Verified via `vaultDetails` API (checks `leader` field).\n> - Both set `vault_address` in the bot config on success.\n> - **Cannot use both** `--subaccount` and `--vault` simultaneously.\n\n### Examples\n\n```bash\n# Deploy from main wallet\nsupurr deploy -c btc-grid.json\n\n# Deploy from subaccount\nsupurr deploy -c btc-grid.json -s 0x804e57d7baeca937d4b30d3cbe017f8d73c21f1b\n\n# Deploy from vault (you must be the vault leader)\nsupurr deploy -c config.json --vault 0xdc89f67e74098dd93a1476f7da79747f71ccb5d9\n\n# HL: prefix is auto-stripped (copy-paste from Hyperliquid UI)\nsupurr deploy -c config.json -s HL:0x804e57d7baeca937d4b30d3cbe017f8d73c21f1b\n```\n\n**Output:**\n\n```\n✔ Loaded config for grid strategy\n✔ Subaccount verified: 0x804e57d7...\n✔ Bot deployed successfully!\n📦 Deployment Details\n  Bot ID:       217\n  Pod Name:     bot-217\n  Bot Type:     grid\n  Market:       BTC-USDC\n```\n\n### Gotchas\n\n| Issue                        | Solution                                                                   |\n| ---------------------------- | -------------------------------------------------------------------------- |\n| `HL:` prefix in address      | Auto-stripped — safe to paste from Hyperliquid explorer                    |\n| \"Subaccount not owned\"       | Ensure the subaccount's `master` matches your `supurr whoami` address      |\n| \"Vault not found\"            | Check the vault address exists on the correct network (mainnet vs testnet) |\n| \"Vault leader mismatch\"      | Only the vault leader can deploy — check `vaultDetails` API                |\n| `subAccounts` returns `null` | Normal — means no subaccounts exist for that address                       |\n\n---\n\n## 8. `supurr monitor` — View Active Bots\n\n### Syntax\n\n```bash\nsupurr monitor [options]\n```\n\n### Options\n\n| Option                   | Description                    |\n| ------------------------ | ------------------------------ |\n| `-w, --wallet \u003Caddress>` | Filter by wallet address       |\n| `--watch`                | Live mode (refreshes every 2s) |\n\n### Examples\n\n```bash\nsupurr monitor                 # List all active bots\nsupurr monitor --watch         # Live monitoring (Ctrl+C to exit)\nsupurr monitor -w 0x1234...    # Filter by wallet\n```\n\n**Output Columns:**\n\n- **ID** — Bot identifier\n- **Type** — Strategy (grid, dca, mm, arb)\n- **Market** — Trading pair (BTC-USDC, HYPE-USDH)\n- **Position** — Size + direction (L=Long, S=Short)\n- **PnL** — Total profit\u002Floss\n\n---\n\n## 9. `supurr history` — View Bot History\n\n```bash\nsupurr history             # Show last 20 bot sessions\nsupurr history -n 50       # Show last 50 bot sessions\n```\n\n| Option                | Default | Description            |\n| --------------------- | ------- | ---------------------- |\n| `-n, --limit \u003Ccount>` | `20`    | Number of bots to show |\n\n**Output Columns:**\n\n- **ID** — Bot identifier\n- **Market** — Trading pair (from `config.markets[0]`)\n- **Type** — Strategy (grid, dca, mm, arb)\n- **PnL** — Total profit\u002Floss (realized + unrealized)\n- **Stop Reason** — Why the bot stopped (`shutdown:graceful` → \"User stopped the bot Successfully\")\n\n---\n\n## 10. `supurr stop` — Stop Bot (Signature Auth)\n\nSigns `Stop \u003Cbot-id>` with your API wallet private key (EIP-191 personal_sign) and sends the signature to the bot API.\n\n```bash\nsupurr stop              # Interactive - select from list\nsupurr stop --id 217     # Stop specific bot by ID\n```\n\n| Option          | Description                            |\n| --------------- | -------------------------------------- |\n| `--id \u003Cbot_id>` | Bot ID to stop (from `supurr monitor`) |\n\n> **Crypto:** Uses `@noble\u002Fcurves\u002Fsecp256k1` + `@noble\u002Fhashes\u002Fsha3` (pure JS, no native deps). Signature format: `0x{r}{s}{v}` (65 bytes).\n\n---\n\n## 11. `supurr prices` — Debug Price Data\n\n```bash\nsupurr prices -a BTC                     # Fetch BTC prices (7 days)\nsupurr prices -a hyna:BTC --dex hyna     # HIP-3 prices\nsupurr prices -a HYPE -s 2026-01-28      # From specific date\n```\n\n| Option                 | Description                     |\n| ---------------------- | ------------------------------- |\n| `-a, --asset \u003Csymbol>` | **Required.** Asset symbol      |\n| `--dex \u003Cdex>`          | DEX name (default: hyperliquid) |\n| `-s, --start \u003Cdate>`   | Start date                      |\n| `-e, --end \u003Cdate>`     | End date                        |\n| `--no-cache`           | Disable caching                 |\n\n---\n\n## 12. `supurr update` — Self-Update\n\n```bash\nsupurr update    # Check and install latest version\n```\n\n---\n\n## Complete Workflows\n\n### Workflow 1: Grid — Backtest → Deploy → Monitor\n\n```bash\n# 1. Initialize (first time only)\nsupurr init --address 0x... --api-wallet 0x...\n\n# 2. Create config\nsupurr new grid --asset BTC --levels 4 --start-price 88000 --end-price 92000 --investment 100 --leverage 20 --output btc-grid.json\n\n# 3. Backtest\nsupurr backtest -c btc-grid.json -s 2026-01-28 -e 2026-02-01\n\n# 4. Deploy\nsupurr deploy -c btc-grid.json\n\n# 5. Monitor\nsupurr monitor --watch\n\n# 6. Stop when done\nsupurr stop --id \u003Cbot_id>\n```\n\n### Workflow 2: Arb — Setup → Deploy → Monitor\n\n```bash\n# 1. Initialize\nsupurr init --address 0x... --api-wallet 0x...\n\n# 2. Generate arb config (auto-resolves spot counterpart)\nsupurr new arb --asset BTC --amount 200 --leverage 1 --output btc-arb.json\n\n# 3. Review the generated config\nsupurr config btc-arb\n\n# 4. Ensure USDC balance in BOTH Spot and Perps wallets on Hyperliquid\n\n# 5. Deploy\nsupurr deploy -c btc-arb.json\n\n# 6. Monitor\nsupurr monitor --watch\n```\n\n### Workflow 3: DCA — Configure → Deploy\n\n```bash\n# 1. Create DCA config\nsupurr new dca --asset BTC --trigger-price 95000 --base-order 0.001 --max-orders 5 --take-profit 0.02 --output btc-dca.json\n\n# 2. Deploy\nsupurr deploy -c btc-dca.json\n\n# 3. Monitor\nsupurr monitor --watch\n```\n\n### Workflow 4: Test All Market Types\n\n```bash\n# Native Perp\nsupurr new grid --asset BTC --output native-btc.json\nsupurr backtest -c native-btc.json -s 2026-01-28 -e 2026-02-01\n\n# USDC Spot\nsupurr new grid --asset HYPE --type spot --quote USDC --output hype-usdc.json\nsupurr backtest -c hype-usdc.json -s 2026-01-30 -e 2026-01-31\n\n# Non-USDC Spot\nsupurr new grid --asset HYPE --type spot --quote USDH --output hype-usdh.json\nsupurr backtest -c hype-usdh.json -s 2026-01-30 -e 2026-01-31\n\n# HIP-3\nsupurr new grid --asset BTC --type hip3 --dex hyna --output hyna-btc.json\nsupurr backtest -c hyna-btc.json -s 2026-01-28 -e 2026-02-01\n```\n\n---\n\n## Config Storage\n\n```\n~\u002F.supurr\u002F\n├── credentials.json      # { address, private_key }\n├── configs\u002F              # Saved bot configs\n│   ├── btc-grid.json\n│   ├── hype-usdc.json\n│   └── ...\n└── cache\u002F                # Price data cache\n    └── hyperliquid\u002F\n        ├── BTC\u002F\n        └── HYPE\u002F\n```\n\n---\n\n## API Endpoints Used\n\n| Purpose       | Endpoint                                      | Auth              |\n| ------------- | --------------------------------------------- | ----------------- |\n| Bot Deploy    | `POST \u002Fbots\u002Fcreate\u002F\u003Cwallet>`                  | —                 |\n| Active Bots   | `GET \u002Fdashboard\u002Factive_bots`                  | —                 |\n| Bot History   | `GET \u002Fdashboard\u002Fuser_bots\u002F\u003Caddress>` (Python) | —                 |\n| Stop Bot      | `POST \u002Fbots\u002F\u003Cbot_id>\u002Fstop` (Node)             | EIP-191 signature |\n| Price Data    | `GET \u002Fprices?dex=X&asset=Y&start_time=Z`      | —                 |\n| Price Archive | `GET \u002F{dex}\u002F{asset}\u002F{date}.json`              | —                 |\n\n---\n\n## Troubleshooting\n\n| Issue                     | Solution                                                         |\n| ------------------------- | ---------------------------------------------------------------- |\n| \"Config not found\"        | Use `supurr configs` to list available configs                   |\n| \"No credentials\"          | Run `supurr init` first                                          |\n| \"0 prices fetched\"        | Check date range (data from 2026-01-28+)                         |\n| \"API wallet not valid\"    | Register API wallet on Hyperliquid first                         |\n| HIP-3 backtest fails      | Use format `--dex hyna --asset BTC`                              |\n| \"No spot market found\"    | Asset has no spot counterpart — arb not available for this asset |\n| Arb asset starts with `U` | Use the perp name (e.g., `BTC` not `UBTC`) — CLI adds `U` prefix |\n\n---\n\n# Appendix: Hyperliquid Info API\n\n> **Backtesting note**: This appendix is for live metadata and user state lookups. It is **not** a source of tick-level historical data for `supurr backtest`.\n\n> **Get address via**: `supurr whoami` — returns the configured wallet address.\n\nAll endpoints use `POST https:\u002F\u002Fapi.hyperliquid.xyz\u002Finfo` with `Content-Type: application\u002Fjson`.\n\n## Market Data (No Address Required)\n\n| Query            | Request Body                         |\n| ---------------- | ------------------------------------ |\n| All Mid Prices   | `{\"type\": \"allMids\"}`                |\n| Sub-DEX Prices   | `{\"type\": \"allMids\", \"dex\": \"hyna\"}` |\n| Perp Metadata    | `{\"type\": \"metaAndAssetCtxs\"}`       |\n| Spot Metadata    | `{\"type\": \"spotMeta\"}`               |\n| L2 Order Book    | `{\"type\": \"l2Book\", \"coin\": \"BTC\"}`  |\n| List HIP-3 DEXes | `{\"type\": \"perpDexs\"}`               |\n\n## User Data (Address Required)\n\n| Query           | Request Body                                                                   |\n| --------------- | ------------------------------------------------------------------------------ |\n| Perp Positions  | `{\"type\": \"clearinghouseState\", \"user\": \"0x...\"}`                              |\n| Spot Balances   | `{\"type\": \"spotClearinghouseState\", \"user\": \"0x...\"}`                          |\n| Open Orders     | `{\"type\": \"openOrders\", \"user\": \"0x...\"}`                                      |\n| Order History   | `{\"type\": \"historicalOrders\", \"user\": \"0x...\"}`                                |\n| Trade Fills     | `{\"type\": \"userFills\", \"user\": \"0x...\", \"aggregateByTime\": true}`              |\n| Funding History | `{\"type\": \"userFunding\", \"user\": \"0x...\", \"startTime\": \u003Cts>, \"endTime\": \u003Cts>}` |\n| Sub-Accounts    | `{\"type\": \"subAccounts\", \"user\": \"0x...\"}`                                     |\n| Vault Details   | `{\"type\": \"vaultDetails\", \"vaultAddress\": \"0x...\"}`                            |\n\n## HIP-3 Sub-DEXes\n\n| DEX    | Quote | Assets                        |\n| ------ | ----- | ----------------------------- |\n| `hyna` | USDE  | Crypto perps (BTC, ETH, HYPE) |\n| `xyz`  | USDE  | Stocks (AAPL, TSLA, NVDA)     |\n| `vntl` | USDE  | AI\u002Ftech tokens                |\n| `km`   | USDT  | Kinetiq Markets               |\n| `cash` | USDC  | Tech stocks                   |\n\n## TypeScript Helper\n\n```typescript\nconst HL = \"https:\u002F\u002Fapi.hyperliquid.xyz\u002Finfo\";\n\nasync function query\u003CT>(body: object): Promise\u003CT> {\n  const res = await fetch(HL, {\n    method: \"POST\",\n    headers: { \"Content-Type\": \"application\u002Fjson\" },\n    body: JSON.stringify(body),\n  });\n  return res.json();\n}\n\n\u002F\u002F Examples\nconst mids = await query({ type: \"allMids\" });\nconst positions = await query({ type: \"clearinghouseState\", user: \"0x...\" });\nconst spotBal = await query({ type: \"spotClearinghouseState\", user: \"0x...\" });\nconst dexes = await query({ type: \"perpDexs\" });\n```\n\n## Common Hazards\n\n| Issue                   | Solution                                          |\n| ----------------------- | ------------------------------------------------- |\n| `szDecimals` truncation | Truncate qty to `szDecimals` before submit        |\n| HIP-3 price prefix      | Sub-DEX prices keyed as `hyna:BTC`, not `BTC`     |\n| Sub-DEX asset index     | Use local index from DEX's `universe`, not global |\n| Fill limits             | `userFills` max 2000 — paginate with time ranges  |\n\n---\n\n## Tutorials\n\nStep-by-step deployment guides with parameter selection advice and practical tips:\n\n- [Grid Bot Tutorial](tutorials\u002Fgrid.md) — Range trading with buy\u002Fsell grids\n- [Arb Bot Tutorial](tutorials\u002Farb.md) — Market-neutral spot-perp arbitrage\n- [DCA Bot Tutorial](tutorials\u002Fdca.md) — Dollar-cost averaging with auto-restart\n","# Supurr CLI — Complete Command Reference\n\n> **For LLMs**: This is the authoritative reference. Use exact syntax. Config files are in `~\u002F.supurr\u002Fconfigs\u002F`.\n\n---\n\n## Quick Reference\n\n| Command                | Purpose                       |\n| ---------------------- | ----------------------------- |\n| `supurr init`          | Setup wallet credentials      |\n| `supurr whoami`        | Show current wallet           |\n| `supurr new grid`      | Generate grid strategy config |\n| `supurr new arb`       | Generate spot-perp arb config |\n| `supurr new dca`       | Generate DCA strategy config  |\n| `supurr configs`       | List saved configs            |\n| `supurr config \u003Cname>` | View config details           |\n| `supurr backtest`      | Run historical simulation     |\n| `supurr deploy`        | Deploy bot to production      |\n| `supurr monitor`       | View active bots              |\n| `supurr history`       | View historical bot sessions  |\n| `supurr stop`          | Stop a running bot (signed)   |\n| `supurr prices`        | Debug price data              |\n| `supurr update`        | Update CLI to latest          |\n\n---\n\n## Global Options\n\n```bash\nsupurr --help              # Show all commands\nsupurr --version, -V       # Show CLI version\nsupurr -d, --debug         # Enable debug logging (any command)\n```\n\n---\n\n## 1. `supurr init` — Credential Setup\n\n```bash\n# Interactive\nsupurr init\n\n# Non-interactive\nsupurr init --address 0x... --api-wallet 0x...\n\n# Overwrite existing\nsupurr init --force\n```\n\n| Option                | Description                    |\n| --------------------- | ------------------------------ |\n| `-f, --force`         | Overwrite existing credentials |\n| `--address \u003Caddress>` | Wallet address (0x...)         |\n| `--api-wallet \u003Ckey>`  | API wallet private key         |\n\n---\n\n## 2. `supurr whoami` — Show Identity\n\n```bash\nsupurr whoami    # Shows: Address + masked key\n```\n\n---\n\n## 3. `supurr new \u003Cstrategy>` — Config Generator\n\nSupports three strategies: `grid`, `arb`, `dca`.\n\n```bash\nsupurr new grid [options]   # Grid trading\nsupurr new arb [options]    # Spot-perp arbitrage\nsupurr new dca [options]    # Dollar-cost averaging\n```\n\n---\n\n### 3a. `supurr new grid` — Grid Strategy\n\n#### Market Types\n\n| Type     | Quote    | Requires  | Example                                 |\n| -------- | -------- | --------- | --------------------------------------- |\n| `native` | USDC     | —         | `--asset BTC`                           |\n| `spot`   | Variable | `--quote` | `--asset HYPE --type spot --quote USDC` |\n| `hip3`   | Per-DEX  | `--dex`   | `--asset BTC --type hip3 --dex hyna`    |\n\n#### Grid Options\n\n| Option                  | Default       | Description                                    |\n| ----------------------- | ------------- | ---------------------------------------------- |\n| `-a, --asset \u003Csymbol>`  | `BTC`         | Base asset (BTC, ETH, HYPE, etc.)              |\n| `-o, --output \u003Cfile>`   | `config.json` | Output filename                                |\n| `--type \u003Ctype>`         | `native`      | Market type: native, spot, hip3                |\n| `--dex \u003Cdex>`           | —             | **Required for hip3**: hyna, xyz, km, vntl     |\n| `--quote \u003Cquote>`       | —             | **Required for spot**: USDC, USDE, USDT0, USDH |\n| `--mode \u003Cmode>`         | `long`        | Grid mode: long, short, neutral                |\n| `--levels \u003Cn>`          | `20`          | Number of grid levels                          |\n| `--start-price \u003Cprice>` | —             | Grid start price                               |\n| `--end-price \u003Cprice>`   | —             | Grid end price                                 |\n| `--investment \u003Camount>` | `1000`        | Max investment in quote currency               |\n| `--leverage \u003Cn>`        | `2`           | Leverage (1 for spot)                          |\n| `--testnet`             | false         | Use Hyperliquid testnet                        |\n\n#### Grid Examples\n\n```bash\n# Native Perp (BTC-USDC)\nsupurr new grid --asset BTC --levels 4 --start-price 88000 --end-price 92000 --investment 100 --leverage 20\n\n# USDC Spot (HYPE\u002FUSDC)\nsupurr new grid --asset HYPE --type spot --quote USDC --levels 3 --start-price 29 --end-price 32 --investment 100\n\n# Non-USDC Spot (HYPE\u002FUSDH)\nsupurr new grid --asset HYPE --type spot --quote USDH --levels 3 --start-price 29 --end-price 32 --investment 100\n\n# HIP-3 (hyna:BTC)\nsupurr new grid --asset BTC --type hip3 --dex hyna --levels 4 --start-price 88000 --end-price 92000 --investment 100 --leverage 20\n```\n\n#### HIP-3 DEXes\n\n| DEX    | Quote | Assets                              |\n| ------ | ----- | ----------------------------------- |\n| `hyna` | USDE  | Crypto perps (BTC, ETH, HYPE, etc.) |\n| `xyz`  | USDE  | Stocks (AAPL, TSLA, etc.)           |\n| `km`   | USDT  | Kinetiq Markets                     |\n| `vntl` | USDE  | AI\u002Ftech tokens                      |\n\n---\n\n### 3b. `supurr new arb` — Spot-Perp Arbitrage Strategy\n\nGenerates a config that simultaneously trades the **spot** and **perp** legs of the same asset, capturing spread differentials.\n\n> **Market Constraint**: Only assets that have **both** a spot token AND a perp market on Hyperliquid are eligible. The CLI auto-resolves the spot counterpart.\n\n#### Spot Resolution Logic\n\nHyperliquid spot tokens for major assets use a `U`-prefix naming convention:\n\n| You pass `--asset` | CLI resolves spot token | Spot pair  | Perp pair  |\n| ------------------ | ----------------------- | ---------- | ---------- |\n| `BTC`              | `UBTC`                  | UBTC\u002FUSDC  | BTC perp   |\n| `ETH`              | `UETH`                  | UETH\u002FUSDC  | ETH perp   |\n| `SOL`              | `USOL`                  | USOL\u002FUSDC  | SOL perp   |\n| `ENA`              | `UENA`                  | UENA\u002FUSDC  | ENA perp   |\n| `WLD`              | `UWLD`                  | UWLD\u002FUSDC  | WLD perp   |\n| `MON`              | `UMON`                  | UMON\u002FUSDC  | MON perp   |\n| `MEGA`             | `UMEGA`                 | UMEGA\u002FUSDC | MEGA perp  |\n| `ZEC`              | `UZEC`                  | UZEC\u002FUSDC  | ZEC perp   |\n| `XPL`              | `UXPL`                  | UXPL\u002FUSDC  | XPL perp   |\n| `PUMP`             | `UPUMP`                 | UPUMP\u002FUSDC | PUMP perp  |\n| `HYPE`             | `HYPE` (exact name)     | HYPE\u002FUSDC  | HYPE perp  |\n| `TRUMP`            | `TRUMP` (exact name)    | TRUMP\u002FUSDC | TRUMP perp |\n| `PURR`             | `PURR` (exact name)     | PURR\u002FUSDC  | PURR perp  |\n| `BERA`             | `BERA` (exact name)     | BERA\u002FUSDC  | BERA perp  |\n\nResolution order: try `U{ASSET}` first → fallback to exact name → fail if neither exists.\n\n> **⚠️ U-prefix Hazard**: Do NOT pass asset names that already start with `U` (e.g., `UNIT`). The CLI will prepend another `U` and look for `UUNIT`, which doesn't exist. Always use the **perp ticker name** (e.g., `BTC`, not `UBTC`).\n\n#### Arb Options\n\n| Option                 | Default            | Description                                  |\n| ---------------------- | ------------------ | -------------------------------------------- |\n| `-a, --asset \u003Csymbol>` | `BTC`              | Perp asset name (BTC, ETH, HYPE, etc.)       |\n| `--amount \u003Cusdc>`      | `100`              | Order amount in USDC per leg                 |\n| `--leverage \u003Cn>`       | `1`                | Leverage for perp leg                        |\n| `--open-spread \u003Cpct>`  | `0.003`            | Min opening spread (0.003 = 0.3%)            |\n| `--close-spread \u003Cpct>` | `-0.001`           | Min closing spread (-0.001 = -0.1%)          |\n| `--slippage \u003Cpct>`     | `0.001`            | Slippage buffer for both legs (0.001 = 0.1%) |\n| `-o, --output \u003Cfile>`  | `{asset}-arb.json` | Output filename                              |\n| `--testnet`            | false              | Use Hyperliquid testnet                      |\n\n#### Arb Examples\n\n```bash\n# BTC spot-perp arb (default $100\u002Fleg)\nsupurr new arb --asset BTC\n\n# HYPE arb with $50 per leg, 2x leverage on perp\nsupurr new arb --asset HYPE --amount 50 --leverage 2\n\n# ETH arb with tighter spreads\nsupurr new arb --asset ETH --open-spread 0.002 --close-spread -0.0005 --slippage 0.0005\n\n# SOL arb on testnet\nsupurr new arb --asset SOL --testnet\n```\n\n> **Balance Requirement**: Arb bots require USDC balance in **both** Spot and Perps wallets on Hyperliquid, since the bot trades on both sides simultaneously.\n\n---\n\n### 3c. `supurr new dca` — DCA Strategy\n\nGenerates a Dollar-Cost Averaging config that opens positions in steps when price deviates, then takes profit on the averaged entry.\n\n#### DCA Options\n\n| Option                       | Default       | Description                                        |\n| ---------------------------- | ------------- | -------------------------------------------------- |\n| `-a, --asset \u003Csymbol>`       | `BTC`         | Base asset                                         |\n| `--mode \u003Cmode>`              | `long`        | Direction: long or short                           |\n| `--type \u003Ctype>`              | `native`      | Market type: native, spot, hip3                    |\n| `--trigger-price \u003Cprice>`    | `100000`      | Price to trigger base order                        |\n| `--base-order \u003Csize>`        | `0.001`       | Base order size in base asset                      |\n| `--dca-order \u003Csize>`         | `0.001`       | DCA order size in base asset                       |\n| `--max-orders \u003Cn>`           | `5`           | Max number of DCA orders                           |\n| `--size-multiplier \u003Cx>`      | `2.0`         | Size multiplier per DCA step                       |\n| `--deviation \u003Cpct>`          | `0.01`        | Price deviation % to trigger first DCA (0.01 = 1%) |\n| `--deviation-multiplier \u003Cx>` | `1.0`         | Deviation multiplier for subsequent steps          |\n| `--take-profit \u003Cpct>`        | `0.02`        | Take profit % from avg entry (0.02 = 2%)           |\n| `--stop-loss \u003Cpnl>`          | —             | Optional stop loss as absolute PnL threshold       |\n| `--leverage \u003Cn>`             | `2`           | Leverage (1 for spot)                              |\n| `--restart`                  | false         | Restart cycle after take profit                    |\n| `--cooldown \u003Csecs>`          | `60`          | Cooldown between cycles in seconds                 |\n| `-o, --output \u003Cfile>`        | `config.json` | Output filename                                    |\n| `--testnet`                  | false         | Use Hyperliquid testnet                            |\n\n#### DCA Examples\n\n```bash\n# BTC DCA long, trigger at $95k\nsupurr new dca --asset BTC --trigger-price 95000\n\n# ETH DCA short with custom deviation\nsupurr new dca --asset ETH --mode short --deviation 0.02\n\n# HYPE DCA with auto-restart\nsupurr new dca --asset HYPE --restart --cooldown 120 --take-profit 0.03\n\n# DCA on spot market\nsupurr new dca --asset HYPE --type spot --quote USDC --trigger-price 25\n```\n\n---\n\n## 4. `supurr configs` — List Saved Configs\n\n```bash\nsupurr configs    # Lists all configs in ~\u002F.supurr\u002Fconfigs\u002F\n```\n\n**Output:**\n\n```\n📁 Configs (\u002FUsers\u002Fyou\u002F.supurr\u002Fconfigs):\n  btc-grid.json         grid     BTC-USDC\n  hype-usdc-spot.json   grid     HYPE-USDC\n  hyna-btc.json         grid     BTC-USDE\n```\n\n---\n\n## 5. `supurr config \u003Cname>` — View Config\n\n```bash\nsupurr config btc-grid        # View btc-grid.json\nsupurr config btc-grid.json   # Same\n```\n\n---\n\n## 6. `supurr backtest` — Run Backtest\n\n### Syntax\n\n```bash\nsupurr backtest -c \u003Cconfig> [options]\n```\n\n### Options\n\n| Option                | Description                              |\n| --------------------- | ---------------------------------------- |\n| `-c, --config \u003Cfile>` | **Required.** Config file (name or path) |\n| `-s, --start \u003Cdate>`  | Start date (YYYY-MM-DD)                  |\n| `-e, --end \u003Cdate>`    | End date (YYYY-MM-DD)                    |\n| `-p, --prices \u003Cfile>` | Use local prices file                    |\n| `-o, --output \u003Cfile>` | Save results to JSON                     |\n| `--no-cache`          | Disable price caching                    |\n\n### Examples\n\n```bash\n# By config name (looks in ~\u002F.supurr\u002Fconfigs\u002F)\nsupurr backtest -c btc-grid.json -s 2026-01-28 -e 2026-02-01\n\n# By full path\nsupurr backtest -c ~\u002F.supurr\u002Fconfigs\u002Fbtc-grid.json -s 2026-01-28 -e 2026-02-01\n\n# Save results\nsupurr backtest -c btc-grid.json -s 2026-01-28 -e 2026-02-01 -o results.json\n```\n\n### Archive Data Availability\n\n| Dex           | Asset Format           | Example            |\n| ------------- | ---------------------- | ------------------ |\n| `hyperliquid` | `BTC`, `HYPE`          | Native perp + Spot |\n| `hyna`        | `hyna:BTC`, `hyna:ETH` | HIP-3 DEX          |\n\n> **Note**: Archive data available from 2026-01-28 onwards.\n>\n> **Important**: Backtests use Supurr's price archive (tick-level) or a user-provided prices file (`-p`). Do **not** use Hyperliquid Info API mids\u002Fcandles for backtests; they don't provide tick-level historical data and will produce inaccurate results.\n\n---\n\n## 7. `supurr deploy` — Deploy Bot\n\n```bash\nsupurr deploy -c \u003Cconfig> [-s \u003Caddress> | -v \u003Caddress>]\n```\n\n| Option                       | Description                                             |\n| ---------------------------- | ------------------------------------------------------- |\n| `-c, --config \u003Cfile>`        | **Required.** Config file (name or path)                |\n| `-s, --subaccount \u003Caddress>` | Trade from a subaccount (validates master ownership)    |\n| `-v, --vault \u003Caddress>`      | Trade from a vault (validates you are the vault leader) |\n\n> **Subaccount vs Vault:**\n>\n> - **Subaccount** = personal trading account under your master wallet. Verified via `subAccounts` API (checks `master` field).\n> - **Vault** = shared investment pool you manage. Verified via `vaultDetails` API (checks `leader` field).\n> - Both set `vault_address` in the bot config on success.\n> - **Cannot use both** `--subaccount` and `--vault` simultaneously.\n\n### Examples\n\n```bash\n# Deploy from main wallet\nsupurr deploy -c btc-grid.json\n\n# Deploy from subaccount\nsupurr deploy -c btc-grid.json -s 0x804e57d7baeca937d4b30d3cbe017f8d73c21f1b\n\n# Deploy from vault (you must be the vault leader)\nsupurr deploy -c config.json --vault 0xdc89f67e74098dd93a1476f7da79747f71ccb5d9\n\n# HL: prefix is auto-stripped (copy-paste from Hyperliquid UI)\nsupurr deploy -c config.json -s HL:0x804e57d7baeca937d4b30d3cbe017f8d73c21f1b\n```\n\n**Output:**\n\n```\n✔ Loaded config for grid strategy\n✔ Subaccount verified: 0x804e57d7...\n✔ Bot deployed successfully!\n📦 Deployment Details\n  Bot ID:       217\n  Pod Name:     bot-217\n  Bot Type:     grid\n  Market:       BTC-USDC\n```\n\n### Gotchas\n\n| Issue                        | Solution                                                                   |\n| ---------------------------- | -------------------------------------------------------------------------- |\n| `HL:` prefix in address      | Auto-stripped — safe to paste from Hyperliquid explorer                    |\n| \"Subaccount not owned\"       | Ensure the subaccount's `master` matches your `supurr whoami` address      |\n| \"Vault not found\"            | Check the vault address exists on the correct network (mainnet vs testnet) |\n| \"Vault leader mismatch\"      | Only the vault leader can deploy — check `vaultDetails` API                |\n| `subAccounts` returns `null` | Normal — means no subaccounts exist for that address                       |\n\n---\n\n## 8. `supurr monitor` — View Active Bots\n\n### Syntax\n\n```bash\nsupurr monitor [options]\n```\n\n### Options\n\n| Option                   | Description                    |\n| ------------------------ | ------------------------------ |\n| `-w, --wallet \u003Caddress>` | Filter by wallet address       |\n| `--watch`                | Live mode (refreshes every 2s) |\n\n### Examples\n\n```bash\nsupurr monitor                 # List all active bots\nsupurr monitor --watch         # Live monitoring (Ctrl+C to exit)\nsupurr monitor -w 0x1234...    # Filter by wallet\n```\n\n**Output Columns:**\n\n- **ID** — Bot identifier\n- **Type** — Strategy (grid, dca, mm, arb)\n- **Market** — Trading pair (BTC-USDC, HYPE-USDH)\n- **Position** — Size + direction (L=Long, S=Short)\n- **PnL** — Total profit\u002Floss\n\n---\n\n## 9. `supurr history` — View Bot History\n\n```bash\nsupurr history             # Show last 20 bot sessions\nsupurr history -n 50       # Show last 50 bot sessions\n```\n\n| Option                | Default | Description            |\n| --------------------- | ------- | ---------------------- |\n| `-n, --limit \u003Ccount>` | `20`    | Number of bots to show |\n\n**Output Columns:**\n\n- **ID** — Bot identifier\n- **Market** — Trading pair (from `config.markets[0]`)\n- **Type** — Strategy (grid, dca, mm, arb)\n- **PnL** — Total profit\u002Floss (realized + unrealized)\n- **Stop Reason** — Why the bot stopped (`shutdown:graceful` → \"User stopped the bot Successfully\")\n\n---\n\n## 10. `supurr stop` — Stop Bot (Signature Auth)\n\nSigns `Stop \u003Cbot-id>` with your API wallet private key (EIP-191 personal_sign) and sends the signature to the bot API.\n\n```bash\nsupurr stop              # Interactive - select from list\nsupurr stop --id 217     # Stop specific bot by ID\n```\n\n| Option          | Description                            |\n| --------------- | -------------------------------------- |\n| `--id \u003Cbot_id>` | Bot ID to stop (from `supurr monitor`) |\n\n> **Crypto:** Uses `@noble\u002Fcurves\u002Fsecp256k1` + `@noble\u002Fhashes\u002Fsha3` (pure JS, no native deps). Signature format: `0x{r}{s}{v}` (65 bytes).\n\n---\n\n## 11. `supurr prices` — Debug Price Data\n\n```bash\nsupurr prices -a BTC                     # Fetch BTC prices (7 days)\nsupurr prices -a hyna:BTC --dex hyna     # HIP-3 prices\nsupurr prices -a HYPE -s 2026-01-28      # From specific date\n```\n\n| Option                 | Description                     |\n| ---------------------- | ------------------------------- |\n| `-a, --asset \u003Csymbol>` | **Required.** Asset symbol      |\n| `--dex \u003Cdex>`          | DEX name (default: hyperliquid) |\n| `-s, --start \u003Cdate>`   | Start date                      |\n| `-e, --end \u003Cdate>`     | End date                        |\n| `--no-cache`           | Disable caching                 |\n\n---\n\n## 12. `supurr update` — Self-Update\n\n```bash\nsupurr update    # Check and install latest version\n```\n\n---\n\n## Complete Workflows\n\n### Workflow 1: Grid — Backtest → Deploy → Monitor\n\n```bash\n# 1. Initialize (first time only)\nsupurr init --address 0x... --api-wallet 0x...\n\n# 2. Create config\nsupurr new grid --asset BTC --levels 4 --start-price 88000 --end-price 92000 --investment 100 --leverage 20 --output btc-grid.json\n\n# 3. Backtest\nsupurr backtest -c btc-grid.json -s 2026-01-28 -e 2026-02-01\n\n# 4. Deploy\nsupurr deploy -c btc-grid.json\n\n# 5. Monitor\nsupurr monitor --watch\n\n# 6. Stop when done\nsupurr stop --id \u003Cbot_id>\n```\n\n### Workflow 2: Arb — Setup → Deploy → Monitor\n\n```bash\n# 1. Initialize\nsupurr init --address 0x... --api-wallet 0x...\n\n# 2. Generate arb config (auto-resolves spot counterpart)\nsupurr new arb --asset BTC --amount 200 --leverage 1 --output btc-arb.json\n\n# 3. Review the generated config\nsupurr config btc-arb\n\n# 4. Ensure USDC balance in BOTH Spot and Perps wallets on Hyperliquid\n\n# 5. Deploy\nsupurr deploy -c btc-arb.json\n\n# 6. Monitor\nsupurr monitor --watch\n```\n\n### Workflow 3: DCA — Configure → Deploy\n\n```bash\n# 1. Create DCA config\nsupurr new dca --asset BTC --trigger-price 95000 --base-order 0.001 --max-orders 5 --take-profit 0.02 --output btc-dca.json\n\n# 2. Deploy\nsupurr deploy -c btc-dca.json\n\n# 3. Monitor\nsupurr monitor --watch\n```\n\n### Workflow 4: Test All Market Types\n\n```bash\n# Native Perp\nsupurr new grid --asset BTC --output native-btc.json\nsupurr backtest -c native-btc.json -s 2026-01-28 -e 2026-02-01\n\n# USDC Spot\nsupurr new grid --asset HYPE --type spot --quote USDC --output hype-usdc.json\nsupurr backtest -c hype-usdc.json -s 2026-01-30 -e 2026-01-31\n\n# Non-USDC Spot\nsupurr new grid --asset HYPE --type spot --quote USDH --output hype-usdh.json\nsupurr backtest -c hype-usdh.json -s 2026-01-30 -e 2026-01-31\n\n# HIP-3\nsupurr new grid --asset BTC --type hip3 --dex hyna --output hyna-btc.json\nsupurr backtest -c hyna-btc.json -s 2026-01-28 -e 2026-02-01\n```\n\n---\n\n## Config Storage\n\n```\n~\u002F.supurr\u002F\n├── credentials.json      # { address, private_key }\n├── configs\u002F              # Saved bot configs\n│   ├── btc-grid.json\n│   ├── hype-usdc.json\n│   └── ...\n└── cache\u002F                # Price data cache\n    └── hyperliquid\u002F\n        ├── BTC\u002F\n        └── HYPE\u002F\n```\n\n---\n\n## API Endpoints Used\n\n| Purpose       | Endpoint                                      | Auth              |\n| ------------- | --------------------------------------------- | ----------------- |\n| Bot Deploy    | `POST \u002Fbots\u002Fcreate\u002F\u003Cwallet>`                  | —                 |\n| Active Bots   | `GET \u002Fdashboard\u002Factive_bots`                  | —                 |\n| Bot History   | `GET \u002Fdashboard\u002Fuser_bots\u002F\u003Caddress>` (Python) | —                 |\n| Stop Bot      | `POST \u002Fbots\u002F\u003Cbot_id>\u002Fstop` (Node)             | EIP-191 signature |\n| Price Data    | `GET \u002Fprices?dex=X&asset=Y&start_time=Z`      | —                 |\n| Price Archive | `GET \u002F{dex}\u002F{asset}\u002F{date}.json`              | —                 |\n\n---\n\n## Troubleshooting\n\n| Issue                     | Solution                                                         |\n| ------------------------- | ---------------------------------------------------------------- |\n| \"Config not found\"        | Use `supurr configs` to list available configs                   |\n| \"No credentials\"          | Run `supurr init` first                                          |\n| \"0 prices fetched\"        | Check date range (data from 2026-01-28+)                         |\n| \"API wallet not valid\"    | Register API wallet on Hyperliquid first                         |\n| HIP-3 backtest fails      | Use format `--dex hyna --asset BTC`                              |\n| \"No spot market found\"    | Asset has no spot counterpart — arb not available for this asset |\n| Arb asset starts with `U` | Use the perp name (e.g., `BTC` not `UBTC`) — CLI adds `U` prefix |\n\n---\n\n# Appendix: Hyperliquid Info API\n\n> **Backtesting note**: This appendix is for live metadata and user state lookups. It is **not** a source of tick-level historical data for `supurr backtest`.\n\n> **Get address via**: `supurr whoami` — returns the configured wallet address.\n\nAll endpoints use `POST https:\u002F\u002Fapi.hyperliquid.xyz\u002Finfo` with `Content-Type: application\u002Fjson`.\n\n## Market Data (No Address Required)\n\n| Query            | Request Body                         |\n| ---------------- | ------------------------------------ |\n| All Mid Prices   | `{\"type\": \"allMids\"}`                |\n| Sub-DEX Prices   | `{\"type\": \"allMids\", \"dex\": \"hyna\"}` |\n| Perp Metadata    | `{\"type\": \"metaAndAssetCtxs\"}`       |\n| Spot Metadata    | `{\"type\": \"spotMeta\"}`               |\n| L2 Order Book    | `{\"type\": \"l2Book\", \"coin\": \"BTC\"}`  |\n| List HIP-3 DEXes | `{\"type\": \"perpDexs\"}`               |\n\n## User Data (Address Required)\n\n| Query           | Request Body                                                                   |\n| --------------- | ------------------------------------------------------------------------------ |\n| Perp Positions  | `{\"type\": \"clearinghouseState\", \"user\": \"0x...\"}`                              |\n| Spot Balances   | `{\"type\": \"spotClearinghouseState\", \"user\": \"0x...\"}`                          |\n| Open Orders     | `{\"type\": \"openOrders\", \"user\": \"0x...\"}`                                      |\n| Order History   | `{\"type\": \"historicalOrders\", \"user\": \"0x...\"}`                                |\n| Trade Fills     | `{\"type\": \"userFills\", \"user\": \"0x...\", \"aggregateByTime\": true}`              |\n| Funding History | `{\"type\": \"userFunding\", \"user\": \"0x...\", \"startTime\": \u003Cts>, \"endTime\": \u003Cts>}` |\n| Sub-Accounts    | `{\"type\": \"subAccounts\", \"user\": \"0x...\"}`                                     |\n| Vault Details   | `{\"type\": \"vaultDetails\", \"vaultAddress\": \"0x...\"}`                            |\n\n## HIP-3 Sub-DEXes\n\n| DEX    | Quote | Assets                        |\n| ------ | ----- | ----------------------------- |\n| `hyna` | USDE  | Crypto perps (BTC, ETH, HYPE) |\n| `xyz`  | USDE  | Stocks (AAPL, TSLA, NVDA)     |\n| `vntl` | USDE  | AI\u002Ftech tokens                |\n| `km`   | USDT  | Kinetiq Markets               |\n| `cash` | USDC  | Tech stocks                   |\n\n## TypeScript Helper\n\n```typescript\nconst HL = \"https:\u002F\u002Fapi.hyperliquid.xyz\u002Finfo\";\n\nasync function query\u003CT>(body: object): Promise\u003CT> {\n  const res = await fetch(HL, {\n    method: \"POST\",\n    headers: { \"Content-Type\": \"application\u002Fjson\" },\n    body: JSON.stringify(body),\n  });\n  return res.json();\n}\n\n\u002F\u002F Examples\nconst mids = await query({ type: \"allMids\" });\nconst positions = await query({ type: \"clearinghouseState\", user: \"0x...\" });\nconst spotBal = await query({ type: \"spotClearinghouseState\", user: \"0x...\" });\nconst dexes = await query({ type: \"perpDexs\" });\n```\n\n## Common Hazards\n\n| Issue                   | Solution                                          |\n| ----------------------- | ------------------------------------------------- |\n| `szDecimals` truncation | Truncate qty to `szDecimals` before submit        |\n| HIP-3 price prefix      | Sub-DEX prices keyed as `hyna:BTC`, not `BTC`     |\n| Sub-DEX asset index     | Use local index from DEX's `universe`, not global |\n| Fill limits             | `userFills` max 2000 — paginate with time ranges  |\n\n---\n\n## Tutorials\n\nStep-by-step deployment guides with parameter selection advice and practical tips:\n\n- [Grid Bot Tutorial](tutorials\u002Fgrid.md) — Range trading with buy\u002Fsell grids\n- [Arb Bot Tutorial](tutorials\u002Farb.md) — Market-neutral spot-perp arbitrage\n- [DCA Bot Tutorial](tutorials\u002Fdca.md) — Dollar-cost averaging with auto-restart\n",{"name":5,"description":7},"main","f9d3fe7cf9ac8f1ea63a0d96e98e1f510a3814db","skills\u002Fyashagarwal1994\u002Fsupurr-hyperliquid",1,"https:\u002F\u002Fgithub.com\u002Fjavimosch\u002Fopen-claw-skills","https:\u002F\u002Fgithub.com\u002Fjavimosch","intrane.fr","Building robust, open-source infrastructure for the commons. AI-leveraged, self-hosted, built to last.","2026-06-07 03:34:58",{"source":8,"skillName":5,"commands":34,"prompt":44,"zipAvailable":45},[35,38,41],{"tool":36,"command":37},"npx","npx skills add javimosch\u002Fopen-claw-skills --skill supurr",{"tool":39,"command":40},"bunx","bunx skills add javimosch\u002Fopen-claw-skills --skill supurr",{"tool":42,"command":43},"pnpm","pnpm dlx skills add javimosch\u002Fopen-claw-skills --skill supurr","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fjavimosch\u002Fopen-claw-skills\u002Fblob\u002Fmain\u002Fskills\u002Fyashagarwal1994\u002Fsupurr-hyperliquid\u002FSKILL.md",true,[],[48,55,62,69,76,83],{"skillNo":49,"name":50,"nameZh":6,"description":51,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":52,"categories":53,"keywords":54,"publishedAt":19},"01M778GGXG2VQ0YF31W2MKGMQZ","crowd-prompting","A marketplace where AI agents improve prompts, system instructions, tool descriptions, and other text-based content with domain expertise from real-world operations — and earn tokens for valuable contributions.","https:\u002F\u002Fgithub.com\u002Fjavimosch\u002Fopen-claw-skills\u002Fblob\u002Fmain\u002Fskills\u002Fzzadrian\u002Fcrowd-prompting\u002FSKILL.md",[],[],{"skillNo":56,"name":57,"nameZh":6,"description":58,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":59,"categories":60,"keywords":61,"publishedAt":19},"01M778G7BH8SBJ9FJ6C3G7CB1K","ceaser","Interact with the Ceaser privacy protocol on Base L2 using the ceaser-mcp MCP tools. This skill uses the ceaser-mcp npm package for ALL operations -- shield, unshield, note management, and protocol queries. All ceaser tool calls use CLI subcommands (npx -y ceaser-mcp \u003Csubcommand>). Ceaser is a privacy-preserving ETH wrapper using Noir\u002FUltraHonk zero-knowledge proofs on Base L2 (chain ID 8453).","https:\u002F\u002Fgithub.com\u002Fjavimosch\u002Fopen-claw-skills\u002Fblob\u002Fmain\u002Fskills\u002Fzyra-v21\u002Fceaser\u002FSKILL.md",[],[],{"skillNo":63,"name":64,"nameZh":6,"description":65,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":66,"categories":67,"keywords":68,"publishedAt":19},"01M778FYCJQZWFKKX5FYMK3S47","ceaser-send","Fully automated private ETH transfer via Ceaser Protocol on Base L2 using the ceaser-mcp MCP tools. This skill uses the ceaser-mcp npm package for ALL operations -- all ceaser tool calls use CLI subcommands (npx -y ceaser-mcp \u003Csubcommand>). WARNING -- creates observable on-chain links between user wallet and hot wallet (see Privacy Warning). Generates an ephemeral hot wallet with BIP-39 mnemonic recovery, user funds it, agent signs and broadcasts the Shield TX automatically. Exactly one manual step required (funding the hot wallet with ETH). Uses Noir\u002FUltraHonk zero-knowledge proofs.","https:\u002F\u002Fgithub.com\u002Fjavimosch\u002Fopen-claw-skills\u002Fblob\u002Fmain\u002Fskills\u002Fzyra-v21\u002Fceaser-send\u002FSKILL.md",[],[],{"skillNo":70,"name":71,"nameZh":6,"description":72,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":73,"categories":74,"keywords":75,"publishedAt":19},"01M778FQQNSEYA3HJKZBPQ4M9Z","dilemm-ai","Compete in DilemmAI, the prisoner's dilemma AI arena at dilemm.ai. Use when an OpenClaw agent wants to create an account, design and submit strategy prompts for their bot, enter matchmaking, analyze historical matches and leaderboards, and iterate on bot strategy. Requires headless browser automation (no API available yet).","https:\u002F\u002Fgithub.com\u002Fjavimosch\u002Fopen-claw-skills\u002Fblob\u002Fmain\u002Fskills\u002Fzyori\u002Fdilemm-ai\u002FSKILL.md",[],[],{"skillNo":77,"name":78,"nameZh":6,"description":79,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":80,"categories":81,"keywords":82,"publishedAt":19},"01M778FGVZX7QA2TF9BFMM37FY","moldium","Post and manage content on the Moldium blog platform. Triggered by \"post to Moldium\", \"write a blog post\", \"publish an article\", etc.","https:\u002F\u002Fgithub.com\u002Fjavimosch\u002Fopen-claw-skills\u002Fblob\u002Fmain\u002Fskills\u002Fzyom45\u002Fmoldium\u002FSKILL.md",[],[],{"skillNo":84,"name":85,"nameZh":6,"description":86,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":87,"categories":88,"keywords":89,"publishedAt":19},"01M778F88D8PQ9MQ0KNW2TJ8ZH","arxiv-paper-reviews","Interact with arXiv Crawler API to fetch papers, read reviews, submit comments, search papers, and import papers. Use when working with arXiv papers, fetching paper lists by date\u002Fcategory\u002Finterest, viewing paper details with comments, submitting paper reviews, searching papers by title, or importing papers from arXiv URLs via API at http:\u002F\u002Fweakaccept.top:8000\u002F.","https:\u002F\u002Fgithub.com\u002Fjavimosch\u002Fopen-claw-skills\u002Fblob\u002Fmain\u002Fskills\u002Fzxrys\u002Farxiv-paper-reviews\u002FSKILL.md",[],[]]