snapshot_portfolio_nav
Store today's portfolio NAV snapshot locally for history and TWR tracking. Trigger only when explicitly requested; scheduled job captures daily NAV automatically.
Instructions
Store today's portfolio NAV snapshot for history and TWR (local write).
Only on an explicit request to store a snapshot now: the scheduled 18:10 KST job stores
the daily NAV, and reading returns or history needs no snapshot.
Re-running appends an immutable version and moves that date's representative, unless the scheduled
18:10 capture with crypto evidence holds it (snapshot.representative false). Writes only derived
valuations to the local SQLite store; no broker state is modified. Intended for
a daily schedule (see deploy/ for a systemd timer / cron example).
Args: snapshot_date: ISO YYYY-MM-DD (default: today); other dates are refused because collection uses current prices, not historical NAV.
Returns: Structured JSON envelope with the stored snapshot.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| snapshot_date | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||