@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 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
- # Get a swap quote
29
- jup spot quote --from SOL --to USDC --amount 1
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
- # Check your portfolio
35
- jup spot portfolio
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): Swaps, transfers, token and portfolio data
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. Set JSON output mode for structured responses: `jup config set --output json`.
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`.