DogsTailFarmer/martin-binance

View on GitHub
martin_binance/executor.py

Summary

Maintainability
A
1 hr
Test Coverage

File executor.py has 2442 lines of code (exceeds 250 allowed). Consider refactoring.
Wontfix

"""
Cyclic grid strategy based on martingale
"""
__author__ = "Jerry Fedorenko"
__copyright__ = "Copyright © 2021 Jerry Fedorenko aka VM"
Severity: Major
Found in martin_binance/executor.py - About 6 days to fix

    Consider simplifying this complex logical expression.
    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))):
    Severity: Major
    Found in martin_binance/executor.py - About 1 hr to fix

      There are no issues that match your filters.

      Category
      Status