Description
n8n-nodes-pacifica
This is an n8n community node that integrates with Pacifica, a next-generation derivatives trading platform offering perpetual futures trading with AI-powered features.
n8n is a fair-code licensed workflow automation platform.
Pacifica is a perpetual futures DEX with advanced trading features.
Installation
Follow the installation guide in the n8n community nodes documentation.
npm install n8n-nodes-pacifica
Operations
Market Data (Public)
- Get Market Info – Get specifications for all trading pairs
- Get Prices – Get current prices, funding rates, and stats for all symbols
- Get Symbol Price – Get price for a specific symbol
- Get Orderbook – Get order book depth for a symbol
- Get Candles – Get historical OHLCV candlestick data
- Get Mark Price Candles – Get historical candles based on mark price
- Get Recent Trades – Get recent trades for a symbol
- Get Historical Funding – Get historical funding rate data
- Get Account Info – Get account balance, equity, margin details
- Get Account Settings – Get leverage and margin mode settings per symbol
- Get Trade History – Get historical trade records
- Get Equity History – Get historical equity data
- Get Balance History – Get historical balance data
- Get Account Funding – Get funding payments history
- Request Withdrawal – Request a withdrawal from the account
- Create Market Order – Place immediate market orders with slippage control
- Create Limit Order – Place limit orders with GTC, IOC, ALO, or TOB time-in-force
- Create Stop Market Order – Place stop market orders triggered at a price
- Create Stop Limit Order – Place stop limit orders with trigger and limit prices
- Create Position TP/SL – Set take profit and stop loss for an existing position
- Create Multi TP/SL – Create multiple take profit levels with a single stop loss
- Edit Order – Modify price and amount of existing orders
- Cancel Order – Cancel a specific order by ID or client order ID
- Cancel Stop Order – Cancel a stop order by ID or client order ID
- Cancel All Orders – Cancel all open orders (optionally filtered by symbols)
- Batch Orders – Submit multiple orders in a single request
- Get Open Orders – Get all currently open orders
- Get Order History – Get historical order records
- Get Order By ID – Get a specific order by its ID
- Get Positions – Get all open positions
- Update Leverage – Update leverage for a symbol
- Update Margin Mode – Switch between cross and isolated margin
- Close Position – Close a position with a market order
- n8n version: >= 1.0.0
- Node.js version: >= 20.15
- Pacifica Documentation
- Pacifica API Reference
- n8n Community Nodes Documentation
- Pacifica Python SDK
Account (Authenticated)
Orders (Authenticated + Signing)
Positions (Authenticated)
Credentials
To use this node, you need to set up API credentials:
1. Go to https://app.pacifica.fi/apikey to generate an Agent Wallet
2. In n8n, create new Pacifica API credentials with:
– Network: Mainnet or Testnet
– Account Address: Your main wallet public address
– Agent Wallet Address: The generated agent wallet public address
– Agent Private Key: The agent wallet private key (used for signing)
The Agent Wallet can only execute trades and cannot withdraw funds, making it safe for automated trading.
Compatibility
Resources
Development
Install dependencies
npm installBuild the project
npm run buildWatch for changes
npm run devLint code
npm run lint