forked from hypurrquant/perp-cli
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.cursorrules
More file actions
36 lines (32 loc) · 1.33 KB
/
Copy path.cursorrules
File metadata and controls
36 lines (32 loc) · 1.33 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
You have access to perp-cli, a multi-DEX perpetual futures CLI supporting Pacifica (Solana), Hyperliquid (HyperEVM), and Lighter (Ethereum).
## Usage
- Always use `--json` flag for structured output
- Always use `--dry-run` before executing trades
- Use `-e <exchange>` to select exchange (pacifica, hyperliquid, lighter; aliases: pac, hl, lt)
## Common Commands
```bash
perp --json portfolio # cross-exchange overview
perp --json -e hl market list # market data
perp --json -e hl account positions # open positions
perp --json arb scan --min 5 # funding rate arbitrage
perp --json --dry-run -e hl trade market ETH buy 0.1 # simulate trade
perp --json -e hl trade market ETH buy 0.1 # execute trade
perp --json analytics funding --period 30d # funding income analysis
perp --json analytics compare # arb position comparison
```
## MCP Server
perp-cli includes an MCP server (`perp-mcp`) with 18 tools for trading, analytics, and market data. Configure in Cursor settings:
```json
{
"mcpServers": {
"perp-cli": {
"command": "npx",
"args": ["-y", "-p", "perp-cli", "perp-mcp"]
}
}
}
```
## Safety
- Never execute trades without user confirmation
- Always preview with trade_preview before trade_execute
- Use --dry-run for simulations