fix: auto-refresh using st_autorefresh JS timer instead of sleep/rerun

view_live_mt5_eas.py:
- Replace broken sleep+rerun approach with streamlit-autorefresh
  which injects a JS timer — works without user interaction
- Graceful fallback if package not installed, shows install hint
- First page load always pulls fresh data from FTP
- Auto-refresh fires FTP pull when poll interval has elapsed

requirements.txt:
- Added streamlit-autorefresh
This commit is contained in:
unknown
2026-04-20 14:12:45 +10:00
parent a8ff2b729d
commit 1cdca6cfcb
2 changed files with 21 additions and 16 deletions
+2 -1
View File
@@ -4,4 +4,5 @@ pandas
plotly
scipy
openpyxl
beautifulsoup4
beautifulsoup4
streamlit-autorefresh