Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
var Schema string
Functions ¶
func ExportJSON ¶
ExportJSON writes every persisted target allocation to path as a JSON object of symbol -> allocation_pct -- reusing GetAllTargetAllocations (already exported, already returns exactly this shape) verbatim, so catscope-rust-bot's build.rs can read this file instead of opening prefetch.db directly.
func GetAllTargetAllocations ¶
GetAllTargetAllocations reads every persisted target allocation, keyed by symbol.
func GetTargetAllocation ¶
GetTargetAllocation reads symbol's persisted target allocation, if one has ever been set.
func SetTargetAllocation ¶
SetTargetAllocation persists symbol's latest target allocation (fraction of total portfolio value, 0.0-1.0), overwriting whatever was there before -- this table is a latest-write-wins cache, not a history.
Types ¶
This section is empty.
Source Files
¶
- export.go
- schema.go
- store.go