f7c244c6b5
- providers: _to_oanda_instrument / _to_tiingo_ticker / _to_td_symbol no longer guess a wire symbol for pairs that are not registered — the registries are the only source, so an unknown symbol raises the provider's DataIntegrityError instead of silently fetching something else. Every scanned symbol is validated against PAIR_INFO at import, so nothing reachable changes. - main / telegram_bot _fmt_price: the sub-$10 five-decimal branch could never fire for gold. - news_engine._parse_pair: BASE/QUOTE only; the Yahoo "=X" fallback was unreachable (its test goes with it). - dashboard_publisher.event_to_dict: drop minutes_until (frozen at publish time, misleading) and is_high_impact — dashboard.js never read either. - static/dashboard.html: unused id="cal-table". Tried and reverted: trimming the LogRow fields nothing in analyze_signal_log reads — the tests read them to verify the loader round-trips those DB columns, so they stay. Suite: 460 passed, 0 failed. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_0156YhogLytzj9P2iH1skGbL
150 lines
6.7 KiB
HTML
150 lines
6.7 KiB
HTML
<!DOCTYPE html>
|
|
<html lang="en" data-bs-theme="dark">
|
|
<head>
|
|
<meta charset="utf-8">
|
|
<meta name="viewport" content="width=device-width, initial-scale=1">
|
|
<title>Gold Desk — XAU/USD</title>
|
|
<link rel="icon" href="data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Ccircle cx='8' cy='8' r='7' fill='%23f5b301'/%3E%3C/svg%3E">
|
|
<link rel="preconnect" href="https://fonts.googleapis.com">
|
|
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
|
|
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.3/dist/css/bootstrap.min.css" crossorigin="anonymous">
|
|
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap-icons@1.11.3/font/bootstrap-icons.css" crossorigin="anonymous">
|
|
<link rel="stylesheet" href="https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=JetBrains+Mono:wght@400;500;700&display=swap">
|
|
<link rel="stylesheet" href="dashboard.css">
|
|
</head>
|
|
<body>
|
|
|
|
<div class="container-fluid container-xl py-4">
|
|
|
|
<header class="card mb-3" id="hero">
|
|
<div class="card-body d-flex align-items-center flex-wrap gap-3">
|
|
<div>
|
|
<h1 class="xau-symbol mb-1"><i class="bi bi-coin me-1"></i>XAU/USD</h1>
|
|
<div class="display-5 fw-semibold xau-price" id="hero-price">—</div>
|
|
</div>
|
|
<div class="d-flex flex-wrap gap-2" id="hero-rail" aria-label="Select timeframe"></div>
|
|
<div class="ms-auto text-end">
|
|
<div id="hero-status" role="status"><span class="live-dot"></span>…</div>
|
|
<div class="small text-secondary"><i class="bi bi-hourglass-split me-1"></i>M5 close in <span class="num" id="hero-cd">--:--</span></div>
|
|
<div class="small text-secondary" id="hero-updated">updated —</div>
|
|
</div>
|
|
</div>
|
|
</header>
|
|
|
|
<div class="alert alert-warning d-none" id="banner-closed" role="alert">
|
|
<i class="bi bi-moon-fill me-2"></i>Market closed (weekend) — showing Friday's last state. Calendar and news stay live.
|
|
</div>
|
|
<div class="alert alert-danger d-none" id="banner-fail" role="alert"></div>
|
|
<div class="visually-hidden" id="dashboard-live" aria-live="polite"></div>
|
|
|
|
<main>
|
|
<section class="card mb-4 d-none" id="context" aria-label="Market context">
|
|
<div class="card-body d-flex flex-wrap gap-3 align-items-start">
|
|
<div class="flex-grow-1" id="ctx-blurb"><strong>Market context</strong></div>
|
|
<div class="d-flex flex-wrap gap-2" id="ctx-chips"></div>
|
|
</div>
|
|
</section>
|
|
|
|
<section class="mb-4" aria-labelledby="workspace-heading">
|
|
<h2 class="text-uppercase text-secondary small fw-bold mb-3 d-flex align-items-center gap-2" id="workspace-heading">
|
|
<i class="bi bi-crosshair text-primary"></i>
|
|
Signal workspace
|
|
<span class="fw-normal text-body-secondary" style="text-transform:none">— select a timeframe</span>
|
|
</h2>
|
|
<div id="tf-grid"></div>
|
|
</section>
|
|
|
|
<section aria-labelledby="fundamentals-heading">
|
|
<h2 class="text-uppercase text-secondary small fw-bold mb-3 mt-4 d-flex align-items-center gap-2" id="fundamentals-heading">
|
|
<i class="bi bi-globe2 text-primary"></i>Fundamentals
|
|
</h2>
|
|
<div class="row g-3">
|
|
<div class="col-lg-8">
|
|
<div class="card h-100">
|
|
<div class="card-body">
|
|
<div class="d-flex align-items-center gap-3 mb-3 flex-wrap">
|
|
<h3 class="h5 card-title mb-0"><i class="bi bi-calendar-event me-2 text-primary"></i>Economic calendar</h3>
|
|
<span class="text-secondary small" id="calendar-note">times local · USD events</span>
|
|
<div class="form-check form-switch ms-auto">
|
|
<input class="form-check-input" type="checkbox" id="hi-only">
|
|
<label class="form-check-label small" for="hi-only">high impact only</label>
|
|
</div>
|
|
</div>
|
|
<div class="table-responsive">
|
|
<table class="table table-sm">
|
|
<thead>
|
|
<tr>
|
|
<th>Time</th>
|
|
<th>Cur</th>
|
|
<th>Impact</th>
|
|
<th>Event</th>
|
|
<th class="text-end">Fcst</th>
|
|
<th class="text-end">Prev</th>
|
|
<th class="text-end">Actual</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody id="cal-body"><tr><td colspan="7" class="text-secondary text-center py-3">Loading calendar…</td></tr></tbody>
|
|
</table>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div class="col-lg-4">
|
|
<div class="card h-100">
|
|
<div class="card-body">
|
|
<div class="d-flex align-items-center gap-3 mb-3 flex-wrap">
|
|
<h3 class="h5 card-title mb-0"><i class="bi bi-newspaper me-2 text-primary"></i>Newswire</h3>
|
|
<span class="text-secondary small" id="wire-note"></span>
|
|
</div>
|
|
<div id="wire-total" class="d-none"></div>
|
|
<div id="wire"></div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</section>
|
|
</main>
|
|
|
|
<footer class="mt-4 pt-3 border-top text-secondary small">
|
|
<i class="bi bi-info-circle me-1"></i>
|
|
Signals are generated on closed candles only and refresh at candle boundaries
|
|
(M5/M15/H1/H4). Not financial advice — educational and research use only.
|
|
</footer>
|
|
|
|
</div>
|
|
|
|
<div class="modal fade" id="tf-detail" tabindex="-1" aria-labelledby="detail-title" aria-hidden="true">
|
|
<div class="modal-dialog modal-xl modal-dialog-scrollable">
|
|
<div class="modal-content">
|
|
<div class="modal-header">
|
|
<div>
|
|
<h5 class="modal-title mb-0" id="detail-title">—</h5>
|
|
<div class="small text-secondary">
|
|
<span class="num" id="detail-price">—</span>
|
|
<span id="detail-sub"></span>
|
|
</div>
|
|
</div>
|
|
<button id="detail-close" type="button" class="btn-close" aria-label="Close detail view"></button>
|
|
</div>
|
|
<div class="modal-body" id="detail-body"></div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="modal fade" id="news-detail" tabindex="-1" aria-labelledby="nd-title" aria-hidden="true">
|
|
<div class="modal-dialog modal-lg modal-dialog-scrollable">
|
|
<div class="modal-content">
|
|
<div class="modal-header">
|
|
<h5 class="modal-title" id="nd-title">News detail</h5>
|
|
<button id="nd-close" type="button" class="btn-close" aria-label="Close news detail"></button>
|
|
</div>
|
|
<div class="modal-body" id="nd-body"></div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.3/dist/js/bootstrap.bundle.min.js" crossorigin="anonymous"></script>
|
|
<script src="dashboard.js"></script>
|
|
</body>
|
|
</html>
|