Class SymbolOrchestrator
java.lang.Object
com.bluebell.greenhouse.planter.orchestrators.symbol.SymbolOrchestrator
- All Implemented Interfaces:
GenericOrchestrator
@Service
@Transactional
public class SymbolOrchestrator
extends Object
implements GenericOrchestrator
Owns the unit of work for the
Symbol endpoints.- Version:
- 3.0.6
- Author:
- Stephen Prizio
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanassignToSymbol(String symbolAliasUid, String symbolId) Assigns aSymbolAliasto aSymbol.Creates a newSymbol.voiddeleteSymbol(String symbolId) Deletes theSymbolmatching the given identifier.enrichSymbol(String ticker, String exchangeMic, String symbolType) Enriches theSymbolmatching the given ticker.byte[]Exports the symbol registry.Obtains every approved, activeSymbolavailable for assignment.Obtains theSymbols eligible for news lookup.getSymbolDetails(String query) Obtains theSymbolmatching the given query.getSymbolSentiment(SymbolSentimentRequest sentimentRequest) Obtains the sentiment series for a ticker.getSymbolSentimentSummary(SymbolSentimentRequest sentimentRequest) Obtains the aggregated sentiment for a ticker.getSymbolsPaged(SymbolSearchRequest searchRequest) Obtains a page ofSymbols matching the given search request.getTradedSymbols(AccountRequestContext context) Obtains the tickers traded on an owned account.booleanreassignSymbol(String oldTicker, String newTicker, String dataSource) Reassigns oneSymbolas an alias of another.updateSymbol(CreateUpdateSymbolDTO data, String symbolId) Updates theSymbolmatching the given identifier.
-
Constructor Details
-
SymbolOrchestrator
public SymbolOrchestrator()
-
-
Method Details
-
getTradedSymbols
Obtains the tickers traded on an owned account.- Parameters:
context-AccountRequestContext- Returns:
- traded tickers
-
getSymbolsPaged
@Transactional(readOnly=true) public PaginatedSymbolDTO getSymbolsPaged(SymbolSearchRequest searchRequest) Obtains a page ofSymbols matching the given search request.- Parameters:
searchRequest- paged symbol search request- Returns:
PaginatedSymbolDTO
-
getSymbolDetails
-
getAvailableSymbolsForAssignment
-
getNewsLookupSymbols
Obtains theSymbols eligible for news lookup.- Returns:
NewsLookupSymbolDTOs
-
getSymbolSentiment
@Transactional(readOnly=true) public List<SymbolSentimentPointDTO> getSymbolSentiment(SymbolSentimentRequest sentimentRequest) Obtains the sentiment series for a ticker.- Parameters:
sentimentRequest-SymbolSentimentRequest- Returns:
SymbolSentimentPointDTOs
-
getSymbolSentimentSummary
@Transactional(readOnly=true) public SymbolSentimentPointDTO getSymbolSentimentSummary(SymbolSentimentRequest sentimentRequest) Obtains the aggregated sentiment for a ticker.- Parameters:
sentimentRequest-SymbolSentimentRequest- Returns:
SymbolSentimentPointDTO
-
exportSymbolRegistry
@Transactional(readOnly=true) public byte[] exportSymbolRegistry()Exports the symbol registry.- Returns:
- registry bytes
-
createNewSymbol
Creates a newSymbol.- Parameters:
data-CreateUpdateSymbolDTO- Returns:
SymbolDTO
-
reassignSymbol
Reassigns oneSymbolas an alias of another.- Parameters:
oldTicker- ticker being retirednewTicker- ticker being keptdataSource-DataSourcecode- Returns:
- true when reassigned
-
assignToSymbol
Assigns aSymbolAliasto aSymbol.- Parameters:
symbolAliasUid- symbol alias uidsymbolId- symbol identifier- Returns:
- true when assigned
-
enrichSymbol
public ManualSymbolEnrichmentResponse enrichSymbol(String ticker, String exchangeMic, String symbolType) Enriches theSymbolmatching the given ticker.- Parameters:
ticker- tickerexchangeMic- exchange micsymbolType- symbol type code- Returns:
ManualSymbolEnrichmentResponse
-
updateSymbol
Updates theSymbolmatching the given identifier.- Parameters:
data-CreateUpdateSymbolDTOsymbolId- symbol identifier- Returns:
SymbolDTO
-
deleteSymbol
-