pikeperps
v1.1.0
Published
Pike Perps CLI - Trade tokens and real world assets on Mantle
Maintainers
Readme
Pike Perps CLI
Trade tokens and real world assets on Mantle from the command line.
Installation
npm install -g pikeperpsQuick Start
# Create a new wallet
pike wallet setup
# View your balance
pike wallet balance
# Browse available tokens
pike tokens list
# View trending tokens
pike tokens trendingTerminal UI (TUI)
Launch the interactive terminal dashboard for a full-screen trading experience:
pike terminal # Launch TUI dashboard
pike tui # Alias for terminalThe 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
Wallet
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 keyTokens
pike tokens list # List all available tokens
pike tokens trending # Show trending tokens by volume
pike tokens search <query> # Search tokens by name or symbol
pike tokens info <address> # Get detailed token informationTrading
pike trade buy <token> <amount> # Buy tokens with MNT
pike trade sell <token> <amount> # Sell tokens for MNT
pike trade quote <token> <amount> # Get price quotePerpetuals
pike perp open <token> # Open a leveraged position
pike perp close <positionId> # Close a position
pike perp list # List all open positions
pike perp pnl # View profit and lossOptions for opening positions:
-s, --side <side>- Position side: long or short (default: long)-m, --margin <amount>- Margin amount in MNT-l, --leverage <number>- Leverage multiplier (1-100)
Example:
pike perp open 0x123...abc --side long --margin 1 --leverage 10Real World Assets (RWA)
pike rwa list # List available RWA assets
pike rwa open <asset> # Open RWA position
pike rwa close <positionId> # Close RWA position
pike rwa positions # View RWA positionsAvailable RWA assets:
- Gold (XAU/USD)
- Silver (XAG/USD)
- Crude Oil (WTI)
- Bitcoin (BTC/USD)
- Ethereum (ETH/USD)
- Solana (SOL/USD)
Portfolio
pike portfolio # View holdings and positions
pike leaderboard # Top traders by PnL
pike history # Transaction historyConfiguration
pike config show # View current configuration
pike config set <key> <value> # Update configuration
pike config reset # Reset to defaultsConfiguration options:
network- Network to use (testnet or mainnet)defaultSlippage- Default slippage percentage (0-50)rpcUrl- Custom RPC URLsubgraphUrl- Custom subgraph URL
Terminal
pike terminal # Launch interactive TUI dashboard
pike tui # Alias for terminal commandWallet 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:
pike config set network mainnetEnvironment Variables
PIKEPERPS_SUBGRAPH_URL- Override the default subgraph endpoint
Requirements
- Node.js 18.0.0 or higher
License
MIT
