Timeframe
N/A
Direction
Long Only
Stoploss
N/A
Trailing Stop
No
ROI
N/A
Interface Version
N/A
Startup Candles
N/A
Indicators
0
freqtrade/freqtrade-strategies
Strategy 003 author@: Gerald Lonlas github@: https://github.com/freqtrade/freqtrade-strategies
# Preventing exchange overload from simultaneous bot requests.
# A proxy is not significantly effective in managing simultaneous requests
# for the same currency pair from various bots.
import time
import numpy as np
class SampleStrategy(IStrategy):
def bot_loop_start(self, current_time: datetime, **kwargs) -> None:
if self.dp.runmode.value in ('live', 'dry_run'):
time.sleep(np.random.randint(0, 60))