Download stock data and perform data analisys
Project description
jing
This is a python library, used for download stock data and perform data analysis.
Installation
pip install jing
All required dependencies (requests, pandas, baostock, yfinance, akshare, binance-connector) will be installed automatically.
Usage
Only 2 classes are exported.
downloader D
- Function: download the data from internet to local file system
- Parameter:
_market(str): us, cn, hk, default is us
- Return Value: No return value
sample code
import jing
d = jing.D(_market='hk')
d.download('00005')
d = jing.D(_market='cn', _source='akshare')
d.download('600519')
Data layout
The project now uses a source-first layout under data/:
data/
raw/
yahoo/us/
baostock/cn/
akshare/cn/
akshare/hk/
binance/bn/
list/
parquet/
duckdb/
Examples:
- US Yahoo CSV:
data/raw/yahoo/us/AAPL.csv - CN BaoStock CSV:
data/raw/baostock/cn/sh.601088.csv - HK AkShare CSV:
data/raw/akshare/hk/00700.csv - list files:
data/raw/list/us.txt
Release to PyPI
-
Bump the version in
pyproject.toml:version = "0.3.1"
-
Build the distribution packages:
python -m build
-
Upload to PyPI:
python -m twine upload dist/*
You will need a PyPI account and API token. Configure twine once with
python -m twine upload --repository testpypi dist/*to test first if desired.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file jing-0.3.1.tar.gz.
File metadata
- Download URL: jing-0.3.1.tar.gz
- Upload date:
- Size: 16.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.9.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
294abeea8e6e31281dd2416bf53a4716e98408f51d0d1af6e1f0d2350e233365
|
|
| MD5 |
cc14d957ce2a212e8a02e146c5ec0fb6
|
|
| BLAKE2b-256 |
1c9a6c30d377a0b6fa3f05ab6c1f0e5588889c03e2c846f233baba598434ecf6
|
File details
Details for the file jing-0.3.1-py3-none-any.whl.
File metadata
- Download URL: jing-0.3.1-py3-none-any.whl
- Upload date:
- Size: 22.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.9.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c44c602aa47c0dadee9dad0e6acd299e247eefdc9bb12dd43ea716abf33526f1
|
|
| MD5 |
52a4d8d65268dc9c23ff264e36034b68
|
|
| BLAKE2b-256 |
69a958555c1034d99342717ce8bd8a0e8704e1b38923f3cf5510487b82eb0cdb
|