The Account endpoints provide full visibility into a trader’s state on Pacifica, from high-level equity and positions to granular balance events and spot asset management. All read-only (GET) endpoints require only theDocumentation Index
Fetch the complete documentation index at: https://mintlify.com/pacifica-fi/docs-migrate/llms.txt
Use this file to discover all available pages before exploring further.
account query parameter; all mutating (POST) endpoints require a cryptographic signature.
All POST endpoints on this page require request signing. See the Authentication guide for details.
GET /api/v1/account — Get Account Info
Returns high-level account data: balance, fee tier, equity, margin usage, open position and order counts, and per-asset spot balances. RequestAccount wallet address.
Account balance in USD before settlement.
Current fee tier, determined by trading volume.
Current maker fee rate.
Current taker fee rate.
Balance + unrealized PnL + isolated margin + raw spot market value.
Equity available to margin new positions and orders.
Amount available for withdrawal.
Balance pending deposit confirmation.
Accrued loan interest not yet repaid.
Total USD value of spot assets used as unified margin collateral.
Cross-margin equity after unified-margin collateral rules.
null if not applicable.Raw marked-to-market value of positive spot balances before haircuts.
Equity currently used to margin open positions and orders.
Maintenance margin required under cross margin mode.
Number of open positions (isolated and cross).
Number of open orders across all markets (excludes stop orders).
Number of open stop orders.
Timestamp (ms) of the last account update.
Per-asset spot balances.
GET /api/v1/account/settings — Get Account Settings
Returns account-level margin mode and leverage settings that differ from their defaults. Upon account creation all markets default to cross margin with maximum leverage; markets with default settings are not returned. RequestAccount wallet address.
Whether automatic lending is disabled.
null means the default (enabled).Non-default margin and leverage settings per symbol.
Per-asset spot settings for unified margin.
POST /api/v1/account/leverage — Update Leverage
Changes the leverage setting for a specific trading pair. For symbols with open positions, leverage can only be increased.This endpoint requires a signed request. Set the
type header field to "update_leverage". See Authentication.User’s wallet address.
Cryptographic signature.
Current timestamp in milliseconds.
Trading pair symbol.
New leverage value.
Agent wallet address.
Signature expiry in milliseconds.
POST /api/v1/account/margin — Update Margin Mode
Switches between isolated and cross margin modes for a specific trading pair. Cannot be changed while a position is open on that symbol.This endpoint requires a signed request. Set the
type header field to "update_margin_mode". See Authentication.User’s wallet address.
Cryptographic signature.
Current timestamp in milliseconds.
Trading pair symbol.
true for isolated margin, false for cross margin.Agent wallet address.
Signature expiry in milliseconds.
GET /api/v1/positions — Get Positions
Returns all currently open positions for a given account. RequestAccount wallet address.
Trading pair symbol.
"bid" (long) or "ask" (short).Position size in the asset’s base unit.
VWAP entry price of the position.
Margin allocated to an isolated position. Only populated for isolated positions.
Cumulative funding paid since the position was opened, in USD.
Whether the position uses isolated margin.
Estimated liquidation price.
null if not applicable.Timestamp (ms) when the position was opened.
Timestamp (ms) of the last position update.
Exchange-wide sequential nonce for reliable event ordering.
GET /api/v1/trades/history — Get Trade History
Returns paginated trade history for an account, optionally filtered by symbol and time range. RequestUser’s wallet address.
Filter by market symbol, e.g.
BTC.Start time in milliseconds.
End time in milliseconds.
Maximum records to return. Defaults to
100.Pagination cursor.
Unique ID for this trade event.
Order that resulted in this trade.
Client-defined UUID if provided.
Trading pair symbol.
Trade size in base units.
Current market price at event time.
Price at which the trade was executed.
Fee paid in USD.
Realized PnL from this trade event in USD.
"fulfill_taker" if the account was the taker; "fulfill_maker" if the maker.One of
"open_long", "open_short", "close_long", "close_short".Timestamp (ms) of the trade event.
"normal", "market_liquidation", "backstop_liquidation", or "settlement".Cursor for the next page.
true when additional pages exist.GET /api/v1/funding/history — Get Funding History
Returns paginated funding payment history for an account. RequestUser’s wallet address.
Maximum records to return. Defaults to the system-defined limit.
Pagination cursor.
Unique ID for this funding event.
Trading pair symbol.
Whether the position was long (
"bid") or short ("ask").Position size (in token denomination) at time of funding.
Funding paid in USD. Positive means received; negative means paid.
Funding rate used to calculate the payout.
Timestamp (ms) of the funding payment.
Cursor for the next page.
true when additional pages exist.GET /api/v1/portfolio — Get Account Equity History
Returns time-series account equity and PnL snapshots for charting or analytics. RequestUser’s wallet address.
Pre-defined time window:
1d, 7d, 14d, 30d, or all.Start time in milliseconds (overrides
time_range lower bound).End time in milliseconds.
Maximum records to return. Defaults to
100.Account equity (balance + unrealized PnL) at the snapshot time.
Cumulative PnL of the account since creation.
Timestamp (ms) of the snapshot.
GET /api/v1/account/balance/history — Get Account Balance History
Returns all balance-affecting events for an account (deposits, withdrawals, fees, funding, etc.). RequestUser’s wallet address.
Maximum records to return. Defaults to the system-defined limit.
Pagination cursor.
Change in balance from this event.
Account balance after the event.
Pending balance after the event.
Type of balance event. Possible values:
| Value | Description |
|---|---|
deposit | Deposit funds to account |
deposit_release | Release of a previously pending deposit |
withdraw | Withdrawal from account |
trade | Trading activity (fees, realized PnL) |
market_liquidation | Liquidation by market orders |
backstop_liquidation | Liquidation by backstop mechanism |
adl_liquidation | Liquidation by auto-deleveraging |
subaccount_transfer | Transfer between subaccounts |
funding | Funding payment |
payout | Payout event (e.g. affiliate program) |
Timestamp (ms) of the balance event.
Cursor for the next page.
true when additional pages exist.POST /api/v1/account/withdraw — Request Withdrawal
Initiates a USDC withdrawal from the account to the connected wallet.This endpoint requires a signed request. Set the
type header field to "withdraw". See Authentication.User’s wallet address.
Cryptographic signature.
Current timestamp in milliseconds.
Amount to withdraw in USDC, e.g.
"100.50".Agent wallet address.
Signature expiry in milliseconds.
GET /api/v1/account/loan — Get Account Loan Info
Returns loan and collateral information for an account under unified margin, including borrowed amounts, accrued interest, and per-asset collateral values. RequestAccount wallet address.
Current borrowed amount in USD.
Accrued interest not yet repaid.
Ratio of borrowed amount to total spot collateral capacity.
Cumulative interest earned as a lender.
Cumulative interest paid as a borrower (returned as a positive number).
Spot balances with collateral contribution details.
Timestamp (ms) of the last data update.
POST /api/v1/positions/add_isolated_margin — Add Isolated Margin
Transfers USDC from the free balance into the isolated margin pool of a specific position.This endpoint requires a signed request. Set the
type header field to "add_isolated_margin". See Authentication.User’s wallet address.
Cryptographic signature.
Current timestamp in milliseconds.
Trading pair symbol.
Amount of USDC to add as isolated margin.
Agent wallet address.
Signature expiry in milliseconds.
POST /api/v1/account/settings/spot — Update Spot Settings
Updates per-asset spot settings, such as excluding a spot asset from unified margin collateral calculations.This endpoint requires a signed request. Set the
type header field to "update_account_spot_settings". See Authentication.User’s wallet address.
Cryptographic signature.
Current timestamp in milliseconds.
Spot asset symbol, e.g.
SOL.true to exclude this asset from unified margin collateral; false to include it.Agent wallet address.
Signature expiry in milliseconds.
POST /api/v1/account/settings/auto_lend_disabled — Toggle Auto-Lending
Enables or disables automatic lending of idle USDC balances to the loan pool.This endpoint requires a signed request. Set the
type header field to "set_auto_lend_disabled". See Authentication.User’s wallet address.
Cryptographic signature.
Current timestamp in milliseconds.
true to disable auto-lending, false to enable, or null to restore the default (enabled).Agent wallet address.
Signature expiry in milliseconds.
GET /api/v1/account/spot_balance/history — Get Spot Balance History
Returns paginated balance event history for spot assets held on the account. RequestUser’s wallet address.
Filter by spot asset symbol, e.g.
SOL.Maximum records to return. Defaults to the system-defined limit.
Pagination cursor.
Change in balance from this event.
Spot asset balance after the event.
Spot asset symbol.
Type of balance event (e.g.
"deposit", "withdrawal").Timestamp (ms) of the event.
Cursor for the next page.
true when additional pages exist.POST /api/v1/account/spot_asset/withdraw — Withdraw Spot Asset
Submits a withdrawal request for a spot asset.This endpoint requires a signed request. Set the
type header field to "withdraw_spot_asset". See Authentication.User’s wallet address.
Cryptographic signature.
Current timestamp in milliseconds.
Spot asset symbol, e.g.
SOL.Amount to withdraw.
Full UUID to prevent duplicate withdrawals.
Agent wallet address.
Signature expiry in milliseconds.
Spot asset symbol.
Nonce of the withdrawal batch.
Amount requested for withdrawal.
Fee deducted from the withdrawal.
GET /api/v1/account/spot_asset/withdraw/pending — Get Pending Spot Withdrawals
Returns all pending spot asset withdrawals for an account awaiting on-chain settlement. RequestUser’s wallet address.
Spot asset symbol.
Net amount to be received after fees.
Original requested withdrawal amount.
Fee deducted.
Nonce of the withdrawal batch.
Timestamp (ms) when the withdrawal was requested.
GET /api/v1/account/spot_asset/deposit/history — Get Spot Deposit History
Returns paginated spot asset deposit history for an account. RequestUser’s wallet address.
Maximum records to return. Defaults to the system-defined limit.
Pagination cursor.
Spot asset symbol.
Amount deposited.
On-chain transaction identifier.
Timestamp (ms) of the deposit.
Cursor for the next page.
true when additional pages exist.GET /api/v1/account/spot_asset/withdraw/history — Get Spot Withdrawal History
Returns paginated spot asset withdrawal history for an account. RequestUser’s wallet address.
Maximum records to return. Defaults to the system-defined limit.
Pagination cursor.
Spot asset symbol.
Amount withdrawn.
Nonce of the withdrawal batch.
On-chain transaction identifier.
Timestamp (ms) of the withdrawal.
Cursor for the next page.
true when additional pages exist.