A Python module for loading financial datasets from various sources
Project description
Financial Dataset Loader
A Python module for efficiently loading financial datasets from various sources including local storage and AWS S3. Designed for streamlined data management in quantitative finance applications.
Features
- Multiple data source support:
- AWS S3 storage (
dataset_loader_s3) - Local filesystem (
dataset_loader_local)
- AWS S3 storage (
- Flexible data source configuration and path management
- Standardized file name formatting
- Configurable dataset loading parameters
Project Structure
financial_dataset_loader/
├── data_source.py # Data source configuration
├── dataset_loader_config.py # Loader configurations
├── dataset_loader_local.py # Local filesystem loader
├── dataset_loader_s3.py # AWS S3 loader
├── file_name_formatter.py # File naming utilities
└── path_director.py # Path management
Installation
pip install financial-dataset-loader
Usage
Loading Financial Data
from financial_dataset_loader import dataset_loader_s3
# Load menu snapshot data
df = dataset_loader_s3.load_menu2205_snapshot(date_ref='2025-02-12')
# Load specific fund data
df = dataset_loader_s3.load_menu2205(fund_code='000123', date_ref='2025-02-12')
# Load market data
df = dataset_loader_s3.load_market(market_name='KOSPI', date_ref='2025-02-12')
# Load index data
df = dataset_loader_s3.load_index(ticker_bbg_index='KOSPI Index')
# Load currency data
df = dataset_loader_s3.load_currency(ticker_bbg_currency='USDKRW Curncy')
Available Loading Functions
load_menu2160(fund_code): Load timeseries data for menu 2160load_menu2160_snapshot(date_ref): Load snapshot data for menu 2160load_menu2205(fund_code, date_ref): Load fund-specific data for menu 2205load_menu2205_snapshot(date_ref): Load snapshot data for menu 2205load_menu8186_snapshot(date_ref): Load snapshot data for menu 8186load_menu4165(fund_code, date_ref): Load period data for menu 4165load_menu4165_snapshot(fund_code, date_ref): Load snapshot data for menu 4165load_index(ticker_bbg_index): Load Bloomberg index dataload_currency(ticker_bbg_currency): Load Bloomberg currency dataload_market(market_name, date_ref): Load market data
Requirements
- Python >= 3.11
- aws-s3-controller (for S3 functionality)
- string-date-controller (for date conversion functionality)
- shining_pebbles (for pseudo database functionality)
License
MIT License
Author
June Young Park
AI Management Development Team Lead & Quant Strategist at LIFE Asset Management
LIFE Asset Management is a hedge fund management firm that integrates value investing and engagement strategies with quantitative approaches and financial technology, headquartered in Seoul, South Korea.
Contact
- Email: juneyoungpaak@gmail.com
- Location: TWO IFC, Yeouido, Seoul
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
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
File details
Details for the file financial_dataset_loader-0.2.2.tar.gz.
File metadata
- Download URL: financial_dataset_loader-0.2.2.tar.gz
- Upload date:
- Size: 5.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.11.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
5c328cc9c11d4fc06927d298b49acd65c56b9414e6d5ccd3b17ddf657f7daacd
|
|
| MD5 |
32beafa241503dab8843cd420b7f60c0
|
|
| BLAKE2b-256 |
b9c8fe1106e4cbf0dc071f171ed596c7e0e21367b1537dc479d3df4a97864178
|
File details
Details for the file financial_dataset_loader-0.2.2-py3-none-any.whl.
File metadata
- Download URL: financial_dataset_loader-0.2.2-py3-none-any.whl
- Upload date:
- Size: 6.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.11.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
87ccb5cca3f100952cfb6beb72f9eaa8992417ae0813d0e99d1c8291a9a7c1f4
|
|
| MD5 |
c7f78f19dcb574e2fa2c5b4b9b550c78
|
|
| BLAKE2b-256 |
8895ee5d6bebfe0f4f6b14c23161c014d35021fe728dcb3bddc80e6e7f2f4091
|