|
Venice 0.7beta | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface QuoteBundle
This class provides a generic interface which can be used to access a bundle of either end-of-day or intra-day quotes.
| Method Summary | |
|---|---|
int |
getFirstOffset()
Return the fast access offset for the earliest quote in the bundle. |
int |
getLastOffset()
Return the fast access offset for the latest quote in the bundle. |
int |
getOffset(Quote quote)
Return the fast access offset from the given quote. |
Quote |
getQuote(Symbol symbol,
int offset)
Get a stock quote. |
double |
getQuote(Symbol symbol,
int quoteType,
int offset)
Get a stock quote. |
double |
getQuote(Symbol symbol,
int quoteType,
int now,
int offset)
Get a stock quote. |
TradingDate |
offsetToDate(int offset)
Convert between a fast access offset to an actual date. |
| Method Detail |
|---|
double getQuote(Symbol symbol,
int quoteType,
int now,
int offset)
throws EvaluationException,
MissingQuoteException
symbol - the stock symbolquoteType - the quote type, e.g. Quote.DAY_OPEN, Quote.DAY_CLOSE,
Quote.DAY_LOW, Quote.DAY_HIGH, Quote.DAY_VOLUMEnow - fast access offset of current quote, for end-of-day quotes this
is the fast access date offset (see EODQuoteCache). For
intra-day quotes, it is the fast access time offset (see
IDQuoteCache).offset - modifier offset to fast access offset
EvaluationException - if the script isn't allow access to the quote.
MissingQuoteException - if the quote was not found
double getQuote(Symbol symbol,
int quoteType,
int offset)
throws MissingQuoteException
symbol - the stock symbolquoteType - the quote type, one of Quote.DAY_OPEN, Quote.DAY_CLOSE,
Quote.DAY_LOW, Quote.DAY_HIGH, Quote.DAY_VOLUMEoffset - fast access offset of current quote, for end-of-day quotes this
is the fast access date offset (see EODQuoteCache). For
intra-day quotes, it is the fast access time offset (see
IDQuoteCache).
MissingQuoteException - if the quote was not found
Quote getQuote(Symbol symbol,
int offset)
throws MissingQuoteException
symbol - the stock symboloffset - fast access offset of current quote, for end-of-day quotes this
is the fast access date offset (see EODQuoteCache). For
intra-day quotes, it is the fast access time offset (see
IDQuoteCache).
MissingQuoteException - if the quote was not foundTradingDate offsetToDate(int offset)
offset - fast access offset, see EODQuoteCache
int getOffset(Quote quote)
throws WeekendDateException
quote - quote
WeekendDateExceptionint getFirstOffset()
int getLastOffset()
|
Venice 0.7beta | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||