Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/Karthik005/yfinanceapi
Financial information API for Python.
https://github.com/Karthik005/yfinanceapi
Last synced: 19 days ago
JSON representation
Financial information API for Python.
- Host: GitHub
- URL: https://github.com/Karthik005/yfinanceapi
- Owner: Karthik005
- License: gpl-2.0
- Created: 2015-03-09T10:58:05.000Z (almost 10 years ago)
- Default Branch: master
- Last Pushed: 2020-05-26T11:56:28.000Z (over 4 years ago)
- Last Synced: 2024-12-08T11:05:01.284Z (25 days ago)
- Language: Python
- Homepage:
- Size: 46.9 KB
- Stars: 9
- Watchers: 1
- Forks: 3
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
Awesome Lists containing this project
- awesome-quant - yfinanceapi - Finance API for Python. (Python / Data Sources)
- awesome-quant - yfinanceapi - Finance API for Python. (Python / Data Sources)
README
## 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.htmlAlternatively, it can be installed using github:
pip install git+https://github.com/Karthik005/yfinanceapi#egg=yfinanceapiThe 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.