Skip to main content

Quantitative Toolkit - a helper in quant developping

Project description

Quool

Python Numpy Pandas Wechat

Financial Data Analysis Toolkit

This toolkit provides a comprehensive suite of modules for financial data analysis, including web requests, data processing, and logging. Designed with ease of use and efficiency in mind, it's an ideal solution for analysts and developers working in financial data analytics.

Features

  • Request Module : Interfaces with various financial data APIs and web scraping for stock market information.
  • Tool Module : A collection of utility functions for data parsing, logging, memory optimization, and more.
  • Custom Logging : Enhanced logging capabilities for both console and file output with customizable formats.

Modules

1. Request Module

Handles various types of web requests and interactions with APIs. It includes classes for:

  • AkShare : Fetching financial data using the AkShare API.
  • Em : Interacting with East Money (东方财富网) for financial data and analysis.
  • StockUS : Accessing US stock market data and research reports.
  • WeiXin : Interfacing with WeChat for functionalities like QR code-based login and notifications.

2. Tool Module

Provides utility functions and classes to support operations such as:

  • Logger : Enhanced logging with configurable display options.
  • Date Parsing : Converts date strings into pandas.Timestamp objects.
  • Memory Optimization : Reduces memory usage of pandas DataFrames.

Installation

To use this toolkit, clone the repository to your local machine:

bashCopy code
git clone https://github.com/ppoak/quool

Usage

Here's a quick example of how to use the AkShare class to fetch daily market data:

pythonCopy code
import quool.request as qr daily_data = qr.AkShare.market_daily('600000', start='20200101', end='20201231')

For logging:

pythonCopy code
import quool.tool import qt logger = qt.Logger(name="MyLogger", level=logging.INFO, file="log.txt") logger.info("This is an info message")

Contributing

Contributions to improve this toolkit are welcome. Please fork the repository and submit a pull request with your changes.

License

This project is licensed under MIT License.

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

quool-1.5.1.tar.gz (38.0 kB view hashes)

Uploaded Source

Built Distribution

quool-1.5.1-py3-none-any.whl (38.7 kB view hashes)

Uploaded Python 3

Supported by

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