Skip to main content

Download stock data and perform data analisys

Project description

jing

This is a python libary, used for download stock data and perform data analisys.

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

Installation

pip install jing

## Only 2 class 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

```python
import jing

d = jing.D(_market='hk')
d.download('00005')

d = jing.D(_market='cn', _source='akshare')
d.download('600519')

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

jing-0.2.8.tar.gz (15.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

jing-0.2.8-py3-none-any.whl (22.2 kB view details)

Uploaded Python 3

File details

Details for the file jing-0.2.8.tar.gz.

File metadata

  • Download URL: jing-0.2.8.tar.gz
  • Upload date:
  • Size: 15.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.7

File hashes

Hashes for jing-0.2.8.tar.gz
Algorithm Hash digest
SHA256 31331834d0a61cb5cb4a22a631a7e7c89f75888d3c990555f65531d680cdd2f7
MD5 4d0438979acbb4bda9f1f5da49dab180
BLAKE2b-256 93f31d340819dce8ffc58fc1c8ede1a029530c43c98e89aadb110c825b5e6f02

See more details on using hashes here.

File details

Details for the file jing-0.2.8-py3-none-any.whl.

File metadata

  • Download URL: jing-0.2.8-py3-none-any.whl
  • Upload date:
  • Size: 22.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.7

File hashes

Hashes for jing-0.2.8-py3-none-any.whl
Algorithm Hash digest
SHA256 9f27a91a3e7893970ce61771c7aed9e5f7039645b8d700a07877777a32cd7515
MD5 14128ebfef030e8a1ea7ef0aa4852bea
BLAKE2b-256 f4e711e40d484c80de7cc2924309b327f8976e08452cbb786125599209515b9a

See more details on using hashes here.

Supported by

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