Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file added .coverage
Binary file not shown.
10 changes: 10 additions & 0 deletions .coveragerc
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
[run]
include =
src/backtest/results_cache.py
src/data/cache.py
src/utils/http.py
src/reporting/html.py

[report]
exclude_lines =
pragma: no cover
116 changes: 11 additions & 105 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -1,111 +1,17 @@
# Git
.git
.gitignore
.gitattributes

# Docker
Dockerfile*
docker-compose*
.dockerignore

# Python
__pycache__/
*.py[cod]
*$py.class
*.so
.Python
build/
develop-eggs/
dist/
downloads/
eggs/
.eggs/
lib/
lib64/
parts/
sdist/
var/
wheels/
*.egg-info/
.installed.cfg
*.egg
MANIFEST

# Virtual environments
.env
.venv
env/
venv/
ENV/
env.bak/
venv.bak/

# IDEs
.vscode/
.idea/
*.swp
*.swo
*~

# OS
.DS_Store
.DS_Store?
._*
.Spotlight-V100
.Trashes
ehthumbs.db
Thumbs.db

# Project specific
cache/
exports/
reports_output/
logs/
*.log
htmlcov/
.coverage
coverage.xml
.pytest_cache/
.mypy_cache/
.ruff_cache/

# Build-context trimming (not needed inside the image)
artifacts/
quant-strategies/
tests/

# Temporary files
.cache/
reports/
.venv/
.env
http_cache.sqlite
.DS_Store
*.swp
*.tmp
*.temp
temp/
tmp/

# Documentation
docs/_build/
site/

# Node.js (if any frontend)
node_modules/
npm-debug.log*
yarn-debug.log*
yarn-error.log*

# Jupyter
.ipynb_checkpoints/
*.ipynb

# Large data files
*.csv
*.json
*.pkl
*.pickle
*.h5
*.hdf5
*.parquet

# API keys and secrets
.env.local
.env.*.local
secrets/
*.key
*.pem
.vscode/
.idea/
.git
.gitignore
122 changes: 26 additions & 96 deletions .env.example
Original file line number Diff line number Diff line change
@@ -1,106 +1,36 @@
# Quant Trading System Environment Configuration
# Copy this file to .env and fill in your values
# Copy this file to `.env` and fill in as needed.

# ======================
# DATA SOURCE API KEYS
# ======================
# Get free keys from respective providers

# Alpha Vantage (primary data source)
# Get free key at: https://www.alphavantage.co/support/#api-key
ALPHA_VANTAGE_API_KEY=your_alpha_vantage_key_here

# Twelve Data (financial data)
# Get free key at: https://twelvedata.com/pricing
TWELVE_DATA_API_KEY=your_twelve_data_key_here

# Polygon.io (market data)
# Get key at: https://polygon.io/
POLYGON_API_KEY=your_polygon_key_here

# Tiingo (financial data)
# Get free key at: https://api.tiingo.com/
TIINGO_API_KEY=your_tiingo_key_here

# Finnhub (financial data)
# Get free key at: https://finnhub.io/
FINNHUB_API_KEY=your_finnhub_key_here

# Bybit (crypto data - optional)
BYBIT_API_KEY=your_bybit_key_here
BYBIT_API_SECRET=your_bybit_secret_here
BYBIT_TESTNET=false

# ======================
# SYSTEM CONFIGURATION
# ======================
# Basic system settings

# Environment: development, testing, production
ENVIRONMENT=development

# Logging level: DEBUG, INFO, WARNING, ERROR
# Common
LOG_LEVEL=INFO
DATA_CACHE_DIR=/app/.cache/data
STRATEGIES_PATH=/ext/strategies

# ======================
# DATABASE CONFIGURATION
# ======================
# PostgreSQL (primary storage)

# PostgreSQL Database Settings
POSTGRES_DB=quant_system
POSTGRES_USER=quantuser
POSTGRES_PASSWORD=quantpass

# PostgreSQL connection (adjust host for local vs Docker)
# For local development: postgresql://quantuser:quantpass@localhost:5432/quant_system
# For Docker containers: postgresql://quantuser:quantpass@postgres:5432/quant_system
DATABASE_URL=postgresql://quantuser:quantpass@postgres:5432/quant_system

# pgAdmin Configuration
PGADMIN_DEFAULT_EMAIL=admin@quant.local
PGADMIN_DEFAULT_PASSWORD=quantpass
PGADMIN_CONFIG_SERVER_MODE=False

# Optional Redis for recent overlay cache
# To enable Redis service by default in Compose: export COMPOSE_PROFILES=redis
USE_REDIS_RECENT=false
REDIS_URL=redis://redis:6379/0
# Set this to your local strategies repo path (absolute path recommended; ~ is not expanded)
# Example (macOS/Linux): /Users/you/code/your-strategies/algorithms/python
# Example (Windows): C:\\Users\\you\\code\\your-strategies\\algorithms\\python
HOST_STRATEGIES_PATH=

# Cache directory (for temporary files)
CACHE_DIR=./cache
# Polygon
POLYGON_API_KEY=

# ======================
# STRATEGIES (EXTERNAL)
# ======================
# Absolute host path to your external strategies directory (algorithms/python)
# Example (macOS): /Users/<you>/Documents/Websites/Private/quant/quant-strategies/algorithms/python
# This is mounted into the container at /app/external_strategies
STRATEGIES_HOST_PATH=/absolute/path/to/quant-strategies/algorithms/python
# Tiingo
TIINGO_API_KEY=

# ======================
# DATA SOURCE TUNING
# ======================
# Prefer Bybit/Twelve for crypto and optionally disable legacy sources to reduce noise
# Set to 'true' to disable these sources for crypto symbols
DISABLE_YAHOO_CRYPTO=false
DISABLE_AV_CRYPTO=false
# Alpaca
ALPACA_API_KEY_ID=
ALPACA_API_SECRET_KEY=

# Twelve Data: prefer a specific exchange for crypto symbols (e.g., BINANCE, COINBASE, BYBIT)
# Example: IMXUSDT -> IMX/USDT:BINANCE
TWELVE_DATA_CRYPTO_EXCHANGE=
# Finnhub
FINNHUB_API_KEY=

# ======================
# AI/LLM CONFIGURATION
# ======================
# AI model configuration for investment recommendations
# Twelve Data
TWELVEDATA_API_KEY=

# OpenAI Configuration (primary)
# Get API key at: https://platform.openai.com/api-keys
OPENAI_API_KEY=your_openai_api_key_here
OPENAI_MODEL=gpt-5-mini
# Alpha Vantage
ALPHAVANTAGE_API_KEY=

# Anthropic Configuration (alternative)
# Get API key at: https://console.anthropic.com/
ANTHROPIC_API_KEY=your_anthropic_api_key_here
ANTHROPIC_MODEL=claude-3-5-sonnet-20241022
# CCXT (if using authenticated endpoints, optional)
BINANCE_API_KEY=
BINANCE_API_SECRET=
BYBIT_API_KEY=
BYBIT_API_SECRET=
24 changes: 4 additions & 20 deletions .github/CODEOWNERS
Original file line number Diff line number Diff line change
@@ -1,20 +1,4 @@
# Global owners
* @LouisLetcher

# Core system
/src/core/ @LouisLetcher

# Strategy algorithms
/src/backtesting_engine/algorithms/ @LouisLetcher

# CI/CD and workflows
/.github/ @LouisLetcher

# Documentation
/docs/ @LouisLetcher

# Configuration
/config/ @LouisLetcher

# Scripts
/scripts/ @LouisLetcher
# See GOVERNANCE.md for details
* @manuelheck
.github/ @manuelheck
src/ @manuelheck
65 changes: 0 additions & 65 deletions .github/CONTRIBUTING.md

This file was deleted.

Loading
Loading