Quantitative Toolkit - a helper in quant developping
Project description
Quool
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 codegit 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 codeimport quool.request as qr daily_data = qr.AkShare.market_daily('600000', start='20200101', end='20201231')
For logging:
pythonCopy codeimport 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.