From 254c1469e63fa055ac02320a129fcc59906a7651 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nicol=C3=A1s=20S=C3=A1nchez?= Date: Sun, 1 Dec 2024 11:46:09 -0300 Subject: [PATCH] generated_at --- changelog.txt | 3 +++ main.py | 3 ++- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/changelog.txt b/changelog.txt index abedde5..8222e8b 100755 --- a/changelog.txt +++ b/changelog.txt @@ -1,3 +1,6 @@ +2024.12.01: +. Added "generated_at" entry: When generating a config file, the generated timestamp is saved in the config file. + 2024.11.30: . Added "forced_restart_if_retries_exhasted" option to the config file of a trader. If set to true, the trader will always restart if the first order of the deal does not fill. Default behavior is one restart only. It is recommended to set this to false, unless there is a specific combination of pair/exchange with too high diff --git a/main.py b/main.py index 6a283c8..3f85f86 100644 --- a/main.py +++ b/main.py @@ -180,7 +180,8 @@ def generate_config_file(base: str, quote: str) -> dict: "attempt_restart": True, "dynamic_so_deviance": True, "dsd_range": 1, - "slippage_default_threshold": .02 + "slippage_default_threshold": .02, + "generated_at": int(time.time()), }