Skip to content
This repository has been archived by the owner on Nov 7, 2023. It is now read-only.
/ china-stock Public archive

Python module to get stock info from Chinese SH & SZ stock exchanges

License

Notifications You must be signed in to change notification settings

fuermosi777/china-stock

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

china-stock

https://travis-ci.org/fuermosi777/china-stock.svg?branch=master

Author: Hao Liu

Install

$ pip install china-stock

Use

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')

Update

07/14/2015:
  • Add get_stock_history and get_stock_history_adj methods
  • get_stock_today method return strings, not datetime

About

Python module to get stock info from Chinese SH & SZ stock exchanges

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages