com.sun.tdk.sampleapi
Interface QuoteAgent
- public interface QuoteAgent
Quote agent interface. Represents an abstract agent requesting
stock information from a particular source (such as NYSE or NASDAQ).
- Since:
- 1.0
Method Summary |
StockSymbol |
getStock(java.lang.String symbol)
Gets a StockSymbol object for the specified symbol. |
getStock
public StockSymbol getStock(java.lang.String symbol)
throws GetQuoteException
- Gets a
StockSymbol
object for the specified symbol.
- Parameters:
symbol
- A String
- Returns:
null
if the symbol is unknown to this agent
- Throws:
java.lang.NullPointerException
- if the specified symbol is null
GetQuoteException
- if the symbol cannot be retrieved