Skip to main content
CryptoView Pro uses environment variables to manage all configuration settings. This guide covers all available options and their defaults.

Environment Setup

All configuration is managed through a .env file in your project root. Copy the example below and customize it for your needs.
.env
# API Configuration
BINANCE_API_KEY=your_binance_api_key_here
BINANCE_API_SECRET=your_binance_api_secret_here

# Default Trading Pair
DEFAULT_CRYPTO=BTC/USDT
DEFAULT_TIMEFRAME=1h

# Forecast Settings
FORECAST_HOURS=168
AUTO_REFRESH_SECONDS=30

# Telegram Notifications
TELEGRAM_BOT_TOKEN=your_telegram_bot_token
TELEGRAM_CHAT_ID=your_telegram_chat_id

Core Configuration

API Keys

Configure exchange API credentials to enable data collection:
VariableTypeDefaultDescription
BINANCE_API_KEYstring''Your Binance API key for authenticated requests
BINANCE_API_SECRETstring''Your Binance API secret
API keys are optional for public data access. They’re only required for private account operations.

Default Trading Settings

VariableTypeDefaultDescription
DEFAULT_CRYPTOstring'BTC/USDT'Default cryptocurrency pair to display on launch
DEFAULT_TIMEFRAMEstring'1h'Default chart timeframe

Available Cryptocurrencies

The following trading pairs are supported by default (config/settings.py:12-16):
  • BTC/USDT, ETH/USDT, BNB/USDT, SOL/USDT
  • ADA/USDT, XRP/USDT, DOGE/USDT, DOT/USDT
  • MATIC/USDT, AVAX/USDT, LINK/USDT, UNI/USDT

Available Timeframes

Supported chart intervals (config/settings.py:18-25):
  • 1m - 1 minute
  • 5m - 5 minutes
  • 15m - 15 minutes
  • 1h - 1 hour (default)
  • 4h - 4 hours
  • 1d - 1 day

Forecast Configuration

Basic Settings

VariableTypeDefaultDescription
FORECAST_HOURSint168Number of hours to predict (default: 7 days)
AUTO_REFRESH_SECONDSint30Auto-refresh interval for live data

Internal Settings

These are configured in code (config/settings.py:59-61):
  • CACHE_TTL - Cache time-to-live: 60 seconds
  • DATA_LIMIT - Maximum data points: 2000
  • MIN_DATA_POINTS - Minimum required: 500

Machine Learning Models

Model hyperparameters are pre-configured for optimal performance (config/settings.py:31-54):

Prophet Model

'prophet': {
    'changepoint_prior_scale': 0.5,
    'seasonality_prior_scale': 10,
    'seasonality_mode': 'multiplicative',
    'daily_seasonality': True,
    'weekly_seasonality': True,
    'yearly_seasonality': False
}

XGBoost Model

'xgboost': {
    'n_estimators': 200,
    'learning_rate': 0.07,
    'max_depth': 6,
    'subsample': 0.8,
    'colsample_bytree': 0.8
}
These parameters are fine-tuned for cryptocurrency prediction. Modify them in config/settings.py if you need custom behavior.

Technical Indicators

Technical analysis indicators configuration (config/settings.py:64-72):
INDICATORS_CONFIG = {
    'rsi_period': 14,          # RSI calculation period
    'macd_fast': 12,           # MACD fast period
    'macd_slow': 26,           # MACD slow period
    'macd_signal': 9,          # MACD signal line
    'bb_period': 20,           # Bollinger Bands period
    'bb_std': 2,               # Bollinger Bands std deviation
    'ema_periods': [9, 21, 50, 200]  # EMA periods
}

Alert Thresholds

Configure when Telegram alerts are triggered (config/settings.py:78-83):
ALERT_THRESHOLDS = {
    'price_change_pct': 5.0,    # Alert on 5% price change
    'rsi_overbought': 70,        # RSI overbought level
    'rsi_oversold': 30,          # RSI oversold level
    'volume_spike': 2.0          # 2x average volume spike
}

UI Customization

Color scheme for the application interface (config/settings.py:86-94):
COLORS = {
    'background': '#0e1117',
    'text': '#fafafa',
    'accent': '#00d9ff',
    'success': '#00ff88',
    'warning': '#ffaa00',
    'danger': '#ff4444',
    'forecast': '#ffd700'
}
Custom CSS styling is applied through CUSTOM_CSS variable for metric cards, prediction boxes, and tab styling.

Next Steps

Exchange Setup

Configure Binance and Kraken API access

Telegram Alerts

Set up automated notifications

Build docs developers (and LLMs) love