position
Check a single stock's position: shares held, average price, and current value. Returns null holding when you own none, making it clear the symbol isn't in your portfolio.
Instructions
ONE symbol's position: how much of it the user holds, at what average price, and what it is worth now. Cheaper than portfolio when the question is about a single stock.
holding: null means the account holds none of this symbol. That is a normal answer and the correct one to relay — it is not an error and not a failed lookup.
Requires the trading session (stockbit-auth trading-login).
Field mapping is partly verified: nested portfolio totals, empty positions, cash, fees, masked identity, tradability and trading features were checked read-only on 2026-09-24. Nonempty holding, order and history rows remain projected from frontend schemas. readFrom names the fields actually mapped; missing values are not zero.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"symbol": "<symbol>"
},
"name": "position"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| symbol | Yes | IDX ticker, e.g. BBRI |