Skip to content

Commit e6bf7a9

Browse files
chore: improvements
1 parent 5dd4f06 commit e6bf7a9

16 files changed

Lines changed: 229 additions & 169 deletions

skills/metamask-agent-wallet/references/market-data.md

Lines changed: 17 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -42,12 +42,13 @@ mm-dev price history --chain-id <caip2-chain-id> --asset-type <asset-type> [--ti
4242

4343
| Name | Required | Description |
4444
| --- | --- | --- |
45-
| `--chain-id` | Yes | CAIP-2 chain ID |
46-
| `--asset-type` | Yes | Asset type, such as `slip44:60` |
47-
| `--time-period` | No | Period such as `1d`, `7d`, `2M`, or `3y` |
48-
| `--interval` | No | `5m`, `hourly`, or `daily` |
49-
| `--from` | No | Start unix timestamp |
50-
| `--to` | No | End unix timestamp |
45+
| `--chain-id` | Yes | CAIP-2 chain ID (e.g. `eip155:1`). Run `mm-dev price networks` to see supported chains |
46+
| `--asset-type` | Yes | CAIP-19 asset type (e.g. `slip44:60` for ETH, `erc20:0x...` for ERC-20 tokens) |
47+
| `--time-period` | No | Time period (e.g. `1d`, `7d`, `30d`, `2M`, `1y`, `3y`) |
48+
| `--interval` | No | Sampling interval: `5m`, `hourly`, or `daily` |
49+
| `--from` | No | Start time as a Unix timestamp in seconds. Use with `--to` instead of `--time-period` for custom ranges |
50+
| `--to` | No | End time as a Unix timestamp in seconds. Use with `--from` instead of `--time-period` for custom ranges |
51+
| `--vs` | No | Quote currency code (defaults to `usd`). Run `mm-dev price currencies` to see options |
5152

5253
### Example
5354

@@ -162,21 +163,26 @@ Fetch asset metadata for one or more CAIP-19 assets.
162163
### Syntax
163164

164165
```bash
165-
mm-dev token assets --asset-ids <asset-ids> [--include-market-data] [--include-token-security-data] [--include-labels]
166+
mm-dev token assets --asset-ids <asset-ids> [--include-market-data] [--include-token-security-data] [--include-labels] [--include-aggregators] [--include-coingecko-id] [--include-occurrences] [--include-rwa-data]
166167
```
167168

168169
### Supported Flags
169170

170171
| Name | Required | Description |
171172
| --- | --- | --- |
172-
| `--asset-ids` | Yes | Comma-separated CAIP-19 asset IDs |
173-
| `--include-market-data` | No | Include market data |
174-
| `--include-token-security-data` | No | Include token security signals |
175-
| `--include-labels` | No | Include token labels |
173+
| `--asset-ids` | Yes | Comma-separated CAIP-19 asset IDs (e.g. `eip155:1/erc20:0xa0b8...`). Run `mm-dev token networks` to see supported chains |
174+
| `--include-market-data` | No | Include market cap, volume, and price data |
175+
| `--include-token-security-data` | No | Include token security signals (scam risk, honeypot detection) |
176+
| `--include-labels` | No | Include token labels and categories |
177+
| `--include-aggregators` | No | Include aggregator sources that list this token |
178+
| `--include-coingecko-id` | No | Include the CoinGecko identifier for cross-referencing |
179+
| `--include-occurrences` | No | Include occurrence count across chains |
180+
| `--include-rwa-data` | No | Include real-world asset (RWA) data |
176181

177182
### Example
178183

179184
```bash
180185
mm-dev token assets --asset-ids "eip155:1/erc20:0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48,eip155:137/slip44:966"
181186
mm-dev token assets --asset-ids "eip155:1/erc20:0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48" --include-market-data --include-token-security-data --include-labels
187+
mm-dev token assets --asset-ids "eip155:1/slip44:60" --include-aggregators --include-coingecko-id --include-rwa-data
182188
```

skills/metamask-agent-wallet/references/perps.md

Lines changed: 26 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -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
3839
mm-dev perps markets --venue hyperliquid
3940
mm-dev perps markets --venue hyperliquid --symbol BTC
4041
mm-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
251255
mm-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
252258
mm-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
280287
mm-dev perps deposit --venue hyperliquid --amount 100 --asset USDC
288+
mm-dev perps deposit --venue hyperliquid --amount 100 --asset USDC --dry-run
281289
mm-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
309319
mm-dev perps withdraw --venue hyperliquid --amount 50 --asset USDC
320+
mm-dev perps withdraw --venue hyperliquid --amount 50 --asset USDC --include-spot
310321
mm-dev perps withdraw --venue hyperliquid --amount 50 --asset USDC --destination 0x742d35Cc6634C0532925a3b844Bc9e7595f2bD18 --yes
311322
```
312323

0 commit comments

Comments
 (0)