Metadata-Version: 2.2
Name: rose-research-backtester
Version: 0.1.0
Summary: Institutional-grade backtesting framework with advanced validation
Home-page: https://github.com/dabiggestpoppa/rose-research-backtester
Author: RoseResearch
Author-email: contact@roseresearch.ai
Classifier: Development Status :: 4 - Beta
Classifier: Intended Audience :: Financial and Insurance Industry
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.9
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Classifier: Topic :: Office/Business :: Financial :: Investment
Requires-Python: >=3.9
Description-Content-Type: text/markdown
License-File: LICENSE
Requires-Dist: fastapi>=0.68.0
Requires-Dist: uvicorn>=0.15.0
Requires-Dist: python-multipart>=0.0.5
Requires-Dist: pydantic>=1.8.2
Requires-Dist: asyncpg>=0.25.0
Requires-Dist: aiohttp>=3.8.1
Requires-Dist: cryptography>=3.4.7
Requires-Dist: numpy>=1.21.0
Requires-Dist: pandas>=1.3.0
Requires-Dist: pyarrow>=5.0.0
Requires-Dist: torch>=2.0.0
Requires-Dist: cuda-python>=11.8.0
Requires-Dist: pytest>=6.2.5
Requires-Dist: pytest-asyncio>=0.25.3
Requires-Dist: pytest-cov>=2.12.1
Requires-Dist: python-dotenv>=0.19.0
Requires-Dist: watchdog>=2.1.6
Requires-Dist: websockets>=10.0
Requires-Dist: redis>=4.0.0
Requires-Dist: fasttext>=0.9.2
Requires-Dist: transformers>=4.30.2
Requires-Dist: sentencepiece>=0.1.99
Requires-Dist: sacremoses>=0.0.53
Requires-Dist: tokenizers>=0.13.3
Requires-Dist: huggingface-hub>=0.16.4
Requires-Dist: datasets>=2.14.0
Requires-Dist: accelerate>=0.21.0
Requires-Dist: evaluate>=0.4.0
Requires-Dist: optimum>=1.9.0
Requires-Dist: git-python>=1.0.3
Requires-Dist: mkdocs>=1.2.3
Requires-Dist: mkdocs-material>=8.0.0
Provides-Extra: dev
Requires-Dist: pytest>=6.2.5; extra == "dev"
Requires-Dist: pytest-cov>=2.12.0; extra == "dev"
Requires-Dist: black>=22.3.0; extra == "dev"
Requires-Dist: flake8>=4.0.1; extra == "dev"
Requires-Dist: mypy>=0.910; extra == "dev"
Dynamic: author
Dynamic: author-email
Dynamic: classifier
Dynamic: description
Dynamic: description-content-type
Dynamic: home-page
Dynamic: provides-extra
Dynamic: requires-dist
Dynamic: requires-python
Dynamic: summary

# MCP Auto-Sync System

## Installation Instructions

1. First install required packages:
```bash
pip install -r requirements.txt
```

2. Configure ports in main.py to use port 3000 for local development
3. Make sure no other processes are using port 3000 before starting

## Deployment on DigitalOcean

1. Create a new DigitalOcean Droplet
2. Configure your domain and SSL certificates
3. Set up environment variables in your deployment environment
4. Deploy using Docker or direct installation

## Running the Project

1. Once deployed, make sure the dependencies from `requirements.txt` are installed
2. Start the project
3. Your app will be available at your configured domain

## System Components

- **Real-Time Git Sync**: Changes saved in Windsurf are automatically committed and pushed
- **Security**: HMAC-SHA256 signed commits using MCP_VAULT secret
- **DigitalOcean Integration**: Direct deployment from GitHub without Docker

## Recent Updates
- Fixed port binding issues by standardizing on port 3000
- Improved Redis connection handling and shutdown process
- Added health check endpoint to monitor Redis connectivity

## Configuration
- **MCP_VAULT**: Required for HMAC-SHA256 signed commits
- **REDIS_URL**: Optional, defaults to "redis://redis-mcp:6380"
- **PORT**: Fixed to 3000 for local development

## Environment Setup

Make sure to set these environment variables in your deployment environment:
1. Set the following environment variables:
   - `REDIS_URL`: Your Redis connection URL (optional)
   - `MCP_VAULT`: Your secure vault key for HMAC-SHA256 signing

## Features

- **FastAPI Backend**: Running on port 3000
- **Real-Time Updates**: WebSocket support for live data
- **Auto-Cleanup**: Automatic cleanup of old results
- **CORS Enabled**: Frontend can connect from any origin
- **Validation Features**:
  - **Walk-Forward Analysis**: Anchored and rolling window validation
  - **Monte Carlo Simulation**: Multiple path generation methods
  - **Validation Metrics**: Sharpe & Sortino ratios, Maximum drawdown, Win rate & profit factor, Ulcer index, Pain ratio, Calmar ratio

## Troubleshooting
- If port 3000 is in use, stop other processes using: `lsof -i :3000`
- Check Redis connectivity using the /health endpoint
- Verify HMAC-SHA256 signatures in commit logs
- If the app doesn't start, check the deployment logs for error messages
- Make sure all required environment variables are set
- Check that port 3000 is properly exposed in the deployment configuration

Last Updated: 2025-02-07
