|
Venice 0.74beta | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
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. |
long |
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 |
public static final int DAY_CLOSE
public static final int DAY_OPEN
public static final int DAY_LOW
public static final int DAY_HIGH
public static final int DAY_VOLUME
public static final int BID
public static final int ASK
| Method Detail |
public Symbol getSymbol()
public TradingDate getDate()
public long getDayVolume()
public double getDayLow()
public double getDayHigh()
public double getDayOpen()
public double getDayClose()
public 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.74beta | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||