Skip to main content

china stock

Project description

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

Project details


Download files

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

Source Distribution

china-stock-0.1.5.tar.gz (3.5 kB view details)

Uploaded Source

File details

Details for the file china-stock-0.1.5.tar.gz.

File metadata

  • Download URL: china-stock-0.1.5.tar.gz
  • Upload date:
  • Size: 3.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for china-stock-0.1.5.tar.gz
Algorithm Hash digest
SHA256 715287ac3ea74744e66a993e57226603244a1666244d84c6507d17d73578e045
MD5 75e2ef74e1f737e65c5a4a8ea96e631e
BLAKE2b-256 0b2584fb8ea9e94321fd73563aeea8f0c17d8d15ca9c626a76f2dadb9fd851a6

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page