Class SymbolAnalysisPriceSeriesService
java.lang.Object
com.bluebell.greenhouse.radicle.services.symbol.analysis.SymbolAnalysisPriceSeriesService
Builds symbol analysis price series payloads from historical market prices.
- Version:
- 3.0.6
- Author:
- Stephen Prizio
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuildPriceSeries(List<MarketPrice> marketPrices) Builds the price series response from the given market prices.loadMarketPrices(SymbolAnalysisContext context) Loads the relevant market prices for the given context.normalizeMarketPricesForAnalysis(SymbolAnalysisContext context, List<MarketPrice> marketPrices) Normalizes the loaded market prices for symbol-analysis calculations.queueRefreshIfNeeded(SymbolAnalysisContext context, List<MarketPrice> marketPrices) Queues a background EOD refresh when the stored symbol-analysis window appears incomplete or stale.
-
Constructor Details
-
SymbolAnalysisPriceSeriesService
public SymbolAnalysisPriceSeriesService()
-
-
Method Details
-
loadMarketPrices
Loads the relevant market prices for the given context.- Parameters:
context-SymbolAnalysisContext- Returns:
ListofMarketPrice
-
normalizeMarketPricesForAnalysis
public List<MarketPrice> normalizeMarketPricesForAnalysis(SymbolAnalysisContext context, List<MarketPrice> marketPrices) Normalizes the loaded market prices for symbol-analysis calculations.Daily EOD bars are converted onto an adjusted-price basis when adjusted close values are available so the downstream statistics and charts stay aligned with adjusted provider charts.
- Parameters:
context-SymbolAnalysisContextmarketPrices- current stored market prices- Returns:
- normalized
ListofMarketPrice
-
queueRefreshIfNeeded
Queues a background EOD refresh when the stored symbol-analysis window appears incomplete or stale.- Parameters:
context-SymbolAnalysisContextmarketPrices- current market prices for the requested window- Returns:
- optional refresh note for the analysis data-state banner
-
buildPriceSeries
Builds the price series response from the given market prices.- Parameters:
marketPrices-ListofMarketPrice- Returns:
SymbolAnalysisPriceSeries
-