Project Name Explanation:
QuantVault combines quantitative analysis with secure execution. Cryogenic reflects the cold, calculated AI decision-making and ultra-fast performance.
A high-frequency crypto trading system combining:
- Real-time market data analysis (Binance Futures)
- News sentiment processing (NewsAPI + TextBlob)
- AI-powered signal generation (Plugin architecture)
- Risk-managed order execution
- Continuous portfolio optimization
| Component | Purpose | Tech Stack |
|---|---|---|
TradingEngine |
Core event loop | RxPY, Binance API |
CryoAnalyzer |
Signal generation | Scikit-learn, TensorFlow |
RiskForge |
Position management | Portfolio optimization algos |
VaultExecutor |
Order routing | Binance Futures API |
Sentinel |
Monitoring | Prometheus, Grafana |
- Critical Safety Notes
- System Requirements
- Installation
- Configuration
- Running the System
- Key Features
- Monitoring & Maintenance
- Plugin Development
- Testnet Mandatory - Never run against live exchanges until fully validated
- Position Limits - Start with MAX_POSITION_SIZE=0.01 (1% of portfolio)
- Circuit Breakers - System has basic risk controls but NO GUARANTEES
- 24/7 Monitoring - Do not leave unattended. Be prepared to manually intervene
- Python 3.10+
- Binance Futures Testnet Account
- NewsAPI.org API Key (free tier available)
- 4GB+ RAM
- Stable internet connection
# Clone repo
git clone https://github.com/yourusername/ai-trading-system.git
cd ai-trading-system
# Create virtual environment (recommended)
python -m venv venv
source venv/bin/activate # Linux/Mac
# venv\Scripts\activate # Windows
# Install dependencies
pip install -r requirements.txt
pip install textblob python-binance newsapi-pythonCreate .env file:
BINANCE_API_KEY="your_testnet_key"
BINANCE_SECRET="your_testnet_secret"
NEWS_API_KEY="your_newsapi_key"
SYMBOLS="BTCUSDT,ETHUSDT"
MAX_POSITION_SIZE=0.01 # 1% of portfolio
MAX_DAILY_LOSS=0.03 # 3% max daily loss
PORTFOLIO_REFRESH=30 # Seconds between balance checksfrom trading.core import TradingEngine
config = {
"BINANCE_API_KEY": "YOUR_KEY",
"BINANCE_SECRET": "YOUR_SECRET",
"NEWS_API_KEY": "YOUR_KEY",
"SYMBOLS": ["BTCUSDT"],
"MAX_POSITION_SIZE": 0.01,
"MAX_DAILY_LOSS": 0.03
}
engine = TradingEngine(config)
engine.start() # Starts WebSocket connections
# Let run for initial testing...
# engine.stop() # Proper shutdown- Real-time market data streaming
- News sentiment integration
- AI-powered signal generation (BasicPlugin included)
- Risk-managed order execution
- Circuit breaker pattern
- Position size calculations
- Daily loss limits
Essential Checks:
# Monitor logs for:
- Order confirmation/rejection messages
- Portfolio balance updates
- News sentiment scores
- Risk manager interventionsDaily Tasks:
- Review daily P&L
- Check system logs for errors
- Validate position reconciliation
- Test emergency stop procedure
Create custom plugins by extending AIPluginInterface:
from trading.plugins.base import AIPluginInterface
from trading.datastructures import TradeSignal
class MyCustomPlugin(AIPluginInterface):
def analyze(self, context):
# Your AI logic here
return TradeSignal(
confidence=0.75,
action="BUY",
target_price=...,
expiration=...
)- Basic position reconciliation
- Limited exchange integrations
- Simplified slippage model
- News API rate limits
- Basic error recovery
This software is provided "AS IS" without warranties. Never invest real funds. See full disclaimer in LICENSE file.