Skip to content

Commit 90e11ef

Browse files
Fix dependency mismatches, upgrade to Python 3.10+, and enhance CI/CD with rigorous linting and testing. Removed all non-ASCII characters/emojis.
1 parent 60d82e3 commit 90e11ef

150 files changed

Lines changed: 24629 additions & 19760 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.github/workflows/deploy.yml

Lines changed: 28 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -7,28 +7,41 @@ on:
77

88
jobs:
99
build-n-publish:
10-
name: Build and publish Python distribution to PyPI
10+
name: Build, Lint, Test and Publish
1111
runs-on: ubuntu-latest
1212
steps:
1313
- uses: actions/checkout@v3
14-
- name: Set up Python 3.9
14+
15+
- name: Set up Python 3.10
1516
uses: actions/setup-python@v4
1617
with:
17-
python-version: 3.9
18+
python-version: '3.10'
19+
20+
- name: Install dependencies
21+
run: |
22+
python -m pip install --upgrade pip
23+
pip install -r requirements.txt
24+
pip install -r dev-requirements.txt
25+
pip install .
26+
27+
- name: Lint with ruff
28+
run: ruff check .
29+
30+
- name: Check formatting with black
31+
run: black --check .
32+
33+
- name: Check imports with isort
34+
run: isort --check-only .
35+
36+
- name: Run tests
37+
run: pytest tests/
38+
1839
- name: Install pypa/build
19-
run: >-
20-
python -m
21-
pip install
22-
build
23-
--user
40+
run: python -m pip install build --user
41+
2442
- name: Build a binary wheel and a source tarball
25-
run: >-
26-
python -m
27-
build
28-
--sdist
29-
--wheel
30-
--outdir dist/
31-
.
43+
run: python -m build --sdist --wheel --outdir dist/ .
44+
3245
- name: Publish distribution to PyPI
3346
uses: pypa/gh-action-pypi-publish@release/v1
3447
with:

CHANGELOG.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ All algorithms are optimized for production use:
112112
- **Market microstructure**: < 1ms for tick processing
113113
- **Statistical arbitrage**: < 100ms for signal generation
114114
- **Execution algorithms**: < 10ms per order slice
115-
- **HFT strategies**: < 100μs for quote calculation
115+
- **HFT strategies**: < 100s for quote calculation
116116
- **Factor models**: < 1s for portfolio optimization
117117
- **Regime detection**: < 5s for HMM fitting (100 observations)
118118

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -158,4 +158,4 @@ If you use MeridianAlgo in your research or business, please cite it:
158158
}
159159
```
160160

161-
**MeridianAlgo** *Empowering Quantitative Excellence.*
161+
**MeridianAlgo** *Empowering Finance for Everyone*

best_lstm_model.pth

128 KB
Binary file not shown.

dev-requirements.txt

Lines changed: 11 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,13 @@
11
# Development dependencies
2-
pytest>=6.0
3-
pytest-cov>=2.0
4-
black>=21.7b0
5-
flake8>=3.9.0
6-
mypy>=0.910
7-
sphinx>=4.0.0
8-
sphinx-rtd-theme>=0.5.0
2+
pytest>=7.4.0
3+
pytest-cov>=4.1.0
4+
pytest-xdist>=3.3.0
5+
ruff>=0.1.0
6+
black>=23.9.0
7+
isort>=5.12.0
8+
mypy>=1.5.0
9+
sphinx>=7.0.0
10+
sphinx-rtd-theme>=1.3.0
911
jupyter>=1.0.0
10-
notebook>=6.4.0
11-
ipykernel>=6.0.0
12+
notebook>=7.0.0
13+
ipykernel>=6.25.0

docs/API_REFERENCE.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
# API Reference - MeridianAlgo v4.0.0
22

3-
## 📚 Complete API Documentation
3+
## Complete API Documentation
44

55
This document provides comprehensive API reference for all MeridianAlgo modules.
66

7-
## 🗂️ Module Overview
7+
## Module Overview
88

99
### Core Modules
1010
- [Data Infrastructure](#data-infrastructure) - Multi-source data providers and processing
@@ -246,7 +246,7 @@ stress_results = stress_tester.run_historical_scenarios(portfolio, scenarios)
246246

247247
---
248248

249-
## 🔧 Configuration
249+
## Configuration
250250

251251
### Global Configuration
252252

@@ -275,7 +275,7 @@ ma.logging.enable_file_logging('meridianalgo.log')
275275

276276
---
277277

278-
## 🚀 Quick Start Examples
278+
## Quick Start Examples
279279

280280
### Basic Portfolio Analysis
281281

@@ -336,7 +336,7 @@ predictions = model.predict(test_features)
336336

337337
---
338338

339-
## 📊 Performance Considerations
339+
## Performance Considerations
340340

341341
### Optimization Tips
342342

@@ -358,7 +358,7 @@ ma.config.enable_memory_mapping(True)
358358

359359
---
360360

361-
## 🔍 Error Handling
361+
## Error Handling
362362

363363
### Exception Types
364364

@@ -377,7 +377,7 @@ except ValidationError as e:
377377

378378
---
379379

380-
## 📞 Support
380+
## Support
381381

382382
For detailed API documentation and examples:
383383
- **Online Docs**: [docs.meridianalgo.com](https://docs.meridianalgo.com)

docs/DEPLOYMENT.md

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Deployment Guide for MeridianAlgo
22

3-
## 🚀 PyPI Deployment
3+
## PyPI Deployment
44

55
### Prerequisites
66

@@ -43,7 +43,7 @@ Use API token authentication:
4343
- **Username**: `__token__`
4444
- **Password**: Your PyPI API token
4545

46-
## 🐳 Docker Deployment
46+
## Docker Deployment
4747

4848
### Build Docker Image
4949
```bash
@@ -68,7 +68,7 @@ services:
6868
- PYTHONPATH=/app
6969
```
7070
71-
## ☁️ Cloud Deployment
71+
## Cloud Deployment
7272
7373
### AWS Lambda
7474
```python
@@ -109,7 +109,7 @@ def main(req: func.HttpRequest) -> func.HttpResponse:
109109
return func.HttpResponse(risk_metrics)
110110
```
111111

112-
## 🔧 CI/CD Pipeline
112+
## CI/CD Pipeline
113113

114114
### GitHub Actions
115115
```yaml
@@ -141,7 +141,7 @@ jobs:
141141
run: twine upload dist/*
142142
```
143143
144-
## 📊 Monitoring and Analytics
144+
## Monitoring and Analytics
145145
146146
### Package Usage Analytics
147147
- Monitor download statistics on PyPI
@@ -160,7 +160,7 @@ ma.enable_monitoring(
160160
)
161161
```
162162

163-
## 🔒 Security Considerations
163+
## Security Considerations
164164

165165
### API Key Management
166166
```python
@@ -184,7 +184,7 @@ cipher_suite = Fernet(key)
184184
encrypted_data = cipher_suite.encrypt(sensitive_data.encode())
185185
```
186186

187-
## 📈 Scaling Considerations
187+
## Scaling Considerations
188188

189189
### Horizontal Scaling
190190
- Use Redis for caching market data
@@ -196,7 +196,7 @@ encrypted_data = cipher_suite.encrypt(sensitive_data.encode())
196196
- Use distributed computing with Dask/Ray
197197
- Implement intelligent caching strategies
198198

199-
## 🚨 Troubleshooting
199+
## Troubleshooting
200200

201201
### Common Deployment Issues
202202

@@ -227,7 +227,7 @@ docker run -it meridianalgo:debug /bin/bash
227227
- Implement caching strategies
228228
- Consider using container-based deployments
229229

230-
## 📞 Support
230+
## Support
231231

232232
For deployment issues:
233233
1. Check the [troubleshooting guide](TROUBLESHOOTING.md)
@@ -237,4 +237,4 @@ For deployment issues:
237237

238238
---
239239

240-
**MeridianAlgo** - Deploy anywhere, analyze everywhere! 🌍
240+
**MeridianAlgo** - Deploy anywhere, analyze everywhere!

docs/RELEASE_NOTES.md

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
# Release Notes - MeridianAlgo v4.0.0
22

3-
## 🎉 Ultimate Quantitative Development Platform
3+
## Ultimate Quantitative Development Platform
44

55
**Release Date**: December 2024
66
**Version**: 4.0.0
77
**Codename**: "Ultimate Quant"
88

99
This major release transforms MeridianAlgo into the ultimate quantitative development platform, integrating the best features from leading quantitative finance libraries while maintaining superior performance and extensibility.
1010

11-
## 🚀 Major New Features
11+
## Major New Features
1212

1313
### 1. Comprehensive Data Infrastructure
1414
- **Multi-Source Data Providers**: Yahoo Finance, Alpha Vantage, Quandl, IEX Cloud, FRED, and more
@@ -58,7 +58,7 @@ This major release transforms MeridianAlgo into the ultimate quantitative develo
5858
- **Cloud Deployment**: AWS, GCP, Azure optimizations
5959
- **Intelligent Caching**: Redis integration with memory mapping
6060

61-
## 🔧 Technical Improvements
61+
## Technical Improvements
6262

6363
### Performance Enhancements
6464
- **Numba JIT Compilation**: Critical paths compiled to machine code
@@ -78,7 +78,7 @@ This major release transforms MeridianAlgo into the ultimate quantitative develo
7878
- **Documentation**: Comprehensive docstrings and examples
7979
- **Backward Compatibility**: Migration tools for existing code
8080

81-
## 📊 Performance Benchmarks
81+
## Performance Benchmarks
8282

8383
### Speed Improvements
8484
- **Technical Indicators**: 10-50x faster than pure Python implementations
@@ -96,7 +96,7 @@ This major release transforms MeridianAlgo into the ultimate quantitative develo
9696
- **Concurrent Users**: Support 1000+ concurrent analysis sessions
9797
- **Cloud Scaling**: Auto-scaling based on computational load
9898

99-
## 🛠️ Breaking Changes
99+
## Breaking Changes
100100

101101
### API Changes
102102
- **Module Reorganization**: Some imports have changed (migration guide provided)
@@ -111,7 +111,7 @@ This major release transforms MeridianAlgo into the ultimate quantitative develo
111111
### Migration Guide
112112
See [MIGRATION.md](MIGRATION.md) for detailed upgrade instructions.
113113

114-
## 🐛 Bug Fixes
114+
## Bug Fixes
115115

116116
### Data Handling
117117
- Fixed timezone handling in market data
@@ -128,7 +128,7 @@ See [MIGRATION.md](MIGRATION.md) for detailed upgrade instructions.
128128
- Fixed thread safety issues in parallel processing
129129
- Resolved caching inconsistencies
130130

131-
## 📚 Documentation & Examples
131+
## Documentation & Examples
132132

133133
### New Documentation
134134
- **API Reference**: Complete documentation for all modules
@@ -142,7 +142,7 @@ See [MIGRATION.md](MIGRATION.md) for detailed upgrade instructions.
142142
- **Portfolio Examples**: Risk parity, factor investing
143143
- **Risk Management**: VaR monitoring, stress testing scenarios
144144

145-
## 🔒 Security Enhancements
145+
## Security Enhancements
146146

147147
### Data Security
148148
- **API Key Management**: Secure storage and rotation
@@ -156,7 +156,7 @@ See [MIGRATION.md](MIGRATION.md) for detailed upgrade instructions.
156156
- **Sandboxing**: Isolated execution of user strategies
157157
- **Code Review**: Mandatory security reviews
158158

159-
## 🌍 Platform Support
159+
## Platform Support
160160

161161
### Operating Systems
162162
- **Windows**: Full support with native optimizations
@@ -173,7 +173,7 @@ See [MIGRATION.md](MIGRATION.md) for detailed upgrade instructions.
173173
- **Google Cloud**: Cloud Functions, Compute Engine, AI Platform
174174
- **Azure**: Functions, Virtual Machines, Machine Learning
175175

176-
## 📈 Adoption & Community
176+
## Adoption & Community
177177

178178
### Industry Adoption
179179
- **Hedge Funds**: 50+ funds using MeridianAlgo in production
@@ -187,7 +187,7 @@ See [MIGRATION.md](MIGRATION.md) for detailed upgrade instructions.
187187
- **Downloads**: 1M+ monthly downloads
188188
- **Community Forum**: Active discussions and support
189189

190-
## 🎯 Future Roadmap
190+
## Future Roadmap
191191

192192
### Version 4.1 (Q1 2025)
193193
- **Alternative Data**: Satellite imagery, social media sentiment
@@ -201,7 +201,7 @@ See [MIGRATION.md](MIGRATION.md) for detailed upgrade instructions.
201201
- **Advanced AI**: GPT-based strategy generation
202202
- **Regulatory Expansion**: Global compliance frameworks
203203

204-
## 🙏 Acknowledgments
204+
## Acknowledgments
205205

206206
### Core Team
207207
- **Lead Developer**: Quantum Meridian Research Team
@@ -213,7 +213,7 @@ See [MIGRATION.md](MIGRATION.md) for detailed upgrade instructions.
213213
- **Industry Partners**: Leading hedge funds and asset managers
214214
- **Open Source Community**: NumPy, Pandas, SciPy, and PyTorch teams
215215

216-
## 📞 Support & Resources
216+
## Support & Resources
217217

218218
### Getting Help
219219
- **Documentation**: [docs.meridianalgo.com](https://docs.meridianalgo.com)
@@ -229,13 +229,13 @@ See [MIGRATION.md](MIGRATION.md) for detailed upgrade instructions.
229229

230230
---
231231

232-
## 🎊 Welcome to the Future of Quantitative Finance!
232+
## Welcome to the Future of Quantitative Finance!
233233

234234
MeridianAlgo v4.0.0 represents the culmination of years of development and the collective expertise of the quantitative finance community. Whether you're a hedge fund manager, academic researcher, or individual trader, this platform provides the tools you need to succeed in modern financial markets.
235235

236236
**Download now**: `pip install meridianalgo`
237237

238-
**Join the revolution**: Transform your quantitative analysis with the ultimate platform! 🚀
238+
**Join the revolution**: Transform your quantitative analysis with the ultimate platform!
239239

240240
---
241241

0 commit comments

Comments
 (0)