Skip to main content

Account Tools

Account data

ToolDescription
get_account_summaryNet liquidation, cash, buying power, margin
get_positionsAll current positions with quantity and avg cost
get_pnlDaily P&L (daily, unrealized, realized)
get_pnl_singlePosition-level P&L for one symbol

Portfolio analytics

ToolDescription
portfolio_exposureGross/net exposure, % deployed, sector breakdown, beta-weighted, portfolio heat
stress_testStress test with configurable shock % (supports beta-adjusted shocks)
size_positionCalculate position size from entry/stop with risk/capital/margin constraints

Streaming

ToolDescription
subscribe_account_updatesReal-time account value and portfolio updates
unsubscribe_account_updatesCancel account subscription
get_account_snapshotLatest values from active subscription