@@ -20,24 +20,26 @@ List perpetual markets for a venue.
2020### Syntax
2121
2222``` bash
23- mm-dev perps markets --venue < venue> [--network < network> ] [--symbol < symbol> ] [--symbols < list> ]
23+ mm-dev perps markets --venue < venue> [--network < network> ] [--symbol < symbol> ] [--symbols < list> ] [--dex < name > ]
2424```
2525
2626### Supported Flags
2727
2828| Name | Required | Description |
2929| --- | --- | --- |
30- | ` --venue ` | Yes | Perpetual venue (defaults to ` hyperliquid ` ) |
31- | ` --network ` | No | Target network: ` mainnet ` or ` testnet ` (defaults to ` mainnet ` ) |
32- | ` --symbol ` | No | Market symbol (e.g. BTC, ETH, SOL ) |
30+ | ` --venue ` | Yes | Perpetual venue (defaults to ` hyperliquid ` ). Run ` mm-dev perps list-venues ` to see options (allowed: ` hyperliquid ` ) |
31+ | ` --network ` | No | Target network: ` mainnet ` or ` testnet ` (defaults to ` mainnet ` ) (allowed: ` mainnet ` , ` testnet ` ) |
32+ | ` --symbol ` | No | Filter to a single market symbol (e.g. BTC) |
3333| ` --symbols ` | No | Comma-separated market symbols to filter (e.g. BTC,ETH,SOL) |
34+ | ` --dex ` | No | HIP-3 DEX name; omit for the main Hyperliquid DEX. Run ` mm-dev perps dexs ` to see options |
3435
3536### Example
3637
3738``` bash
3839mm-dev perps markets --venue hyperliquid
3940mm-dev perps markets --venue hyperliquid --symbol BTC
4041mm-dev perps markets --venue hyperliquid --symbols BTC,ETH,SOL --network testnet
42+ mm-dev perps markets --venue hyperliquid --dex myDex
4143```
4244
4345## ` perps balance ` Command
@@ -232,23 +234,27 @@ Cancel a resting perps order.
232234### Syntax
233235
234236``` bash
235- mm-dev perps cancel --venue < venue> --order-id < id> [--network < network> ] [--yes] [--password < password> ]
237+ mm-dev perps cancel --venue < venue> --order-id < id> [--symbol < symbol > ] [-- network < network> ] [--dry-run ] [--yes] [--password < password> ]
236238```
237239
238240### Supported Flags
239241
240242| Name | Required | Description |
241243| --- | --- | --- |
242- | ` --venue ` | Yes | Perpetual venue (defaults to ` hyperliquid ` ) |
244+ | ` --venue ` | Yes | Perpetual venue (defaults to ` hyperliquid ` ). Run ` mm-dev perps list-venues ` to see options (allowed: ` hyperliquid ` ) |
243245| ` --order-id ` | Yes | Venue order ID to cancel (positive integer) |
244- | ` --network ` | No | Target network: ` mainnet ` or ` testnet ` (defaults to ` mainnet ` ) |
246+ | ` --symbol ` | No | Market symbol; speeds up cancel by avoiding an open-order lookup (e.g. BTC, ETH) |
247+ | ` --network ` | No | Target network: ` mainnet ` or ` testnet ` (defaults to ` mainnet ` ) (allowed: ` mainnet ` , ` testnet ` ) |
248+ | ` --dry-run ` | No | Preview the cancel action without signing or submitting |
245249| ` --yes ` | No | Skip interactive confirmation |
246250| ` --password ` | No | Password to unlock the BYOK mnemonic (BYOK mode only) [ env: ` MM_PASSWORD ` ] |
247251
248252### Example
249253
250254``` bash
251255mm-dev perps cancel --venue hyperliquid --order-id 12345
256+ mm-dev perps cancel --venue hyperliquid --order-id 12345 --symbol BTC
257+ mm-dev perps cancel --venue hyperliquid --order-id 12345 --dry-run
252258mm-dev perps cancel --venue hyperliquid --order-id 12345 --yes
253259```
254260
@@ -259,25 +265,27 @@ Deposit USDC into a perpetual venue.
259265### Syntax
260266
261267``` bash
262- mm-dev perps deposit --venue < venue> --amount < amount> [--asset < asset> ] [--source-chain < chain> ] [--network < network> ] [--yes] [--password < password> ]
268+ mm-dev perps deposit --venue < venue> --amount < amount> [--asset < asset> ] [--source-chain < chain> ] [--network < network> ] [--dry-run] [-- yes] [--password < password> ]
263269```
264270
265271### Supported Flags
266272
267273| Name | Required | Description |
268274| --- | --- | --- |
269- | ` --venue ` | Yes | Perpetual venue (defaults to ` hyperliquid ` ) |
275+ | ` --venue ` | Yes | Perpetual venue (defaults to ` hyperliquid ` ). Run ` mm-dev perps list-venues ` to see options (allowed: ` hyperliquid ` ) |
270276| ` --amount ` | Yes | Human-readable USDC amount to deposit (e.g. 100, 50.5) |
271- | ` --asset ` | No | Deposit asset (defaults to USDC) |
277+ | ` --asset ` | No | Deposit asset (defaults to ` USDC ` ) (allowed: ` USDC ` ) |
272278| ` --source-chain ` | No | Source chain as a CAIP-2 ID. Hyperliquid only supports Arbitrum (defaults to ` eip155:42161 ` on mainnet) |
273- | ` --network ` | No | Target network: ` mainnet ` or ` testnet ` (defaults to ` mainnet ` ) |
279+ | ` --network ` | No | Target network: ` mainnet ` or ` testnet ` (defaults to ` mainnet ` ) (allowed: ` mainnet ` , ` testnet ` ) |
280+ | ` --dry-run ` | No | Preview the transaction without signing or submitting |
274281| ` --yes ` | No | Skip interactive confirmation |
275282| ` --password ` | No | Password to unlock the BYOK mnemonic (BYOK mode only) [ env: ` MM_PASSWORD ` ] |
276283
277284### Example
278285
279286``` bash
280287mm-dev perps deposit --venue hyperliquid --amount 100 --asset USDC
288+ mm-dev perps deposit --venue hyperliquid --amount 100 --asset USDC --dry-run
281289mm-dev perps deposit --venue hyperliquid --amount 100 --asset USDC --yes
282290```
283291
@@ -288,25 +296,28 @@ Withdraw USDC from a perpetual venue.
288296### Syntax
289297
290298``` bash
291- mm-dev perps withdraw --venue < venue> --amount < amount> [--asset < asset> ] [--destination < address> ] [--network < network> ] [--yes] [--password < password> ]
299+ mm-dev perps withdraw --venue < venue> --amount < amount> [--asset < asset> ] [--destination < address> ] [--network < network> ] [--dry-run] [--include-spot] [-- yes] [--password < password> ]
292300```
293301
294302### Supported Flags
295303
296304| Name | Required | Description |
297305| --- | --- | --- |
298- | ` --venue ` | Yes | Perpetual venue (defaults to ` hyperliquid ` ) |
306+ | ` --venue ` | Yes | Perpetual venue (defaults to ` hyperliquid ` ). Run ` mm-dev perps list-venues ` to see options (allowed: ` hyperliquid ` ) |
299307| ` --amount ` | Yes | Human-readable USDC amount to withdraw (e.g. 50, 25.5) |
300- | ` --asset ` | No | Withdraw asset (defaults to USDC) |
308+ | ` --asset ` | No | Withdrawal asset (defaults to ` USDC ` ) (allowed: ` USDC ` ) |
301309| ` --destination ` | No | EVM destination address (defaults to your connected wallet) |
302- | ` --network ` | No | Target network: ` mainnet ` or ` testnet ` (defaults to ` mainnet ` ) |
310+ | ` --network ` | No | Target network: ` mainnet ` or ` testnet ` (defaults to ` mainnet ` ) (allowed: ` mainnet ` , ` testnet ` ) |
311+ | ` --dry-run ` | No | Preview the withdrawal without signing or submitting |
312+ | ` --include-spot ` | No | Move free spot USDC to perp account before withdrawing if the perp balance alone is insufficient |
303313| ` --yes ` | No | Skip interactive confirmation |
304314| ` --password ` | No | Password to unlock the BYOK mnemonic (BYOK mode only) [ env: ` MM_PASSWORD ` ] |
305315
306316### Example
307317
308318``` bash
309319mm-dev perps withdraw --venue hyperliquid --amount 50 --asset USDC
320+ mm-dev perps withdraw --venue hyperliquid --amount 50 --asset USDC --include-spot
310321mm-dev perps withdraw --venue hyperliquid --amount 50 --asset USDC --destination 0x742d35Cc6634C0532925a3b844Bc9e7595f2bD18 --yes
311322```
312323
0 commit comments