You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Most retail traders on perpetual futures DEXs are at a systematic disadvantage — they lack the tooling to monitor funding rates, process social signals, and execute decisions at the speed institutions can. Existing bots are either too complex to set up, require handing over your private keys to a third party, or make decisions based on price data alone.
PacificaPilot solves this. It is a fully autonomous, non-custodial trading agent that combines on-chain market data, AI reasoning, and real-time social sentiment to trade Pacifica perpetuals on your behalf — while your private keys never leave your machine.
What It Does
PacificaPilot runs a continuous decision loop for each symbol you configure:
Fetches live market data from Pacifica — mark price, RSI, funding rate, basis spread
Pulls social sentiment from Elfa AI — token mention counts, engagement scores, trending rank
Sends everything to Gemini 2.5 Flash — the AI reasons across all signals and returns LONG / SHORT / HOLD with a confidence score and written reasoning
Executes the trade on Pacifica if confidence clears your threshold
Monitors open positions with trailing stop-loss and take-profit, closes when triggered, logs realized PnL
Streams all activity to a live React dashboard — every decision, every trade, every log line, in real time
Why It's Different
Feature
PacificaPilot
Typical Trading Bot
AI Reasoning Engine
✅ Gemini 2.5 Flash
❌ Rule-based only
Social Sentiment Layer
✅ Elfa AI integration
❌ Price data only
Non-custodial by design
✅ Keys never leave your machine
❌ Often requires key upload
Live PnL Dashboard
✅ Real-time unrealized + realized PnL
❌ Terminal output or none
Sponsor Tool Depth
✅ Pacifica + Elfa + Privy
—
Dry Run / Paper Mode
✅ Default ON
⚠️ Rarely included
Resilient Fallback
✅ Binance kline circuit breaker
❌ Fails silently
Sponsor Tools Used
Sponsor
Integration
Pacifica
Core DEX — all market data fetching, order placement, and position management via the Pacifica REST + WebSocket API
Elfa AI
Social intelligence — token mention counts, engagement scores, and trending rank fed directly into the Gemini AI prompt
Privy
Wallet-based auth — users connect their Ethereum wallet; all dashboard routes are JWT-protected via Privy server SDK
Architecture
PacificaPilot runs entirely on your local machine — frontend, backend, and agent all local. Your Pacifica private key is used locally to sign transactions and is never transmitted anywhere.
# Terminal 1 — Backendcd backend && npm start # → http://localhost:3001# Terminal 2 — Frontendcd frontend && npm run dev # → http://localhost:5173# Terminal 3 — Agent (must run locally; your private key stays on your machine)cd agent && python main.py
Open http://localhost:5173, connect your wallet, configure your parameters, and watch the agent trade.
Trading Logic
Decision Cycle (per symbol, every 5 min by default)
FETCH market data (Pacifica)
└─► FETCH sentiment (Elfa AI)
└─► PROMPT Gemini 2.5 Flash with all signals
└─► IF confidence > threshold AND no open position
└─► PLACE market order (Pacifica)
└─► TRACK with trailing stop-loss
└─► CLOSE on SL/TP hit → LOG realized PnL
Signal Reference
Signal
Source
Bullish
Bearish
RSI-14 (1h)
Pacifica / Binance fallback
< 35 (oversold)
> 65 (overbought)
RSI-14 (5m)
Pacifica / Binance fallback
< 35
> 65
Funding Rate
Pacifica
Negative (shorts pay longs)
Positive (longs pay shorts)
Basis Spread
Pacifica vs Binance
Pacifica < Binance
> 2% premium flag
Social Engagement
Elfa AI
High score + trending
Low / falling score
Risk Profiles
Profile
Stop Loss
Take Profit
Min Confidence
Conservative
2%
4%
75%
Balanced (default)
3%
6%
60%
Aggressive
5%
10%
45%
Pacifica API Integration
Endpoints Used
Endpoint
Purpose
POST /order/create_market
Execute LONG / SHORT trades
GET /api/v1/info/prices
Real-time mark prices
GET /api/v1/position
Fetch open positions
GET /api/v1/balance
Account balance and equity
GET /api/v1/trades
Trade history
GET /api/v1/funding
Funding rate data
GET /api/v1/orderbook
Order book depth
Authentication: Ed25519-signed requests using Pacifica API keypair.
Configuration Reference
All parameters are editable live from the Config tab — no agent restart needed.
Trading perpetual futures involves substantial risk, including potential loss of your entire position. Always run in dry run mode first and verify behaviour before switching to live trading. Past strategy performance does not guarantee future results. You are solely responsible for your trading decisions.