MCPcopy Create free account
hub / github.com/Drakkar-Software/OctoBot / _write_minimal_profile

Function _write_minimal_profile

tests/unit_tests/test_cli.py:21–46  ·  view source on GitHub ↗
(profile_folder)

Source from the content-addressed store, hash-verified

19
20
21def _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

Callers 1

deferred_profile_configFunction · 0.85

Calls 1

joinMethod · 0.45

Tested by

no test coverage detected