Skip to content
Open
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
94 changes: 94 additions & 0 deletions .chainlit
Original file line number Diff line number Diff line change
@@ -0,0 +1,94 @@
[project]
# Whether to enable telemetry (default: true). No personal data is collected.
enable_telemetry = false

# List of environment variables to be provided by each user to use the app.
user_env = []

# Duration (in seconds) during which the session is saved when the connection is lost
session_timeout = 3600

# Enable third parties caching (e.g LangChain cache)
cache = false

[features]
# Show the prompt playground
prompt_playground = false

# Process and display HTML in messages. This can be a security risk (see https://stackoverflow.com/questions/19603097/why-is-it-dangerous-to-render-user-generated-html-or-javascript)
unsafe_allow_html = false

# Process and display mathematical expressions. This can clash with "$" characters in messages.
latex = false

# Automatically tag threads with the current chat profile (if a chat profile is used)
auto_tag_thread = true

# Authorize users to upload files with messages
[features.multi_modal]
enabled = true
accept = ["*/*"]
max_files = 20
max_size_mb = 500

[UI]
# Name of the app and chatbot.
name = "TradingAgents"

# Description of the app and chatbot. This is used for HTML tags.
description = "AI-Powered Trading Analysis and Execution Platform"

# Large size content are by default collapsed for a cleaner ui
default_collapse_content = true

# The default value for the expand messages settings.
default_expand_messages = false

# Hide the chain of thought details from the user in the UI.
hide_cot = false

# Link to your github repo. This will add a github button in the UI's header.
github = "https://github.com/TauricResearch/TradingAgents"

# Specify a CSS file that can be used to customize the user interface.
# The CSS file can be served from the public directory or via an external link.
# custom_css = "/public/test.css"

# Specify a Javascript file that can be used to customize the user interface.
# The Javascript file can be served from the public directory.
# custom_js = "/public/test.js"

# Specify a custom font url.
# custom_font = "https://fonts.googleapis.com/css2?family=Inter:wght@400;500;700&display=swap"

# Specify a custom build directory for the frontend.
# This can be used to customize the frontend code.
# Be careful: If this is a relative path, it should not start with a slash.
# custom_build = "./public/build"

# Override default MUI light theme. (Check theme.ts)
[UI.theme]
#layout = "wide"
#font_family = "Inter, sans-serif"
[UI.theme.light]
#background = "#FAFAFA"
#paper = "#FFFFFF"

[UI.theme.light.primary]
#main = "#F80061"
#dark = "#980039"
#light = "#FFE7EB"

# Override default MUI dark theme. (Check theme.ts)
[UI.theme.dark]
#background = "#0F1117"
#paper = "#1E1E2E"

[UI.theme.dark.primary]
#main = "#F80061"
#dark = "#980039"
#light = "#FFE7EB"


[meta]
generated_by = "1.0.0"
Binary file added .coverage
Binary file not shown.
80 changes: 80 additions & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,80 @@
# Git files
.git
.gitignore
.gitattributes

# Python cache
__pycache__
*.py[cod]
*$py.class
*.so
.Python
.pytest_cache
.mypy_cache

# Virtual environments
venv/
env/
ENV/
.venv

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

# Environment files (use docker-compose env_file instead)
.env
.env.local
.env.*.local

# Data and results (mount as volumes instead)
data/
eval_results/
portfolio_data/
*.json
*.csv
*.h5
*.pkl

# Documentation
*.md
docs/

# Tests
tests/
*.coverage
.coverage
htmlcov/
.tox/
.pytest_cache/
.hypothesis/

# OS
.DS_Store
Thumbs.db

# Logs
*.log
logs/

# Development files
notebooks/
examples/
*.ipynb
scripts/

# Build artifacts
dist/
build/
*.egg-info/
*.egg
.eggs/
__pypackages__/

# Docker files (don't copy into image)
docker-compose*.yml
Dockerfile*
.dockerignore
67 changes: 65 additions & 2 deletions .env.example
Original file line number Diff line number Diff line change
@@ -1,2 +1,65 @@
ALPHA_VANTAGE_API_KEY=alpha_vantage_api_key_placeholder
OPENAI_API_KEY=openai_api_key_placeholder
# TradingAgents Environment Configuration
# Copy this file to .env and fill in your actual values
# NEVER commit .env to version control!

# ============================================================================
# LLM Provider API Keys (Choose one or multiple)
# ============================================================================

# OpenAI (GPT-4, GPT-4o, o1-preview, etc.)
OPENAI_API_KEY=your_openai_api_key_here

# Anthropic Claude (Recommended for deep reasoning!)
# Get your key from: https://console.anthropic.com/
ANTHROPIC_API_KEY=your_anthropic_api_key_here

# Google Gemini (Optional)
# GOOGLE_API_KEY=your_google_api_key_here

# ============================================================================
# Data Provider API Keys
# ============================================================================

# Alpha Vantage (Free tier available)
# Get your key from: https://www.alphavantage.co/support/#api-key
ALPHA_VANTAGE_API_KEY=your_alpha_vantage_api_key_here

# ============================================================================
# Broker API Keys (for live/paper trading)
# ============================================================================

# Alpaca (Free paper trading!)
# Get keys from: https://alpaca.markets/
# ALPACA_API_KEY=your_alpaca_api_key_here
# ALPACA_SECRET_KEY=your_alpaca_secret_key_here
# ALPACA_PAPER_TRADING=true # Set to false for live trading

# Interactive Brokers (Advanced users)
# IB_ACCOUNT=your_ib_account_number
# IB_HOST=127.0.0.1
# IB_PORT=7497 # 7497 for paper, 7496 for live

# ============================================================================
# TradingAgents Configuration
# ============================================================================

# Custom data and results directories (optional)
# TRADINGAGENTS_DATA_DIR=/path/to/your/data
# TRADINGAGENTS_RESULTS_DIR=/path/to/your/results

# Logging level (DEBUG, INFO, WARNING, ERROR, CRITICAL)
# LOG_LEVEL=INFO

# LLM Provider Selection (openai, anthropic, google)
# LLM_PROVIDER=anthropic

# Custom backend URL for OpenAI-compatible APIs (ollama, openrouter, etc.)
# OPENAI_BASE_URL=https://api.openai.com/v1

# ============================================================================
# Web Interface Configuration (optional)
# ============================================================================

# Chainlit settings (for web UI)
# CHAINLIT_AUTH_SECRET=your_secret_key_here
# CHAINLIT_PORT=8000
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -9,3 +9,4 @@ eval_results/
eval_data/
*.egg-info/
.env
portfolio_data/
Loading