Get holdings
POST /api/tool/execute
Returns normalized holdings for one of the authenticated user's connected brokerage accounts.
OAuth scopes: brokerage:read, tool:execute
Plan: Trade It Pro
Returns: Holding[]
Request body
tool_name*stringSelects this API operation.
get_holdingsParameters for this operation.
account_id*number | stringID of the brokerage account to inspect, from get_accounts.
refreshbooleanWhen true, requests the freshest available brokerage data. Real-time refresh requires a Pro plan and has a 1 minute per-account cooldown. Omit or false to return the last synced data.
Example request
curl https://api.tradeit.app/api/tool/execute \
--request POST \
--header "Authorization: Bearer $TRADE_IT_ACCESS_TOKEN" \
--header "Content-Type: application/json" \
--data '{
"tool_name": "get_holdings",
"params": {
"account_id": 304,
"refresh": true
}
}'Example response
200 OK
This example includes equity holdings, a long option, and a short option.
[
{
"symbol": "AAPL",
"quantity": 1,
"average_price": { "amount": 348.99, "currency": "USD" },
"average_unit_cost": { "amount": 348.99, "currency": "USD" },
"total_cost": { "amount": 348.99, "currency": "USD" },
"market_price": { "amount": 344.06, "currency": "USD" },
"market_value": { "amount": 344.06, "currency": "USD" },
"unrealized_pnl": { "amount": -4.93, "currency": "USD" },
"unrealized_pnl_percent": -1.4126,
"description": "AAPL",
"type": 2,
"side": "long",
"instrument_kind": "equity",
"multiplier": 1,
"price_kind": "brokerage",
"price_as_of": "2026-10-30T19:45:36.348Z"
},
{
"symbol": "TSLA",
"quantity": 2,
"average_price": { "amount": 159, "currency": "USD" },
"average_unit_cost": { "amount": 1.59, "currency": "USD" },
"total_cost": { "amount": 318, "currency": "USD" },
"market_price": { "amount": 3.2, "currency": "USD" },
"market_value": { "amount": 640, "currency": "USD" },
"unrealized_pnl": { "amount": 322, "currency": "USD" },
"unrealized_pnl_percent": 101.2579,
"description": "TSLA261120P00350000",
"type": 2,
"side": "long",
"instrument_kind": "option",
"option_symbol": "TSLA261120P00350000",
"underlying_symbol": "TSLA",
"multiplier": 100,
"price_kind": "brokerage",
"price_as_of": "2026-10-30T19:39:15.142Z"
},
{
"symbol": "TSLA",
"quantity": -2,
"average_price": { "amount": 234, "currency": "USD" },
"average_unit_cost": { "amount": 2.34, "currency": "USD" },
"total_cost": { "amount": 468, "currency": "USD" },
"market_price": { "amount": 4.6, "currency": "USD" },
"market_value": { "amount": -920, "currency": "USD" },
"unrealized_pnl": { "amount": -452, "currency": "USD" },
"unrealized_pnl_percent": -96.5812,
"description": "TSLA261120P00360000",
"type": 2,
"side": "short",
"instrument_kind": "option",
"option_symbol": "TSLA261120P00360000",
"underlying_symbol": "TSLA",
"multiplier": 100,
"price_kind": "brokerage",
"price_as_of": "2026-10-30T19:39:15.142Z"
}
]For short options, quantity and market_value are negative.
Note
Optional fields such as key, display_symbol, and delayed are not returned by every brokerage. Valuation fields can be absent or null when unavailable; warning, when present, explains missing values. See the Holding field reference for all fields and their types.