All notable changes to MeridianAlgo will be documented in this file.
The format is based on Keep a Changelog, and this project adheres to Semantic Versioning.
- Fixed CI workflow to run tests on every push
- Simplified CI pipeline for better reliability
- Updated PyPI publishing workflow
- Consolidated all documentation into single docs folder
- Removed duplicate documentation files (DEPLOYMENT.md, RELEASE_NOTES.md, duplicate CHANGELOGs)
- Removed emoji usage throughout codebase for professional appearance
- Humanized and professionalized README content
- Cleaned up unnecessary comments in setup.py
- Improved code organization and structure
- New GitHub Action workflow for automatic PyPI publishing on tag push
- Automated release creation using README as release notes
- Separate CI/CD pipeline for testing and publishing
- Duplicate Sphinx documentation in meridianalgo/docs folder
- .agent workflow folder
- Unnecessary summary and duplicate documentation files
- All emoji characters from documentation
- Linted entire codebase with Ruff formatter
- Cleaned up code comments and documentation
- Production-Grade CI/CD: Comprehensive GitHub Actions workflow with automated
rufflinting/fixing, parallel matrix testing, and automated GitHub & PyPI releases. - Unified ML Architecture: Reorganized
meridianalgo.mlfor modular model development.ModelTrainer,LSTMModel, andGRUModelare now first-class exports. - Enhanced API Discovery: Major overhaul of
__init__.pyfiles across all sub-packages (Core, Risk, Strategies, Execution) for seamless institutional-grade imports. - Detailed Technical Documentation: Updated README/Changelog with high-fidelity performance benchmarks and mathematical foundations.
- Critical Import Paths: Resolved systemic
ImportErroracross ML, Strategies, and Core modules. - Execution Analytics: Fixed
ExecutionAnalyzerintegration andNameErrorin typing. - Standardized Exports: Ensured all
__all__lists in sub-modules accurately reflect available functionality.
- Version Alignment: Unified package version to 6.2.2 across
pyproject.toml,setup.py, and package metadata. - API Aliasing: Formalized professional aliases for core quant components (e.g.,
VaRCalculator,BacktestEngine).
- Internal module reorganization.
- Bug fixes for portfolio optimization.
-
Market Microstructure Analysis
OrderFlowImbalance: Order flow imbalance calculations, VIR, weighted pressureVolumeWeightedSpread: Volume-weighted spread, effective spread, realized spreadRealizedVolatility: 5-min RV, bipower variation, realized kernel estimatorMarketImpactModel: Almgren-Chriss, square-root law, optimal execution schedulesTickDataAnalyzer: Lee-Ready algorithm, VPIN, Roll spread estimator, trade duration analysis
-
Statistical Arbitrage
PairsTrading: Complete pairs trading strategy with dynamic hedge ratios (OLS, TLS, Kalman)CointegrationAnalyzer: Engle-Granger and Johansen cointegration testsOrnsteinUhlenbeck: OU process modeling, MLE parameter estimation, simulationMeanReversionTester: ADF test, variance ratio test, Hurst exponentSpreadAnalyzer: Spread statistics, Bollinger bands, optimal entry/exit thresholds
-
Execution Algorithms
VWAP: Volume-Weighted Average Price execution with participation limitsTWAP: Time-Weighted Average Price execution with equal slicingPOV: Percentage of Volume execution with dynamic adjustmentImplementationShortfall: Almgren-Chriss optimal execution frameworkAdaptiveExecution: Adaptive execution based on real-time market conditions
-
High-Frequency Trading
MarketMaking: Avellaneda-Stoikov market making with inventory managementLatencyArbitrage: Cross-venue arbitrage detection with latency filteringLiquidityProvision: Passive liquidity provision with fill rate optimizationHFTSignalGenerator: Order flow toxicity, volume clock returns, noise ratioMicropriceEstimator: Microprice calculation from order book depth
-
Factor Models
FamaFrenchModel: Three-factor and five-factor models with t-statisticsAPTModel: Arbitrage Pricing Theory with PCA factor extractionCustomFactorModel: User-defined factor models with regularizationFactorRiskDecomposition: Portfolio risk attribution to factorsAlphaCapture: Pure alpha calculation, IC analysis, factor tilting
-
Regime Detection
HiddenMarkovModel: HMM for regime detection with Baum-Welch algorithmRegimeSwitchingModel: Markov regime-switching with forecastingStructuralBreakDetection: Chow test, CUSUM test, Bai-Perron testMarketStateClassifier: Composite market state classificationVolatilityRegimeDetector: GARCH-based volatility regime identification
- Added 200+ comprehensive test cases
- Integration tests for all quant modules
- Mock data generators for realistic testing
- 90%+ code coverage
- Completely rewritten README with professional branding
- 100+ code examples across all modules
- Mathematical formulations and references
- Real-world use cases by professional type
- Package Structure: Reorganized for clarity and professional standards
- Branding: Updated to "Advanced Quantitative Development Platform"
- Version: Updated to 5.0.0 across all files
- Test Organization: Consolidated all tests into main
tests/directory - Code Quality: Enhanced error handling and parameter validation throughout
- Performance optimizations for high-frequency operations
- Better error messages and user feedback
- Enhanced type hints and documentation strings
- More comprehensive logging and debugging support
- Unnecessary summary files and documentation duplicates
- Test files from package directory (moved to main tests/)
- Temporary demo files
- Build artifacts and cache directories
- Import path consistency across modules
- Edge case handling in statistical tests
- Numerical stability in optimization algorithms
- Documentation typos and formatting
- Portfolio optimization enhancements
- Risk analysis improvements
- ML model updates
- Enhanced backtesting capabilities
- Updated technical indicators
- Improved API consistency
All algorithms are optimized for production use:
- Market microstructure: < 1ms for tick processing
- Statistical arbitrage: < 100ms for signal generation
- Execution algorithms: < 10ms per order slice
- HFT strategies: < 100s for quote calculation
- Factor models: < 1s for portfolio optimization
- Regime detection: < 5s for HMM fitting (100 observations)
No breaking changes! All existing functionality remains unchanged.
New imports available:
from meridianalgo.quant import (
PairsTrading, VWAP, MarketMaking,
FamaFrenchModel, HiddenMarkovModel
)Or use direct imports:
import meridianalgo as ma
pt = ma.PairsTrading()
vwap = ma.VWAP(...)- Almgren, R., & Chriss, N. (2000). "Optimal execution of portfolio transactions"
- Avellaneda, M., & Stoikov, S. (2008). "High-frequency trading in a limit order book"
- Engle, R. F., & Granger, C. W. (1987). "Co-integration and error correction"
- Fama, E. F., & French, K. R. (1993). "Common risk factors in the returns on stocks and bonds"
- Hamilton, J. D. (1989). "A new approach to the economic analysis of nonstationary time series"
- GitHub Issues: https://github.com/MeridianAlgo/Python-Packages/issues
- Documentation: https://meridianalgo.readthedocs.io
- Email: support@meridianalgo.com
MeridianAlgo - Advanced Quantitative Development Platform
Built by quantitative professionals, for quantitative professionals.