1717with st .spinner ('fetching meta data' ):
1818 coingecko .address_map = coingecko .get_address_map ()
1919
20+
2021def check_whitelist ():
2122 if st .session_state .user_tg_handle in st .secrets .whitelist :
2223 st .session_state .authentification = "verified"
@@ -53,11 +54,12 @@ def authentification_sidebar():
5354 else :
5455 with open (os .path .join (os .sep , os .getcwd (), "config" , 'params.yaml' ), 'r' ) as fp :
5556 st .session_state .parameters = yaml .safe_load (fp )
57+ st .write ('## session parameters' )
58+ st .sidebar .json (st .session_state .parameters )
5659 else :
5760 with open (os .path .join (os .sep , os .getcwd (), "config" , 'params.yaml' ), 'r' ) as fp :
5861 st .session_state .parameters = yaml .safe_load (fp )
59- st .write ('## session parameters' )
60- st .sidebar .json (st .session_state .parameters )
62+
6163
6264def prompt_initialization ():
6365 def reset ():
@@ -138,6 +140,7 @@ def download_grid_button() -> None:
138140 mime = 'text/yaml' ,
139141 )
140142
143+
141144def download_whitelist_template_button (underlyings_candidates : list [str ]) -> None :
142145 # button to download grid template
143146 with open (os .path .join (os .sep , os .getcwd (), "config" , 'whitelist.yaml' ), "r" ) as download_file :
@@ -148,6 +151,7 @@ def download_whitelist_template_button(underlyings_candidates: list[str]) -> Non
148151 mime = 'text/yaml' ,
149152 )
150153
154+
151155def display_single_backtest (backtest : pd .DataFrame ) -> None :
152156 height = 1000
153157 width = 1500
@@ -219,6 +223,7 @@ def display_heatmap(metrics, ind, col, filtering):
219223 except Exception as e :
220224 st .write (str (e ))
221225
226+
222227class MyProgressBar :
223228 '''A progress bar with increment progress (why did i have to do that...)'''
224229 def __init__ (self , length , ** kwargs ):
0 commit comments