|
Venice 0.7beta | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Quote
Representation of either an end-of-day or an intra-day stock quote. This interface allows code to manipulate both quote kinds without writing specific code to handle each.
Field Summary | |
---|---|
static int |
ASK
Represents current ask. |
static int |
BID
Represents current bid. |
static int |
DAY_CLOSE
Represents day close quote for end-of-day quotes or last quote for intra-day quotes. |
static int |
DAY_HIGH
Represents day high quote for end-of-day quotes or current day high for intra-day quotes. |
static int |
DAY_LOW
Represents day low quote for end-of-day quotes or current day low for intra-day quotes. |
static int |
DAY_OPEN
Represents day open quote |
static int |
DAY_VOLUME
Represents day volume quote for end-of-day quotes or current volume for intra-day quotes. |
Method Summary | |
---|---|
TradingDate |
getDate()
Return the quote date. |
double |
getDayClose()
Return the day close for end-of-day quotes or the last quote for intra-day quotes. |
double |
getDayHigh()
Return the day high for end-of-day quotes or the current day high for intra-day quotes. |
double |
getDayLow()
Return the day low for end-of-day quotes or the current day low for intra-day quotes. |
double |
getDayOpen()
Return the day open. |
int |
getDayVolume()
Return the day volume quote for end-of-day quotes or the current volume for intra-day quotes. |
double |
getQuote(int quote)
Get a single quote. |
Symbol |
getSymbol()
Return the stock's symbol. |
Field Detail |
---|
static final int DAY_CLOSE
static final int DAY_OPEN
static final int DAY_LOW
static final int DAY_HIGH
static final int DAY_VOLUME
static final int BID
static final int ASK
Method Detail |
---|
Symbol getSymbol()
TradingDate getDate()
int getDayVolume()
double getDayLow()
double getDayHigh()
double getDayOpen()
double getDayClose()
double getQuote(int quote) throws java.lang.UnsupportedOperationException
quote
- the quote type:
DAY_OPEN
,
DAY_CLOSE
,
DAY_HIGH
,
DAY_LOW
,
DAY_VOLUME
,
BID
, or
ASK
java.lang.UnsupportedOperationException
- if the quote type is not
supported by the quote. For example, end of day quotes
do not contain bid or ask prices.
|
Venice 0.7beta | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |