Skip to main content
This is a pre-production deployment of Warehouse. Changes made here affect the production instance of PyPI (
Help us improve Python packaging - Donate today!

Python 3 wrapper for Yahoo! Finance API

Project Description
# Stockex

Python 3 wrapper for Yahoo! Finance API.

## Requirements

* Python 3

## Install

From PYPI:
pip install stockex

From Github:
git clone

cd Stockex

python install

## Example Usage

from stockex import stockwrapper as sw

data = sw.YahooData()

# Print Current data of a Stock

# Print historical data of a Stock, returns data of last week

# Print historical data of a Stock according to the startDate and endDate

# Trivial formatting
print("Google stock: Date and Price")
for item in data.get_historical("GOOG"):
print(item['Date'] + '\t' + item['Close'])

# Other methods:

# Do a custom YQL query to Yahoo! Finance YQL API:
data.enquire('select * from where symbol in ("GOOG", "C")')

# Get news feed of a Company

# Get options data

# Get industry ids

# Get industry index from a given id

## Contributing

Contributions of all sorts are welcomed.
Feel free to fork, make pull requests, ask for features, etc.

## Credits

Based on the Python2.7 (Public Domain) script StockScraper: [Code]( and [Docs](

## License

Public Domain.

Release History

Release History

This version
History Node


History Node


History Node


Download Files

Download Files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

File Name & Checksum SHA256 Checksum Help Version File Type Upload Date
Stockex-0.1.2.tar.gz (3.5 kB) Copy SHA256 Checksum SHA256 Source Jun 5, 2015

Supported By

WebFaction WebFaction Technical Writing Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Heroku Heroku PaaS Kabu Creative Kabu Creative UX & Design Fastly Fastly CDN DigiCert DigiCert EV Certificate Rackspace Rackspace Cloud Servers DreamHost DreamHost Log Hosting