Class SymbolEnrichmentStrategy
java.lang.Object
com.bluebell.greenhouse.sol.services.symbol.SymbolEnrichmentStrategy
Enrichment strategy that prefers SymbolAnalysis data and falls back to OpenAI.
- Version:
- 2.0.2
- Author:
- Stephen Prizio
-
Constructor Summary
ConstructorsConstructorDescriptionSymbolEnrichmentStrategy(ExchangeRegistryService exchangeRegistryService, OpenAIIntegrationService openAIIntegrationService, SymbolAnalysisIntegrationService symbolAnalysisIntegrationService) Creates a new symbol enrichment strategy. -
Method Summary
Modifier and TypeMethodDescriptionenrichSymbol(String category, Set<SymbolRegistryAttribute> requestedAttributes, String exchange, String ticker) Enriches a symbol using the provider fallback workflow.
-
Constructor Details
-
SymbolEnrichmentStrategy
@Autowired public SymbolEnrichmentStrategy(ExchangeRegistryService exchangeRegistryService, OpenAIIntegrationService openAIIntegrationService, SymbolAnalysisIntegrationService symbolAnalysisIntegrationService) Creates a new symbol enrichment strategy.- Parameters:
exchangeRegistryService- exchange registry serviceopenAIIntegrationService- OpenAI integration servicesymbolAnalysisIntegrationService- SymbolAnalysis integration service
-
-
Method Details
-
enrichSymbol
public SymbolEnrichmentDTO enrichSymbol(String category, Set<SymbolRegistryAttribute> requestedAttributes, String exchange, String ticker) Enriches a symbol using the provider fallback workflow.- Parameters:
category- registry categoryrequestedAttributes- requested attributesexchange- registry exchange MICticker- ticker- Returns:
SymbolEnrichmentDTO
-