Fix unbounderror

closes #6169
This commit is contained in:
Matthias 2022-01-06 08:48:30 +01:00
parent a9a6cf13f8
commit 33d95d245e

View File

@ -656,7 +656,8 @@ class Exchange:
max_slippage_val = rate * ((1 + slippage) if side == 'buy' else (1 - slippage))
remaining_amount = amount
filled_amount = 0
filled_amount = 0.0
book_entry_price = 0.0
for book_entry in ob[ob_type]:
book_entry_price = book_entry[0]
book_entry_coin_volume = book_entry[1]