Add GOLD/SILVER ratio indicator to dashboard
Add gold_silver_ratio indicator (xyz:GOLD / xyz:SILVER) with fallback reference of 61.59, mirroring the existing WTI/BRENT ratio setup. Also register xyz:GOLD and xyz:SILVER in WATCHED_COINS and data_fetcher defaults so the candle data is fetched for the new indicator.
This commit is contained in:
@ -23,11 +23,13 @@ from dashboard import DashboardRenderer
|
||||
from rich.live import Live
|
||||
|
||||
# --- Configuration ---
|
||||
WATCHED_COINS = ["BTC", "ETH", "SOL", "BNB", "HYPE", "SUI", "xyz:BRENTOIL", "xyz:CL"]
|
||||
WATCHED_COINS = ["BTC", "ETH", "SOL", "BNB", "HYPE", "SUI", "xyz:BRENTOIL", "xyz:CL", "xyz:GOLD", "xyz:SILVER"]
|
||||
# Display name mapping for dashboard (internal symbol -> display name)
|
||||
COIN_DISPLAY_NAMES = {
|
||||
"xyz:BRENTOIL": "BRENT",
|
||||
"xyz:CL": "WTI"
|
||||
"xyz:CL": "WTI",
|
||||
"xyz:GOLD": "GOLD",
|
||||
"xyz:SILVER": "SILVER"
|
||||
}
|
||||
LIVE_CANDLE_FETCHER_SCRIPT = "live_candle_fetcher.py"
|
||||
RESAMPLER_SCRIPT = "resampler.py"
|
||||
|
||||
Reference in New Issue
Block a user