INNER CODE UNIT · Python

_load_or_create_data_settings

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

    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,
            )
            await save_data_settings(data_settings, self.datapath)
        self.data_settings = data_settings

    async def _fetch_coin_information(self) -> dict[str, dict[str, Any]]:
        """Fetch coin information from CoinGecko API."""
        api_requester = ApiRequester()
        response = await api_requester.coingecko(
            "GET",

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…