This repository was archived by the owner on May 5, 2026. It is now read-only.
Releases: gahoccode/vntickers
Releases · gahoccode/vntickers
Release list
v0.2.0 - Modular Architecture & Enhanced Validation
Summary
This release introduces a major architectural refactoring with modular loaders and comprehensive parameter validation using Pydantic.
Added
- Modular loader architecture with focused data source modules:
VnstockLoaderfor vnstock data source (VCI/TCBS)VnquantLoaderfor vnquant data sourceVietfinLoaderfor vietfin data source (DNSE/TCBS)
- Comprehensive parameter validation using Pydantic:
StockCloseParamsbase validator for common parameters (symbols, dates)VnstockParamsfor vnstock-specific validation (source, interval)VnquantParamsfor vnquant-specific validationVietfinParamsfor vietfin-specific validation with interval constraints
- Lazy loading support for all loaders to optimize performance and reduce import overhead
- Support for intraday data intervals via VietfinLoader:
- DNSE provider:
1m,15m,30m,1h,1dintervals - TCBS provider:
1dinterval only
- DNSE provider:
- Validation for DNSE API constraints:
- 90-day maximum date range for intraday intervals (1m, 15m, 30m, 1h)
- Single symbol requirement for intraday intervals
- Enhanced documentation:
- Comprehensive CLAUDE.md with architecture overview and best practices
- README updated with vietfin usage examples for daily and intraday data
- New dependencies:
vietfin,pydantic>=2.0.0
Changed
- Breaking architectural change: Refactored monolithic
VNStockDataclass into separate focused loaders VNStockDataclass now serves as backward-compatible facade delegating to focused loaders- Symbol validation now auto-normalizes to uppercase (e.g.,
vnm→VNM) - Symbol format validation ensures 2-4 alphanumeric characters
- Date validation accepts both string format (
"2024-01-01") and Pythondateobjects - Date order validation ensures
end_date >= start_date - Enhanced error messages provide clear validation failure details
Deprecated
- Direct use of
VNStockDataclass methods (still supported for backward compatibility):VNStockData.get_close_prices_vns()→ UseVnstockLoader.get_close_prices()VNStockData.get_close_prices_vnq()→ UseVnquantLoader.get_close_prices()VNStockData.get_close_prices_vf()→ UseVietfinLoader.get_close_prices()
Fixed
- Corrected vietfin interval support (removed unsupported
1wand1mointervals) - Added missing
15mand30mintervals for DNSE provider
PyPI Package: https://pypi.org/project/vntickers/
Full Changelog: https://github.com/gahoccode/vntickers/blob/main/CHANGELOG.md
v0.1.0 - Initial Release
Initial Release
First stable release of vntickers - A Python package for fetching Vietnamese stock market data.
Features
- Fetch stock data using vnstock (VCI source)
- Fetch stock data using vnquant
- Unified DataFrame interface with time index and ticker columns
- Support for multiple tickers and date ranges
Installation
Install from PyPI:
pip install vntickersOr with uv:
uv add vntickersPyPI Package: https://pypi.org/project/vntickers/
Documentation
See the README for usage examples and documentation.