Skip to content

Commit 73ef8a1

Browse files
author
mani
committed
Welcome page: warn if PBCoinData not running or mappings missing
1 parent 19718ab commit 73ef8a1

1 file changed

Lines changed: 10 additions & 0 deletions

File tree

navi/system_login.py

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -256,6 +256,16 @@ def do_init():
256256
# Check if CoinData configured
257257
if not st.session_state.pbcoindata.fetch_api_status():
258258
st.warning('Coin Data API is not configured / Go to Coin Data and configure your API-Key', icon="⚠️")
259+
elif not st.session_state.pbcoindata.is_running():
260+
st.warning('PBCoinData is not running — No exchange symbol data available. Please start PBCoinData on the Services page.', icon="⚠️")
261+
else:
262+
from pathlib import Path
263+
mappings_exist = any(
264+
(Path.cwd() / "data" / "coindata" / ex / "mapping.json").exists()
265+
for ex in ["binance", "bybit", "bitget", "hyperliquid", "okx", "gateio", "bingx", "kucoinfutures"]
266+
)
267+
if not mappings_exist:
268+
st.info('PBCoinData is running but no exchange mapping files have been generated yet. Please wait for the first update cycle.', icon="ℹ️")
259269

260270
# Add a horizontal divider
261271
st.markdown("---")

0 commit comments

Comments
 (0)