Remove stale synthetic-data warning on unsupported pairs
The warning predated the synthetic fallback removal. Now that the engine raises DataUnavailableError for unsupported symbols, the flag was always wrong for XAU/USD and similar pairs. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
+1
-10
@@ -55,7 +55,6 @@ _TF_CONFIRMATIONS = {
|
||||
"D1": [Timeframe.H4, Timeframe.W1],
|
||||
}
|
||||
|
||||
_SUPPORTED_PAIRS = set(MAJOR_PAIRS + CROSS_PAIRS)
|
||||
_GRADE_RANK = {"A+": 0, "A": 1, "B": 2, "C": 3, "D": 4, "F": 5}
|
||||
_EST = ZoneInfo("America/New_York")
|
||||
|
||||
@@ -115,7 +114,6 @@ def _build_combined_signal(
|
||||
results_by_tf: Dict[str, List[SignalReport]],
|
||||
display: str,
|
||||
now_str: str,
|
||||
synthetic: bool = False,
|
||||
) -> str:
|
||||
"""
|
||||
Single message showing all timeframes stacked.
|
||||
@@ -126,12 +124,6 @@ def _build_combined_signal(
|
||||
lines.append(f"🌐 <b>{_h(display)} — Signal Analysis</b>")
|
||||
lines.append(f"🕐 {now_str}")
|
||||
|
||||
if synthetic:
|
||||
lines.append(
|
||||
"⚠️ <b>Note:</b> Not on Twelve Data free tier — "
|
||||
"prices are <b>simulated</b> data."
|
||||
)
|
||||
|
||||
for tf in SCAN_TIMEFRAMES:
|
||||
reports = results_by_tf.get(tf, [])
|
||||
if not reports:
|
||||
@@ -372,7 +364,6 @@ class ForexTelegramBot:
|
||||
raw += "=X"
|
||||
display = SYMBOL_DISPLAY.get(raw, raw.replace("=X", ""))
|
||||
tfs_str = " · ".join(SCAN_TIMEFRAMES)
|
||||
synthetic = raw not in _SUPPORTED_PAIRS
|
||||
|
||||
msg = await update.message.reply_text(
|
||||
f"🔄 Analyzing {_h(display)} across {_h(tfs_str)}…"
|
||||
@@ -386,7 +377,7 @@ class ForexTelegramBot:
|
||||
await msg.edit_text(f"❌ No data returned for {_h(display)}")
|
||||
return
|
||||
|
||||
text = _build_combined_signal(results_by_tf, display, now_str, synthetic)
|
||||
text = _build_combined_signal(results_by_tf, display, now_str)
|
||||
await msg.delete()
|
||||
await self._send_html(update, text)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user