Skip to main content

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

  1. Bump the version in pyproject.toml:

    version = "0.3.1"
    
  2. Build the distribution packages:

    python -m build
    
  3. 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


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.3.1.tar.gz (16.5 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.3.1-py3-none-any.whl (22.8 kB view details)

Uploaded Python 3

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

Hashes for jing-0.3.1.tar.gz
Algorithm Hash digest
SHA256 294abeea8e6e31281dd2416bf53a4716e98408f51d0d1af6e1f0d2350e233365
MD5 cc14d957ce2a212e8a02e146c5ec0fb6
BLAKE2b-256 1c9a6c30d377a0b6fa3f05ab6c1f0e5588889c03e2c846f233baba598434ecf6

See more details on using hashes here.

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

Hashes for jing-0.3.1-py3-none-any.whl
Algorithm Hash digest
SHA256 c44c602aa47c0dadee9dad0e6acd299e247eefdc9bb12dd43ea716abf33526f1
MD5 52a4d8d65268dc9c23ff264e36034b68
BLAKE2b-256 69a958555c1034d99342717ce8bd8a0e8704e1b38923f3cf5510487b82eb0cdb

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