INNER CODE UNIT · Python

_load_or_create_datapath

cunarist/solie · package/solie/window/main.py:207

    async def _load_or_create_datapath(self) -> None:
        """Load existing datapath or prompt user to create one."""
        datapath = await read_datapath()
        if not datapath:
            datapath = await overlay(DatapathInput())
            await save_datapath(datapath)
        self.datapath = datapath

    async def _load_or_create_data_settings(self) -> None:
        """Load existing data settings or prompt user to create them."""
        data_settings = await read_data_settings(self.datapath)
        if not data_settings:
            asset_token = await overlay(TokenSelection())
            target_symbols = await overlay(CoinSelection(asset_token))
            data_settings = DataSettings(
                asset_token=asset_token,
                target_symbols=target_symbols,
            )

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…