Skip to main content
The server exposes the tools below, grouped by category. Access indicates the mode required:
  • Read tools are GET requests and work in any mode, including read-only (ADDRESS only).
  • Write tools are signed POST requests and require a signing key (AGENT_PRIVATE_KEY or PRIVATE_KEY). In read-only mode they return a clear “read-only mode” error.
  • On-chain tools sign and send a Solana transaction directly rather than calling the REST API, so they require PRIVATE_KEY specifically - an agent key cannot sign on-chain transactions.
See Configuration for how to set the mode.

Markets

Market data and exchange info. All read-only.
ToolAccessDescription
getInfoReadExchange/market info (tick and lot size, max leverage, order limits) for all tradable pairs.
getPricesReadFunding, mark, oracle, and mid prices, plus open interest and 24h volume, for all pairs.
getOrderbookReadCurrent orderbook snapshot (bids and asks) for a pair.
getRecentTradesReadRecent trades for a pair.
getKlineReadCandlestick (K-line) data for a pair and time interval.
getMarkPriceKlineReadMark-price candlestick data for a pair and time interval.
getSparklinesReadCompact sparkline price series for one or more pairs.
getFeesReadFee tiers and their maker/taker fee rates.
getFundingRateHistoryReadFunding rate history for a pair (cursor-paginated).
getAggregatedFundingRatesReadAggregated funding rates across exchanges.
getLoanPoolReadLoan pool statistics (borrowed, borrowable, utilization, APR/APY).
getPositionLiquidationPricesReadLiquidation prices for the account’s open positions.
getCurrentTimeReadCurrent server time in milliseconds since the Unix epoch.

Account

Account info, settings, and history.
ToolAccessDescription
getAccountInfoReadHigh-level account info: balance, equity, margin usage, fee tier, and spot balances.
getAccountSettingsReadNon-default margin/leverage settings, auto-lend status, and per-asset spot settings.
getAccountLoanInfoReadLoan info: borrowed amounts, pending interest, and collateral utilization.
getPortfolioHistoryReadAccount equity and PnL history over a time range.
getBalanceHistoryReadBalance-change history: deposits, withdrawals, transfers, and payouts.
getFundingHistoryReadFunding-payment history on perpetual positions (cursor-paginated).
getDailyAccountActivityReadDaily activity summary (points, fees, volume) for a time range.
getPayoutHistoryReadPayout history (cursor-paginated).
getDepositHistoryReadDeposit history (cursor-paginated).
getWithdrawalHistoryReadWithdrawal history (cursor-paginated).
getPendingWithdrawalsReadPending withdrawals not yet batched.
updateLeverageWriteSet the leverage multiplier for a pair.
updateMarginModeWriteSwitch a pair between isolated and cross margin.
updateSpotSettingsWriteSet whether a spot asset is included in unified margin collateral.
setAutoLendDisabledWriteSet the auto-lend preference for spot collateral.
withdrawWriteWithdraw funds from the perp account.
bindAgentWalletWriteBind an agent wallet to the account (legacy direct-bind endpoint).

Orders & Positions

Order management and position tools.
ToolAccessDescription
getOpenOrdersReadAll open (unfilled) orders for the account.
getOrderHistoryReadSummarized order history (cursor-paginated).
getOrderHistoryByIdReadFull event history of a single order by ID.
getCurrentPositionsReadAll currently held positions.
getPositionHistoryReadPer-fill trade/position history (cursor-paginated, max 30-day range).
getOpenTwapOrdersReadAll running TWAP orders.
getTwapOrderHistoryReadSummarized TWAP order history (cursor-paginated).
getTwapOrderHistoryByIdReadFull per-event history of a single TWAP order by ID.
openOrderWriteCreate a limit order, optionally with an attached take-profit and/or stop-loss.
createMarketOrderWriteCreate a market order with max slippage, optionally with TP/SL.
editOrderWriteEdit a limit order (cancels the original and creates a new post-only order).
cancelOrderWriteCancel an unfilled order by symbol and order ID.
cancelAllOrdersWriteCancel all unfilled orders, or all for a single pair.
createStopOrderWriteCreate a standalone stop-loss/take-profit order.
cancelStopOrderWriteCancel a stop-loss/take-profit order by ID.
setPositionTpslWriteAttach take-profit and/or stop-loss to an existing position.
addIsolatedMarginWriteAdd USDC margin to an isolated position.
createTwapOrderWriteCreate a TWAP order that splits the total amount into market sub-orders over a duration.
cancelTwapOrderWriteCancel a running TWAP order by ID.
batchOrdersWriteExecute up to 10 order actions (create, cancel, edit, TP/SL) in one request.

Spot

Spot asset data, balances, and withdrawals.
ToolAccessDescription
getSpotAssetsReadList available spot assets and their parameters.
getBridgeInfoReadBridge parameters for all spot assets.
getBridgeParametersReadBridge parameters for a single spot asset.
getSpotBalanceHistoryReadSpot asset balance history (cursor-paginated).
getSpotDepositHistoryReadSpot asset deposit history (cursor-paginated).
getSpotWithdrawalHistoryReadSpot asset withdrawal history (cursor-paginated).
getPendingSpotWithdrawalsReadPending spot asset withdrawals not yet batched.
withdrawSpotAssetWriteQueue an on-chain spot asset withdrawal to your wallet (not reversible).

Funding

On-chain tools that fund your wallet and exchange balance. They sign and send Solana transactions directly rather than calling the REST API, so they require PRIVATE_KEY - an agent key cannot sign on-chain transactions - and they use SOLANA_RPC_URL (defaults to public devnet). See Configuration.
ToolAccessDescription
mintUsdpOn-chainMint test USDP into your wallet’s token account. Testnet only - registered only when PACIFICA_BASE_URL targets testnet.
depositUsdpOn-chainDeposit your wallet’s USDC/USDP into the Pacifica exchange balance used for trading. Works on testnet and mainnet; on mainnet it moves real USDC.
On testnet, a typical flow is mintUsdp to credit your wallet, then depositUsdp to move those funds into your exchange balance.