Move stop_duration to parent class

avoids reimplementation and enhances standardization
This commit is contained in:
Matthias
2020-11-27 10:32:23 +01:00
parent 12e84bda1e
commit 4351a26b4c
5 changed files with 5 additions and 4 deletions

View File

@@ -200,6 +200,9 @@ For that reason, they must implement the following methods:
The `until` portion should be calculated using the provided `calculate_lock_end()` method.
All Protections should use `"stop_duration"` to define how long a a pair (or all pairs) should be locked.
The content of this is made available as `self._stop_duration` to the each Protection.
#### Global vs. local stops
Protections can have 2 different ways to stop trading for a limited :