removed assert
Co-Authored-By: மனோஜ்குமார் பழனிச்சாமி <smartmanoj42857@gmail.com>
This commit is contained in:
parent
9a0860c9a1
commit
6eb2e51bfc
@ -1270,10 +1270,9 @@ class FreqtradeBot(LoggingMixin):
|
|||||||
# Use cached rates here - it was updated seconds ago.
|
# Use cached rates here - it was updated seconds ago.
|
||||||
current_rate = self.exchange.get_rate(
|
current_rate = self.exchange.get_rate(
|
||||||
trade.pair, refresh=False, side="sell") if not fill else None
|
trade.pair, refresh=False, side="sell") if not fill else None
|
||||||
if sub_trade:
|
|
||||||
|
|
||||||
# for mypy only; order will always be passed during sub trade
|
# second condtion is for mypy only; order will always be passed during sub trade
|
||||||
assert order is not None
|
if sub_trade and order is not None:
|
||||||
amount = order.safe_filled
|
amount = order.safe_filled
|
||||||
profit_rate = order.safe_price
|
profit_rate = order.safe_price
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user