|
I need to now how i can dowload Free stock quotes form internet ?
On Yahoo on de page stock quotes there can i dowload stock quotes
http://chart.yahoo.com/table.csv?s=adbe&a=1&b=24&c=99&d=4&e=27&f=99&g=d&q=q&
y=0&z=adbe&x=.csv
that is the address to download the qoutes of adobe. |
|
Heres a tiny little thing, but maybe it will be useful to somebody. The
module Quote simply looks up a publicly-traded stock by symbol, and returns
an object with more information than you could ever want to know - price,
change, one-year range, and lots of other stuff. |
|
We are pleased to announce the release of Historical Quotes Downloader
1.1 - software that allows you downloading historical stock quotes
data from the internet with a single button click. |
| #
# Yahoo: Decode a response to a Yahoo stock lookup.
#
def DecYahooUrl (q, response):
#
# Pull the info from the server, split it, and make sure it makes sense.
#
info = response.readline ()[:-2] # Get rid of CRLF
sinfo = string.split (info, ,)
if len (sinfo) 15:
return 0
#
# Start decoding.
#
q.symbol = sinfo[0][1:-1]
q.value = string.atof (sinfo[1])
q.time = YahooDate (sinfo[2], sinfo[3])
q.change = string.atof (sinfo[4])
q.open = string.atof (sinfo[5])
q.high = string.atof (sinfo[6])
q.low = string.atof (sinfo[7])
q.volume = string.atoi (sinfo[8])
#
# Get the market cap into millions
#
try:
q.market_cap = string.atof (sinfo[9][:-1])
except ValueError:
q.market_cap = 0.0 # Weirdness happens
if sinfo[9][-1] == B:
q.market_cap = q.market_cap*1000
q.previous_close = string.atof (sinfo[10])
q.percent_change = string.atof (sinfo[11][1:-2]) # Zap training %
q.open = string.atof . |
| Uses include:
* Check stock portfolio or 401k performance
* Research stocks & get financial news
* Find opinions, ratings and price targets on various equities and funds
* Chart and graph funds and stocks
* Scan message boards for each stock or fund |