jing
jing downloads and organizes stock market data. The examples below use China A-share stocks with BaoStock.
Install
pip install jing
Download CN data
BaoStock is the default data source for CN. Stock codes must include an exchange prefix, such as sh. or sz..
import jing
d = jing.D("cn")
d.download("sz.000807") # Download one stock
d.download() # Download the stocks in the default list
Batch downloads use ~/data/jing/list/cn_baostock.txt by default. On first use, jing copies the bundled list there; edit this copy to maintain your stock list.
File locations
The default data directory is ~/data/jing:
~/data/jing/
├── list/cn_baostock.txt
└── raw/baostock/cn/sz.000807.csv
Set JING_DATA to use another directory:
export JING_DATA=/data/stocks
Or set the data directory from Python:
from jing.data_paths import set_data_root
set_data_root("/data/stocks")
The stock list and CSV files will then be stored under /data/stocks/list/ and /data/stocks/raw/baostock/cn/.
Metadata
Release files for jing 0.3.15
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| jing-0.3.15.tar.gz | 73.8 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| jing-0.3.15-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 151.7 kB
Release files / jing-0.3.15.tar.gz
| Download URL | jing-0.3.15.tar.gz |
|---|---|
| Size | 73.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
5b9ad62e9634ab75c0c6a9b24b5b7fbb588f61105a41d21542c2b9d989197122
|
|
BLAKE2b-256 checksum How to use checksums |
a250a03468d642b538ae5b39997d505ae5a9a3ae7b4c614acd6d2599bd387d1f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.10.8
|
Release files / jing-0.3.15-py3-none-any.whl
| Download URL | jing-0.3.15-py3-none-any.whl |
|---|---|
| Size | 77.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
c3fe5dc9a5f6243f73ba2b00b38da55238fa994bdd1119776307d6f70f93a513
|
|
BLAKE2b-256 checksum How to use checksums |
7d19796779fa454b0faaa30c246472a0520d7e9ed2024c2de1f3573936dca69a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.10.8
|