Showing 16 of 17 total issues
File strategy_base.py
has 1608 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
"""
martin-binance base class and methods definitions
"""
__author__ = "Jerry Fedorenko"
__copyright__ = "Copyright © 2021 Jerry Fedorenko aka VM"
File lib.py
has 403 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
"""
martin-binance classes and methods definitions
"""
__author__ = "Jerry Fedorenko"
__copyright__ = "Copyright © 2021 Jerry Fedorenko aka VM"
File exchange_simulator.py
has 313 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Simple exchange simulator for backtest purpose
"""
File funds_rate_exporter.py
has 262 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
####################################################################
# Config for prometheus_client
# See README.md for detail
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))):
Avoid too many return
statements within this function. Open
Open
return '4h'
Avoid too many return
statements within this function. Open
Open
return '1h'
Avoid too many return
statements within this function. Open
Open
return '12h'
Avoid too many return
statements within this function. Open
Open
return '6h'
Avoid too many return
statements within this function. Open
Open
return '1d'
Avoid too many return
statements within this function. Open
Open
return '30m'
Avoid too many return
statements within this function. Open
Open
return '3d'
Avoid too many return
statements within this function. Open
Open
return '2h'
Avoid too many return
statements within this function. Open
Open
return '1w' if 10080 <= m < 44640 else '1m'
Avoid too many return
statements within this function. Open
Open
return '8h'
Standard pseudo-random generators are not suitable for security/cryptographic purposes. Open
Open
await asyncio.sleep(random.randint(5, 30))
- Exclude checks