(profile_folder)
| 19 | |
| 20 | |
| 21 | def _write_minimal_profile(profile_folder): |
| 22 | profile_file = { |
| 23 | commons_constants.CONFIG_PROFILE: { |
| 24 | commons_constants.CONFIG_ID: commons_constants.DEFAULT_PROFILE, |
| 25 | commons_constants.CONFIG_NAME: commons_constants.DEFAULT_PROFILE, |
| 26 | }, |
| 27 | commons_constants.PROFILE_CONFIG: { |
| 28 | commons_constants.CONFIG_CRYPTO_CURRENCIES: {}, |
| 29 | commons_constants.CONFIG_EXCHANGES: {}, |
| 30 | commons_constants.CONFIG_TRADER: {commons_constants.CONFIG_ENABLED_OPTION: True}, |
| 31 | commons_constants.CONFIG_SIMULATOR: { |
| 32 | commons_constants.CONFIG_ENABLED_OPTION: False, |
| 33 | commons_constants.CONFIG_STARTING_PORTFOLIO: {}, |
| 34 | commons_constants.CONFIG_SIMULATOR_FEES: {}, |
| 35 | }, |
| 36 | commons_constants.CONFIG_TRADING: { |
| 37 | commons_constants.CONFIG_TRADER_REFERENCE_MARKET: commons_constants.DEFAULT_REFERENCE_MARKET, |
| 38 | commons_constants.CONFIG_TRADER_RISK: 0.5, |
| 39 | }, |
| 40 | commons_constants.CONFIG_DISTRIBUTION: commons_constants.DEFAULT_DISTRIBUTION, |
| 41 | }, |
| 42 | } |
| 43 | json_util.safe_dump( |
| 44 | profile_file, |
| 45 | os.path.join(profile_folder, commons_constants.PROFILE_CONFIG_FILE), |
| 46 | ) |
| 47 | |
| 48 | |
| 49 | @pytest.fixture |
no test coverage detected