Skip to main content
Help us improve Python packaging – donate today!

Equity/commodity/currency information API; sources content from Yahoo! Finance

Project Description

yfinanceapi (Equity and currency information API)

Description
-----------

The yfinanceapi is an API for Python that builds on top of the Yahoo! finance JSON API to provide equity and currency information, such as price, volume, last trade time etc.

Installation
------------

The API can be installed from PyPi using the following command:
pip install yfinanceapi
Instructions on installing pip can be found here: https://pip.pypa.io/en/latest/installing.html

Alternatively, it can be installed using github:
pip install git+https://github.com/Karthik005/yfinanceapi#egg=yfinanceapi

The installation may require root permissions.

Usage
-----

The API can be imported in the following manner:

import yfinanceapi as api

Stock/equity information is obtained as follows:

api.get_prices(['GOOG','MSFT','INFY.NS'])
api.get_volumes(['GOOG','MSFT','INFY.NS'])

Prices are in currency values of the country in which symbol is listed

Currency information is obtained as follows:

api.get_currency_prices(['INR','JPY'])
api.get_currency_utc(['INR','JPY'])

Currency values are measured with respect to USD.

Additional functions, information on usage and allowed symbol values can be found in the docstrings of the api.py file.


Copyright
---------

Copyright 2015, Karthik.S


License
-------

This project is licensed under GNU v2.0. For more information read the LICENSE.txt file.


Bugs and requests
----------------

Bugs and feature requests can be reported at karthikbharadwaj005@gmail.com

Release history Release notifications

This version
History Node

1.0.2

History Node

1.0.1

History Node

1.0.0

Download files

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

Filename, size & hash SHA256 hash help File type Python version Upload date
yfinanceapi-1.0.2.tar.gz (10.4 kB) Copy SHA256 hash SHA256 Source None Mar 10, 2015

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging CloudAMQP CloudAMQP RabbitMQ AWS AWS Cloud computing Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page