martin_binance/executor.py
File executor.py
has 2442 lines of code (exceeds 250 allowed). Consider refactoring. Wontfix
Wontfix
"""
Cyclic grid strategy based on martingale
"""
__author__ = "Jerry Fedorenko"
__copyright__ = "Copyright © 2021 Jerry Fedorenko aka VM"
Consider simplifying this complex logical expression. Open
Open
if (self.shift_grid_threshold and self.last_shift_time and self.get_time() -
self.last_shift_time > SHIFT_GRID_DELAY
and ((self.cycle_buy and ticker.last_price >= self.shift_grid_threshold)
or
(not self.cycle_buy and ticker.last_price <= self.shift_grid_threshold))):