Pike Perps CLI - Trade tokens and real world assets on Mantle
npm install pikeperpsTrade tokens and real world assets on Mantle from the command line.
``bash`
npm install -g pikeperps
`bashCreate a new wallet
pike wallet setup
Terminal UI (TUI)
Launch the interactive terminal dashboard for a full-screen trading experience:
`bash
pike terminal # Launch TUI dashboard
pike tui # Alias for terminal
`The TUI provides:
- Real-time portfolio overview with balance and positions
- Live price charts and market data
- Token watchlist with price updates
- Position management interface
- Keyboard navigation (Tab to switch panels, q to quit)
Commands
$3
`bash
pike wallet setup # Create or import a wallet
pike wallet show # Display wallet address
pike wallet balance # Check MNT and token balances
pike wallet export # Export private key
`$3
`bash
pike tokens list # List all available tokens
pike tokens trending # Show trending tokens by volume
pike tokens search # Search tokens by name or symbol
pike tokens info # Get detailed token information
`$3
`bash
pike trade buy # Buy tokens with MNT
pike trade sell # Sell tokens for MNT
pike trade quote # Get price quote
`$3
`bash
pike perp open # Open a leveraged position
pike perp close # Close a position
pike perp list # List all open positions
pike perp pnl # View profit and loss
`Options for opening positions:
-
-s, --side - Position side: long or short (default: long)
- -m, --margin - Margin amount in MNT
- -l, --leverage - Leverage multiplier (1-100)Example:
`bash
pike perp open 0x123...abc --side long --margin 1 --leverage 10
`$3
`bash
pike rwa list # List available RWA assets
pike rwa open # Open RWA position
pike rwa close # Close RWA position
pike rwa positions # View RWA positions
`Available RWA assets:
- Gold (XAU/USD)
- Silver (XAG/USD)
- Crude Oil (WTI)
- Bitcoin (BTC/USD)
- Ethereum (ETH/USD)
- Solana (SOL/USD)
$3
`bash
pike portfolio # View holdings and positions
pike leaderboard # Top traders by PnL
pike history # Transaction history
`$3
`bash
pike config show # View current configuration
pike config set # Update configuration
pike config reset # Reset to defaults
`Configuration options:
-
network - Network to use (testnet or mainnet)
- defaultSlippage - Default slippage percentage (0-50)
- rpcUrl - Custom RPC URL
- subgraphUrl - Custom subgraph URL$3
`bash
pike terminal # Launch interactive TUI dashboard
pike tui # Alias for terminal command
`Wallet Security
Your private key is encrypted with AES-256-GCM and stored locally at
~/.pike/keystore.json. A password is required for every transaction.Wallet options during setup:
- Generate a new wallet with recovery phrase
- Import an existing private key
- Import from mnemonic phrase
Network
Pike Perps CLI operates on Mantle Sepolia testnet by default. You can switch networks using:
`bash
pike config set network mainnet
`Environment Variables
-
PIKEPERPS_SUBGRAPH_URL` - Override the default subgraph endpoint- Node.js 18.0.0 or higher
MIT