Skip to main content

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

Metadata

Release files for china-stock 0.1.5

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for china-stock 0.1.5
File Size Uploaded
china-stock-0.1.5.tar.gz 3.5 kB Details

Release files / china-stock-0.1.5.tar.gz

Download URL china-stock-0.1.5.tar.gz
Size 3.5 kB
Tags Source
SHA-256 checksum
How to use checksums
715287ac3ea74744e66a993e57226603244a1666244d84c6507d17d73578e045
BLAKE2b-256 checksum
How to use checksums
0b2584fb8ea9e94321fd73563aeea8f0c17d8d15ca9c626a76f2dadb9fd851a6
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release history Release notifications | RSS feed

This release

0.1.5 This release

1 release file

0.1.4

1 release file

0.1.3

1 release file

0.1.2

1 release file

0.1.1

1 release file

0.1.0

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page