china-stock
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_historyandget_stock_history_adjmethodsget_stock_todaymethod return strings, notdatetime
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)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| china-stock-0.1.5.tar.gz | 3.5 kB | Without provenance | 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 |
Security for china-stock 0.1.5
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.