Author: Hao Liu
$ pip install china-stock
Import china-stock module:
>>> import chinastock as cs
Get stock prices information on nearest trading day:
>>> cs.get_stock_today(code='000001', exchange='SZ')
Get historical stock close prices:
>>> cs.get_stock_history(code='000001', exchange='SZ')
Get stock's adjusted close prices, open, high, low, volume, and change:
>>> cs.get_stock_history_adj(code='000001', exchange='SZ')
- 07/14/2015:
- Add
get_stock_history
andget_stock_history_adj
methods get_stock_today
method return strings, notdatetime
- Add