My share library
Project description
mysharelib
A Python library for financial data analysis and utilities, focused on Hong Kong stock market data.
Features
- Fetch Hong Kong stock information and financial reports from EastMoney
- Analyze major shareholders and financial statements
- Scrape Hong Kong stock news from Sina Finance
- Utility functions for logging, caching, and data handling
Directory Structure
src/mysharelib/em/: EastMoney data fetchers (stock info, balance sheet, cash flow, income, shareholder analysis)src/mysharelib/sina/: News scraping for HK stockssrc/mysharelib/tools.py: Logging and utility functionslog/: Cached financial data in JSON formattests/: Pytest-based unit tests
Installation
Requires Python 3.11–3.12.
pip install .
Or with Poetry:
poetry install
Dependencies
- openbb-core
- chinese-calendar
- akshare
Usage Example
from mysharelib.em.get_hk_info_em import get_hk_info_em
df_basic, df_compare = get_hk_info_em("01088.HK")
Development
- Use the
devbranch for development andmainfor production. - Run tests with
pytest.
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
mysharelib-1.0.4.tar.gz
(25.5 kB
view details)
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