Skip to main content

china stock

Project description

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


  • Add get_stock_history and get_stock_history_adj methods
  • get_stock_today method return strings, not datetime

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for china-stock, version 0.1.5
Filename, size File type Python version Upload date Hashes
Filename, size china-stock-0.1.5.tar.gz (3.5 kB) File type Source Python version None Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Huawei Huawei PSF Sponsor Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page