Files
stonks/internal/report/report.go
T
2026-09-05 09:55:24 +08:00

19 lines
670 B
Go

// Package report defines the shared shape produced by internal/analyze and
// consumed by internal/output, decoupling the two from each other.
package report
// Recommendation is a single buy/sell call with a short reason, surfaced
// separately from the main narrative report (e.g. as a Discord embed).
type Recommendation struct {
Symbol string `json:"symbol"`
Action string `json:"action"` // "buy" or "sell"
Reason string `json:"reason"`
}
// Report is the full output of one analysis run: the long-form narrative
// text plus an optional short list of buy/sell recommendations.
type Report struct {
Text string
Recommendations []Recommendation
}