
Research
/Security News
Miasma Mini Shai-Hulud Hits ImmobiliareLabs npm Packages
Miasma Mini Shai-Hulud hits @immobiliarelabs Backstage plugins, targeting GitLab and LDAP auth packages on npm.
@2oolkit/pacifica-cli
Advanced tools
CLI toolkit & MCP server for trading perpetual futures on Pacifica exchange — crypto, forex, commodities, equities on Solana
Trade perpetual futures on Pacifica — a decentralized derivatives exchange on Solana — from your terminal or AI agent.
One package, three interfaces:
| Interface | Command | Use Case |
|---|---|---|
| CLI | pacifica-cli | Terminal trading, scripting, automation |
| MCP Server | pacifica-mcp | AI agents (Claude, Cursor, Windsurf, etc.) |
| OpenClaw Skill | skill/SKILL.md | AI agent ecosystem (OpenClaw, ClawdBot) |
25+ perpetual instruments: crypto (BTC, ETH, SOL), forex (EURUSD), commodities (XAU, XAG), equities (NVDA, GOOGL).
npm install -g @2oolkit/pacifica-cli
This installs both pacifica-cli (CLI) and pacifica-mcp (MCP server).
# 1. Interactive setup (prompts for private key)
pacifica-cli config init
# 2. Check a price (no auth needed)
pacifica-cli market prices --symbol BTC
# 3. Place a market buy
pacifica-cli order market -s BTC -a 0.001 --side bid
# 4. View open positions
pacifica-cli position list
Interactive setup (recommended):
pacifica-cli config init
Prompts for your Ed25519 private key (base58 encoded). Account address is automatically derived.
Manual setup:
pacifica-cli config set privateKey <base58-ed25519-private-key>
Environment variables (CI/CD, Docker):
export PACIFICA_WALLET_PRIVATE_KEY=<your-private-key>
export PACIFICA_WALLET_ADDRESS=<your-wallet-address>
Config is stored at ~/.pacifica-cli/config.json with 0600 permissions.
pacifica-cli market info # List all instruments
pacifica-cli market info --symbol ETH # Filter by symbol
pacifica-cli market prices # All symbol prices
pacifica-cli market prices --symbol BTC # Single symbol
pacifica-cli market orderbook BTC # Orderbook
pacifica-cli market orderbook BTC --depth 5 # With aggregation
pacifica-cli market trades ETH # Recent trades
pacifica-cli market candles BTC -i 4h # Candlestick data (default 200 bars)
pacifica-cli market candles BTC -i 1m -c 4000 # Up to 4000 bars in one request (per-request max)
pacifica-cli market candles BTC -i 1m -c 8000 # >4000 auto-paginates across requests
pacifica-cli market funding SOL -l 50 # Funding rate history
Candles (market candles): The Pacifica /kline API returns at most 4000 bars per
request. Use -c, --count <n> to fetch the N most recent bars (default 200); when n exceeds
4000 the CLI auto-paginates by windowing the time range backwards, deduping and sorting ascending
by time, and returns up to n bars. Intervals: 1m, 3m, 5m, 15m, 30m, 1h, 2h, 4h, 8h, 12h, 1d.
For an explicit window use --start <ms> (and optional --end <ms>); a range wider than the
4000-bar cap is rejected with a clear message — use --count to page through more.
# Market order
pacifica-cli order market -s ETH -a 0.1 --side bid
pacifica-cli order market -s ETH -a 0.1 --side ask --reduce-only
# Limit order
pacifica-cli order limit -s BTC -p 60000 -a 0.01 --side bid
pacifica-cli order limit -s BTC -p 70000 -a 0.01 --side ask --tif IOC
# With take-profit / stop-loss
pacifica-cli order market -s ETH -a 0.1 --side bid --tp 2500 --sl 1800
# Manage
pacifica-cli order list # Open orders
pacifica-cli order history -l 50 # Order history
pacifica-cli order cancel -s ETH --order-id 123456
pacifica-cli order cancel-all # Cancel all
pacifica-cli order cancel-all -s ETH # Cancel all for symbol
Order options:
| Option | Required | Description | Default |
|---|---|---|---|
-s, --symbol | Yes | Trading symbol | — |
-a, --amount | Yes | Order amount | — |
--side | Yes | bid (buy) or ask (sell) | — |
-p, --price | Limit only | Limit price | — |
--tif | No | GTC, IOC, ALO, TOB | GTC |
--slippage | No | Max slippage percent | 0.5 |
--reduce-only | No | Reduce-only order | false |
--tp | No | Take profit stop price | — |
--sl | No | Stop loss stop price | — |
pacifica-cli position list # All open positions
pacifica-cli account info # Balances & equity
pacifica-cli account settings # Margin & leverage settings
pacifica-cli account leverage -s BTC -l 20 # Set leverage
pacifica-cli account margin-mode -s BTC --mode isolated
pacifica-cli account trades -s ETH -l 20 # Trade history
pacifica-cli account funding-history -l 20 # Funding payments
pacifica-cli config init # Interactive setup
pacifica-cli config set <key> <value> # Set a value
pacifica-cli config get <key> # Get a value
pacifica-cli config list # Show all (secrets masked)
All commands support -o json for scripting and piping:
pacifica-cli market prices -o json
pacifica-cli order list -o json | jq '.[].order_id'
The MCP (Model Context Protocol) server exposes all Pacifica functionality as tools for AI agents. Works with Claude Code, Claude Desktop, Cursor, Windsurf, and any MCP-compatible client.
claude mcp add pacifica -- pacifica-mcp
Add to your MCP config file:
{
"mcpServers": {
"pacifica": {
"command": "pacifica-mcp",
"env": {
"PACIFICA_WALLET_PRIVATE_KEY": "<your-private-key>"
}
}
}
}
Or without global install:
{
"mcpServers": {
"pacifica": {
"command": "npx",
"args": ["-y", "-p", "@2oolkit/pacifica-cli", "pacifica-mcp"],
"env": {
"PACIFICA_WALLET_PRIVATE_KEY": "<your-private-key>"
}
}
}
}
The env field passes your credentials directly to the MCP server — no separate CLI config needed. Alternatively, you can set up credentials via pacifica-cli config init and omit the env field.
| Category | Tools | Auth Required |
|---|---|---|
| Market Data | get_market_info, get_prices, get_orderbook, get_recent_trades, get_candles, get_historical_funding | No |
| Orders | create_market_order, create_limit_order, cancel_order, cancel_all_orders, get_open_orders, get_order_history | Yes |
| Positions | get_positions | Yes |
| Account | get_account_info, get_account_settings, get_trade_history, get_funding_history | Yes |
| Settings | update_leverage, update_margin_mode | Yes |
Credentials can be provided in two ways:
env field in MCP config (recommended) — set PACIFICA_WALLET_PRIVATE_KEY directly in your MCP config as shown abovepacifica-cli config init and the MCP server reads ~/.pacifica-cli/config.json automaticallyThis package includes an OpenClaw skill definition for AI agent ecosystems. The skill file is located at skill/SKILL.md with detailed reference docs in skill/references/.
Compatible with OpenClaw, ClawdBot, and other agent skill platforms.
# Long position → sell reduce-only
pacifica-cli order market -s ETH -a 0.1 --side ask --reduce-only
# Short position → buy reduce-only
pacifica-cli order market -s ETH -a 0.1 --side bid --reduce-only
Always use --reduce-only when closing positions to prevent accidentally opening the opposite direction.
pacifica-cli order market -s ETH -a 0.1 --side bid --tp 2500 --sl 1800
pacifica-cli order limit -s ETH -p 2000 -a 0.1 --side bid
pacifica-cli order limit -s ETH -p 1950 -a 0.1 --side bid
pacifica-cli order limit -s ETH -p 1900 -a 0.1 --side bid
pacifica-cli account info -o json # Balance & equity
pacifica-cli position list -o json # Open positions
pacifica-cli order list -o json # Open orders
--reduce-only for all exit orders — prevents accidental position flipspacifica-cli market info --symbol BTCpacifica-cli account infoconfig init hides your private key as you type (displays *)0600 (owner read/write only)tweetnacl, only signatures are transmitted| Variable | Description |
|---|---|
PACIFICA_WALLET_PRIVATE_KEY | Wallet private key (Ed25519, base58) |
PACIFICA_WALLET_ADDRESS | Wallet address / public key (base58) |
MIT
FAQs
CLI toolkit & MCP server for trading perpetual futures on Pacifica exchange — crypto, forex, commodities, equities on Solana
We found that @2oolkit/pacifica-cli demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Research
/Security News
Miasma Mini Shai-Hulud hits @immobiliarelabs Backstage plugins, targeting GitLab and LDAP auth packages on npm.

Security News
Rolldown paused Rust React Compiler integration after a 5MB binary size increase raised concerns about shipping React-specific code to all Vite users.

Security News
/Research
Mini Shai-Hulud expands into the Go ecosystem after hitting LeoPlatform npm packages and targeting GitHub Actions workflows.