def persist(self):
    config_dict = {GENERAL_OPTION_KEY: {}, CRYPTO_CURRENCY_OPTION_KEY: {}}
    for option_key in self.general_options:
        config_dict[GENERAL_OPTION_KEY][option_key] = self.general_options[option_key].get_status()
    for crypto_currency in self.crypto_currency_options:
        config_dict[CRYPTO_CURRENCY_OPTION_KEY][crypto_currency] = {}
        for option_key in self.crypto_currency_options[crypto_currency]:
            config_dict[CRYPTO_CURRENCY_OPTION_KEY][crypto_currency][option_key] = self.crypto_currency_options[crypto_currency][option_key].get_status()
    with open(CONFIG_FILE_PATH, 'w') as config_file:
        json.dump(config_dict, config_file)
def persist(self):
    config_dict = {GENERAL_OPTION_KEY: {}, CRYPTO_CURRENCY_OPTION_KEY: {}}
    for option_key in self.general_options:
        config_dict[GENERAL_OPTION_KEY][option_key] = self.general_options[option_key].get_status()
    for crypto_currency in self.crypto_currency_options:
        config_dict[CRYPTO_CURRENCY_OPTION_KEY][crypto_currency] = {}
        for option_key in self.crypto_currency_options[crypto_currency]:
            config_dict[CRYPTO_CURRENCY_OPTION_KEY][crypto_currency][option_key] = self.crypto_currency_options[crypto_currency][option_key].get_status()
    with open(CONFIG_FILE_PATH, 'w') as config_file:
        json.dump(config_dict, config_file)