| Home | Trees | Index | Help |
|
|---|
| Module YahooQuote :: Class Ticker |
|
Represents the prices of a single ticker symbol.
Works as a smart sequence, keyed by yyyymmdd numbers
The magic attribute 'now' fetches current prices| Method Summary | |
|---|---|
Create a Ticker class, which gets/caches/retrieves quotes for a single ticker symbol | |
Intercept attribute 'now' to mean a fetch of present prices | |
Retrieves/creates a Quote object for this ticker's prices for a particular date | |
__repr__(self)
| |
fetches this stock's entire history - you should only ever do this once, and thereafter, invoke Ticker.updateHistory to keep the history up
to date | |
Returns a Quote object for this stock | |
Updates this stock's history. | |
| Class Variable Summary | |
|---|---|
str |
baseUrlHistory = 'http://ichart.finance.yahoo.com/table....
|
str |
baseUrlQuote = 'http://download.finance.yahoo.com/d/quot...
|
| Method Details |
|---|
__init__(self,
market,
symbol,
index=None)
|
__getattr__(self,
attr)
Intercept attribute 'now' to mean a fetch of present prices
|
__getitem__(self,
date)
|
fetchHistory(self)fetches this stock's entire history - you should only ever do this once, and thereafter, invokeTicker.updateHistory to keep the history
up to date
|
getQuote(self)Returns a Quote object for this stock |
updateHistory(self)Updates this stock's history. You should not invoke this method unless you have invokedTicker.fetchHistory at some time in the
past.
|
| Class Variable Details |
|---|
baseUrlHistory
|
baseUrlQuote
|
| Home | Trees | Index | Help |
|
|---|
| Generated by Epydoc 2.1 on Mon Jun 25 22:42:21 2007 | http://epydoc.sf.net |