get_portfolio
Retrieve a snapshot of a non-IRA brokerage portfolio, including positions, equity breakdown, buying power, open orders, and cash or withdrawal figures.
Instructions
Get a snapshot of the account portfolio.
Returns positions, equity breakdown, buying power, open orders, and cash/withdrawal figures (including cash, totalAccountValue, and availableToWithdraw). Only non-IRA accounts are supported.
buyingPower includes dayTradeBuyingPower, the buying power available for
day trading. It equals buyingPower when the account is not enabled for
day-trade buying power, and is omitted when the API does not report it.
Args: account_id: Account ID. Optional if PUBLIC_COM_ACCOUNT_ID is set.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "get_portfolio"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| account_id | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |