|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectnet.spy.info.StockQuote
An individual stock quote.
| Constructor Summary | |
StockQuote(String csv)
Create a StockQuote object from a yahoo CSV output. |
|
| Method Summary | |
double |
getChange()
gets the amount of change since market opening. |
String |
getDate()
gets the date of the trade that set this price. |
double |
getHigh()
gets today's high value of the stock. |
double |
getLow()
gets today's low value of the stock. |
double |
getOpen()
gets the opening price of the stock. |
double |
getPrice()
gets the current stock price. |
String |
getSymbol()
gets the ticket symbol this object describes. |
String |
getTime()
gets the time of the trade that set this price. |
int |
getVolume()
gets the amount of volume of trade. |
String |
toString()
produces a readable version of the StockQuote |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
public StockQuote(String csv)
throws Exception
csv - line of csv from yahoo
Exception - for an invalid cvs line| Method Detail |
public String toString()
public String getSymbol()
public double getPrice()
public String getDate()
public String getTime()
public double getChange()
public double getOpen()
public double getHigh()
public double getLow()
public int getVolume()
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||