@jup-ag/cli 0.1.0 → 0.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +10 -9
- package/dist/index.js +36 -29
- package/docs/config.md +11 -0
- package/docs/perps.md +271 -0
- package/llms.txt +2 -2
- package/package.json +7 -9
package/README.md
CHANGED
|
@@ -21,18 +21,18 @@ curl -fsSL https://raw.githubusercontent.com/jup-ag/cli/main/scripts/install.sh
|
|
|
21
21
|
```bash
|
|
22
22
|
# Generate a new key called 'default'
|
|
23
23
|
jup keys add default
|
|
24
|
-
|
|
25
24
|
# Or import an existing Solana CLI keypair
|
|
26
25
|
jup keys solana-import
|
|
27
26
|
|
|
28
|
-
#
|
|
29
|
-
jup spot
|
|
30
|
-
|
|
31
|
-
# Execute a swap
|
|
27
|
+
# View your spot portfolio
|
|
28
|
+
jup spot portfolio
|
|
29
|
+
# Swap 1 SOL to USDC
|
|
32
30
|
jup spot swap --from SOL --to USDC --amount 1
|
|
33
31
|
|
|
34
|
-
#
|
|
35
|
-
jup
|
|
32
|
+
# Open a 3x long SOL position with $10 USDC
|
|
33
|
+
jup perps open --asset SOL --side long --amount 10 --input USDC --leverage 3
|
|
34
|
+
# View your perps positions
|
|
35
|
+
jup perps positions
|
|
36
36
|
```
|
|
37
37
|
|
|
38
38
|
## Docs
|
|
@@ -42,6 +42,7 @@ See the [`/docs`](./docs/) directory for specific guides and workflows:
|
|
|
42
42
|
- [Setup](docs/setup.md): Installation of the CLI
|
|
43
43
|
- [Config](docs/config.md): CLI settings and configurations
|
|
44
44
|
- [Keys](docs/keys.md): Private key management
|
|
45
|
-
- [Spot](docs/spot.md):
|
|
45
|
+
- [Spot](docs/spot.md): Spot trading, transfers, token and portfolio data
|
|
46
|
+
- [Perps](docs/perps.md): Perps trading (leveraged longs/shorts)
|
|
46
47
|
|
|
47
|
-
> This CLI is designed to be LLM friendly and all commands are non-interactive
|
|
48
|
+
> This CLI is designed to be LLM friendly and **all commands are non-interactive**. Set JSON output mode for structured responses: `jup config set --output json`.
|