Convert to real amount before placing order
to keep the correct amount in the database
This commit is contained in:
parent
c1c018d8fe
commit
3721736aaf
@ -523,7 +523,7 @@ class FreqtradeBot:
|
|||||||
time_in_force=time_in_force):
|
time_in_force=time_in_force):
|
||||||
logger.info(f"User requested abortion of buying {pair}")
|
logger.info(f"User requested abortion of buying {pair}")
|
||||||
return False
|
return False
|
||||||
|
amount = self.exchange.amount_to_precision(pair, amount)
|
||||||
order = self.exchange.buy(pair=pair, ordertype=order_type,
|
order = self.exchange.buy(pair=pair, ordertype=order_type,
|
||||||
amount=amount, rate=buy_limit_requested,
|
amount=amount, rate=buy_limit_requested,
|
||||||
time_in_force=time_in_force)
|
time_in_force=time_in_force)
|
||||||
|
Loading…
Reference in New Issue
Block a user