modify readme

This commit is contained in:
hongtao 2015-03-03 16:25:54 +08:00
parent be45ecaced
commit 126d8cf6af
7 changed files with 86 additions and 8 deletions

View File

@ -1,4 +0,0 @@
# file GENERATED by distutils, do NOT edit
setup.cfg
setup.py
googlefinance/__init__.py

View File

@ -1,7 +1,9 @@
# googlefinance
Python module to get stock data from Google Finance API
This module provides **no delay**, **real time** stock data in NYSE & NASDAQ. [yahoo-finance](https://github.com/lukaszbanasiak/yahoo-finance)'s data is delayed by 15 min, but it provides apis to fetch historical day-by-day stock data.
This module provides **no delay**, **real time** stock data in NYSE & NASDAQ.
Another awesome module, [yahoo-finance](https://github.com/lukaszbanasiak/yahoo-finance)'s data is delayed by 15 min, but it provides convenient apis to fetch historical day-by-day stock data.
##Install
From PyPI with pip:

80
README.rst Normal file
View File

@ -0,0 +1,80 @@
googlefinance
=============
Python module to get stock data from Google Finance API
This module provides **no delay**, **real time** stock data in NYSE &
NASDAQ.
Another awesome module,
`yahoo-finance <https://github.com/lukaszbanasiak/yahoo-finance>`__'s
data is delayed by 15 min, but it provides convenient apis to fetch
historical day-by-day stock data.
Install
-------
From PyPI with pip:
::
$pip install googlefinance
From development repo (requires git)
::
$git clone https://github.com/hongtaocai/googlefinance.git
$cd googlefinance
$python setup.py install
Usage example
-------------
::
>>> from googlefinance import getQuotes
>>> import json
>>> print json.dumps(getQuotes('AAPL'), indent=2)
[
{
"Index": "NASDAQ",
"LastTradeWithCurrency": "129.09",
"LastTradeDateTime": "2015-03-02T16:04:29Z",
"LastTradePrice": "129.09",
"Yield": "1.46",
"LastTradeTime": "4:04PM EST",
"LastTradeDateTimeLong": "Mar 2, 4:04PM EST",
"Dividend": "0.47",
"StockSymbol": "AAPL",
"ID": "22144"
}
]
>>> print json.dumps(getQuotes(['AAPL', 'GOOG']), indent=2)
[
{
"Index": "NASDAQ",
"LastTradeWithCurrency": "129.09",
"LastTradeDateTime": "2015-03-02T16:04:29Z",
"LastTradePrice": "129.09",
"Yield": "1.46",
"LastTradeTime": "4:04PM EST",
"LastTradeDateTimeLong": "Mar 2, 4:04PM EST",
"Dividend": "0.47",
"StockSymbol": "AAPL",
"ID": "22144"
},
{
"Index": "NASDAQ",
"LastTradeWithCurrency": "571.34",
"LastTradeDateTime": "2015-03-02T16:04:29Z",
"LastTradePrice": "571.34",
"Yield": "",
"LastTradeTime": "4:04PM EST",
"LastTradeDateTimeLong": "Mar 2, 4:04PM EST",
"Dividend": "",
"StockSymbol": "GOOG",
"ID": "304466804484872"
}
]

Binary file not shown.

Binary file not shown.

Binary file not shown.

View File

@ -2,12 +2,12 @@ from distutils.core import setup
setup(
name = 'googlefinance',
packages = ['googlefinance'], # this must be the same as the name above
version = '0.3',
description = 'Python module to get stock data from Google Finance API',
version = '0.4',
description = 'Python module to get real-time (no delay) stock data from Google Finance API',
author = 'Hongtao Cai',
author_email = 'caiht.ht@gmail.com',
url = 'https://github.com/hongtaocai/googlefinance', # use the URL to the github repo
download_url = 'https://github.com/hongtaocai/googlefinance/tarball/0.3', # I'll explain this in a second
download_url = 'https://github.com/hongtaocai/googlefinance/tarball/0.4', # I'll explain this in a second
keywords = ['googlefinance', 'stock', 'price' , 'finance', 'google'], # arbitrary keywords
classifiers = [],
)