dexbot.helper module¶
-
dexbot.helper.
find_external_strategies
()¶ Use setuptools introspection to find third-party strategies the user may have installed. Packages that provide a strategy should export a setuptools “entry point” (see setuptools docs) with group “dexbot.strategy”, “name” is the display name of the strategy. Only set the module not any attribute (because it would always be a class called “Strategy”) If you want a handwritten graphical UI, define “Ui_Form” and “StrategyController” in the same module.
yields a 2-tuple: description, module name
-
dexbot.helper.
get_user_data_directory
()¶ Returns the user data directory path which contains history, sql and logs.
-
dexbot.helper.
initialize_data_folders
()¶ Creates folders for strategies to store files.
-
dexbot.helper.
initialize_orders_log
()¶ Creates .csv log file, adds the headers first time only.
-
dexbot.helper.
mkdir
(d)¶
-
dexbot.helper.
remove
(path)¶ Removes a file or a directory even if they don’t exist.
-
dexbot.helper.
truncate
(number, decimals)¶ Change the decimal point of a number without rounding.
Parameters: - | number (float) – A float number to be cut down
- | decimals (int) – Number of decimals to be left to the float number
Returns: Price with specified precision