|
Venice 0.7beta | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.mov.quote.IDQuote
public class IDQuote
Representation of an intra-day stock quote for a given stock, on a given day at a given time.
| Field Summary |
|---|
| Fields inherited from interface org.mov.quote.Quote |
|---|
ASK, BID, DAY_CLOSE, DAY_HIGH, DAY_LOW, DAY_OPEN, DAY_VOLUME |
| Constructor Summary | |
|---|---|
IDQuote(Symbol symbol,
TradingDate date,
TradingTime time,
int currentVolume,
double currentLow,
double currentHigh,
double dayOpen,
double last,
double bid,
double ask)
Create a new intra-day stock quote. |
|
| Method Summary | |
|---|---|
double |
getAsk()
Return the ask price. |
double |
getBid()
Return the bid price. |
TradingDate |
getDate()
Return the quote date. |
double |
getDayClose()
Return the last trade value. |
double |
getDayHigh()
Return the current day high. |
double |
getDayLow()
Return the current day low. |
double |
getDayOpen()
Return the day open. |
int |
getDayVolume()
Return the current day volume. |
double |
getQuote(int quote)
Get a single quote. |
Symbol |
getSymbol()
Return the stock's symbol. |
TradingTime |
getTime()
Return the quote time. |
void |
setDate(TradingDate date)
Set the quote date. |
void |
setSymbol(Symbol symbol)
Set the symbol for this quote. |
void |
setTime(TradingTime time)
Set the quote time. |
java.lang.String |
toString()
Return a string representation of the stock quote. |
void |
verify()
Clean up the quote. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public IDQuote(Symbol symbol,
TradingDate date,
TradingTime time,
int currentVolume,
double currentLow,
double currentHigh,
double dayOpen,
double last,
double bid,
double ask)
symbol - the stock symboldate - the date of this stock quotetime - the time of this stock quotecurrentVolume - the number of shares traded so far todaycurrentLow - the current day lowcurrentHigh - the current day highdayOpen - the opening quote on this datelast - the last trade pricebid - the last bid priceask - the last ask price| Method Detail |
|---|
public void verify()
EODQuote.verify(). The reason is that the
intra-day quotes are downloaded all the time and it would only annoy the user
constanty see any warnig messages displayed.
public Symbol getSymbol()
getSymbol in interface Quotepublic TradingDate getDate()
getDate in interface Quotepublic TradingTime getTime()
public int getDayVolume()
getDayVolume in interface Quotepublic double getDayLow()
getDayLow in interface Quotepublic double getDayHigh()
getDayHigh in interface Quotepublic double getDayOpen()
getDayOpen in interface Quotepublic double getDayClose()
getDayClose in interface Quotepublic double getBid()
public double getAsk()
public void setSymbol(Symbol symbol)
symbol - the stock symbolpublic void setDate(TradingDate date)
date - the datepublic void setTime(TradingTime time)
time - the time
public double getQuote(int quote)
throws java.lang.UnsupportedOperationException
Quote
getQuote in interface Quotequote - the quote type:
Quote.DAY_OPEN,
Quote.DAY_CLOSE,
Quote.DAY_HIGH,
Quote.DAY_LOW,
Quote.DAY_VOLUME,
Quote.BID, or
Quote.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.public java.lang.String toString()
toString in class java.lang.Object
|
Venice 0.7beta | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||