mirror of
https://github.com/hongtaocai/googlefinance.git
synced 2024-11-04 16:29:23 -06:00
modify readme
This commit is contained in:
parent
be45ecaced
commit
126d8cf6af
4
MANIFEST
4
MANIFEST
@ -1,4 +0,0 @@
|
||||
# file GENERATED by distutils, do NOT edit
|
||||
setup.cfg
|
||||
setup.py
|
||||
googlefinance/__init__.py
|
@ -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
80
README.rst
Normal 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"
|
||||
}
|
||||
]
|
||||
|
BIN
dist/googlefinance-0.1.tar.gz
vendored
BIN
dist/googlefinance-0.1.tar.gz
vendored
Binary file not shown.
BIN
dist/googlefinance-0.2.tar.gz
vendored
BIN
dist/googlefinance-0.2.tar.gz
vendored
Binary file not shown.
BIN
dist/googlefinance-0.3.tar.gz
vendored
BIN
dist/googlefinance-0.3.tar.gz
vendored
Binary file not shown.
6
setup.py
6
setup.py
@ -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 = [],
|
||||
)
|
||||
|
Loading…
Reference in New Issue
Block a user