Account management workflows require an authenticated
session.
Review Account Health
Start with the account’s current collateral and exposure when showing portfolio health or checking whether a trade fits the account’s risk state.Balances
Use balances to show collateral by asset and account value.- TypeScript
- Python
- API
Output: PerpsBalance[]
Output: PerpsBalance[]
Portfolio
Use the portfolio to show open positions, margin usage, withdrawable collateral, and liquidation state.- TypeScript
- Python
- API
Output: PerpsPortfolio
Output: PerpsPortfolio
Account Stats
Use account stats to review trailing 7-day trading activity such as volume and maker share. Stats are cached by UTC day and may be stale by up to 24 hours. See Fee Metrics for what each metric means.- TypeScript
- Python
- API
Output: PerpsAccountStats
Output: PerpsAccountStats
Reconcile Orders and Fills
Use order state and fills to connect submitted orders with resting liquidity, executions, fees, and exposure changes.Open Orders
Use open orders to show what is still resting on the book.- TypeScript
- Python
- API
Output: PerpsOrder[]
Output: PerpsOrder[]
Orders
Use orders to inspect the latest known state for submitted orders.- TypeScript
- Python
- API
Output: PerpsOrder[]
Output: PerpsOrder[]
Fills
Use fills to reconcile executions, fees, realized PnL, and exposure changes.- TypeScript
- Python
- API
Output: PerpsAccountFill[]
Output: PerpsAccountFill[]
Reconcile Funding and Transfers
Funding, deposits, and withdrawals explain collateral changes that did not come from order fills. Use Fund Your Account for deposit and withdrawal submission workflows.Funding Payments
Use funding payments to explain periodic funding debits or credits for a market.- TypeScript
- Python
- API
Output: PerpsAccountFundingPayment[]
Output: PerpsAccountFundingPayment[]
Deposits
Use deposits to reconcile collateral added to the Perps account.- TypeScript
- Python
- API
Output: PerpsDeposit[]
Output: PerpsDeposit[]
Withdrawals
Use withdrawals to reconcile collateral leaving the Perps account.- TypeScript
- Python
- API
Output: PerpsWithdrawal[]
Output: PerpsWithdrawal[]
Track Equity and PnL
Use equity and PnL history to explain how the account’s value changed over time.Equity
Use equity history to chart account value over time.- TypeScript
- Python
- API
Output: PerpsEquityPoint[]
Output: PerpsEquityPoint[]
PnL
Use PnL history to chart account profit and loss over the same interval.- TypeScript
- Python
- API
Output: PerpsPnlPoint[]
Output: PerpsPnlPoint[]