Interface SymbolSource
public interface SymbolSource
Interface for searching financial instrument symbols.
Implementations query various data sources to find ticker symbols matching a search expression.
- Since:
- 1.0
- Author:
- Silvere Martin-Michiellot, Gemini AI (Google DeepMind)
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final recordBasic symbol information. -
Method Summary
Modifier and TypeMethodDescriptiondefault StringReturns the name of this symbol source.default SymbolSource.SymbolInfogetSymbolInfo(String symbol) Returns detailed information about a specific symbol.Searches for symbols matching the given expression.
-
Method Details
-
search
Searches for symbols matching the given expression.- Parameters:
expression- the search string (company name or partial symbol)- Returns:
- set of matching symbols
- Throws:
UnavailableDataException- if the search cannot be performedIllegalArgumentException- if expression is null or empty
-
getSymbolInfo
Returns detailed information about a specific symbol.- Parameters:
symbol- the ticker symbol- Returns:
- information about the symbol, or null if not found
- Throws:
UnavailableDataException- if data cannot be retrieved
-
getSourceName
-