INNER CODE UNIT · Python
_tick_monitor_rest_ts
aaryansinha16/AI-trader · backend/app.py:235
_tick_monitor_rest_ts: dict = {} # symbol -> last REST fallback timestamp
predictor = Predictor()
strategy_predictor = StrategyPredictor()
regime_detector = RegimeDetector()
HTML_TEMPLATE = """
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>AI Trader - Paper Trading</title>
<style>
* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif; background: #0f1117; color: #e1e4e8; }
.container { max-width: 1200px; margin: 0 auto; padding: 20px; }
h1 { color: #58a6ff; margin-bottom: 5px; font-size: 24px; }