dexbot.strategies.config_parts.staggered_config module

class dexbot.strategies.config_parts.staggered_config.StaggeredConfig

Bases: dexbot.strategies.config_parts.base_config.BaseConfig

classmethod configure(return_base_config=True)

Modes description:

Mountain: - Buy orders same QUOTE - Sell orders same BASE

Neutral: - Buy orders lower_order_base * sqrt(1 + increment) - Sell orders higher_order_quote * sqrt(1 + increment)

Valley: - Buy orders same BASE - Sell orders same QUOTE

Buy slope: - All orders same BASE (profit comes in QUOTE)

Sell slope: - All orders same QUOTE (profit made in BASE)

classmethod configure_details(include_default_tabs=True)

Return a list of ConfigElement objects defining the configuration values for this class.

User interfaces should then generate widgets based on these values, gather data and save back to the config dictionary for the worker.

NOTE: When overriding you almost certainly will want to call the ancestor and then add your config values to the list.

Parameters:include_default_tabs – bool:
Returns:Returns a list of Detail elements