feat: add portfolio

This commit is contained in:
ytshih committed 2026-09-11 09:54:49 +08:00
1 parent ba63c5deb0
commit f09cf4d5c2
11 files changed
+669 -38

No files matched your search

+6 -1
View File
@@ -13,7 +13,12 @@ import (
// AdvisorPreamble is prepended to the shared data prompt when consulting an
// advisor CLI (multi-agent mode) — advisors get a simpler ask than Claude's
// SystemPrompt: an independent take, no recommendations-JSON contract.
// SystemPrompt: an independent take, no recommendations-JSON contract, and
// deliberately no amount/leverage/portfolio framing. Advisor output is
// plain-text commentary only (AdvisorResult.Output); it is folded into
// Claude's prompt by AppendAdvisorSection as opinions to weigh, never parsed
// into report.Recommendation. Only Claude's own final response — via
// SplitReport — ever drives portfolio.Apply's trade execution.
const AdvisorPreamble = `You are a financial analyst. Given the following market prices and recent news for a fixed watchlist (crypto, NASDAQ equities, futures, forex), give a concise independent investment analysis: what stands out, and any assets you'd flag as a buy or sell with a one-sentence reason each. Plain text, under 400 words.`
// AdvisorResult is one advisor CLI's outcome. Err is set (and Output empty)