Secure research system for quantitative analysis
Project description
MCP Auto-Sync System
Installation Instructions
- First install required packages:
pip install -r requirements.txt
- Configure ports in main.py to use port 3000 for local development
- Make sure no other processes are using port 3000 before starting
Deployment on DigitalOcean
- Create a new DigitalOcean Droplet
- Configure your domain and SSL certificates
- Set up environment variables in your deployment environment
- Deploy using Docker or direct installation
Running the Project
- Once deployed, make sure the dependencies from
requirements.txtare installed - Start the project
- 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:
- 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
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
sys_research-0.1.0.tar.gz
(92.9 kB
view details)
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
sys_research-0.1.0-py3-none-any.whl
(103.3 kB
view details)
File details
Details for the file sys_research-0.1.0.tar.gz.
File metadata
- Download URL: sys_research-0.1.0.tar.gz
- Upload date:
- Size: 92.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
79998b8a6eb66cf7c3177fc67cbd7d68f2d174df99dd016e4760944e35337e9f
|
|
| MD5 |
b184b4d571e1048f603db4c4c2a3379a
|
|
| BLAKE2b-256 |
3eabe605580e60a55c5d2762eeacabc856dcca82dac76269fd3ddf10859be27d
|
File details
Details for the file sys_research-0.1.0-py3-none-any.whl.
File metadata
- Download URL: sys_research-0.1.0-py3-none-any.whl
- Upload date:
- Size: 103.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
6be2b730f1135e250b1bd416f33eadc3970bed4368017b77a34b5b56f2d178c7
|
|
| MD5 |
f491acb023a4315575d14b9ce3dc5ae9
|
|
| BLAKE2b-256 |
1689b7b8f6a1cc02f5e71a41e33234199349508a6e32e7e7f21ca0d037e36428
|