Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Gets stock quotes from Yahoo and Google Finance, and historical prices from Yahoo Finance.

Notifications You must be signed in to change notification settings

turc42/stockquote

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 

Repository files navigation

Gets stock quotes from Yahoo and Google Finance, and historical prices from Yahoo Finance.

Examples:

>>> import stockquote, os

>>> h = list(stockquote.historical_quotes("GOOG", "20010101", "20101231"))
>>> print os.linesep.join(["%25s: %s" % (k, h[0][k]) for k in sorted(h[0].keys())])
                Adj Close: 593.97
                    Close: 593.97
                     Date: 2010-12-31
                     High: 598.42
                      Low: 592.03
                     Open: 596.74
                   Volume: 1539300

>>> q = stockquote.from_google("GOOG")
>>> print os.linesep.join(["%25s: %s" % (k, q[k]) for k in sorted(q.keys())])
         GOOGLE_CODE_ccol: chr
           GOOGLE_CODE_id: 694653
        GOOGLE_CODE_l_cur: 701.96
            GOOGLE_CODE_s: 0
                   change: -0.74
                 exchange: NASDAQ
              price_close: -0.10
               price_last: 701.96
      price_last_datetime: Dec 14, 4:00PM EST
          price_last_time: 4:00PM EST
               source_url: http://www.google.com/finance/info?q=GOOG
                   symbol: GOOG

About

Gets stock quotes from Yahoo and Google Finance, and historical prices from Yahoo Finance.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%