mirror of
https://github.com/freqtrade/freqtrade.git
synced 2025-12-03 02:23:05 +00:00
s/trade_thresholds/minimal_roi/
This commit is contained in:
2
main.py
2
main.py
@@ -151,7 +151,7 @@ def handle_trade(trade):
|
||||
currency = trade.pair.split('_')[1]
|
||||
balance = api_wrapper.get_balance(currency)
|
||||
|
||||
for duration, threshold in sorted(conf['trade_thresholds'].items()):
|
||||
for duration, threshold in sorted(conf['minimal_roi'].items()):
|
||||
duration, threshold = float(duration), float(threshold)
|
||||
# Check if time matches and current rate is above threshold
|
||||
time_diff = (datetime.utcnow() - trade.open_date).total_seconds() / 60
|
||||
|
||||
Reference in New Issue
Block a user