Nilai portofolio saya
get_portfolioReads local IDX portfolio file and calculates market value, unrealized P/L per stock and total, plus estimated net proceeds if sold, realized P/L, dividends, and warnings.
Instructions
Baca file portofolio lokal (IDX_PORTFOLIO_PATH) lalu hitung nilai pasar, untung/rugi belum terealisasi per saham dan total, serta ESTIMASI hasil bersih jika dijual. Jika file berisi riwayat transactions, posisi dihitung dengan metode harga rata-rata, lengkap dengan realizedPnl (untung/rugi penjualan), dividendsReceived (dividen bruto berdasarkan ex-date), posisi yang sudah habis (closed), dan totals.totalReturn. Juga mengecek stock split setelah tanggal beli. Hanya membaca — tidak bisa membeli atau menjual. WAJIB sampaikan isi 'warnings' ke pengguna bersama angka-angkanya, terutama bila totals.incomplete bernilai true.
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 |
|---|---|---|---|
No arguments | |||