Stop substituting synthetic market data when live quote/history providers fail #14
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
The codebase currently substitutes deterministic fake market data when the upstream quote provider fails, and downstream analysis consumes that data as if it were real.
Why this is a problem:
Observed in:
lib/server/prices.tsfallbackQuote()getQuote()fallback pathgetPriceHistory()synthetic history fallbacklib/server/company-analysis.tsgetQuote()andgetPriceHistory()lib/server/task-processors.tsgetQuote()during portfolio price refreshSuggested direction:
nullor a typed degraded-state result on upstream failure.Acceptance criteria: