freqtradebot.leverage_prep minor fixes

This commit is contained in:
Sam Germain
2022-01-15 10:23:20 -06:00
parent 1f1ac8ce9d
commit e4b37c6462
2 changed files with 18 additions and 18 deletions

View File

@@ -633,8 +633,8 @@ class FreqtradeBot(LoggingMixin):
collateral=Collateral.ISOLATED,
mm_ex_1=0.0,
upnl_ex_1=0.0,
position=amount * open_rate,
wallet_balance=amount/leverage, # TODO: Update for cross
position=amount,
wallet_balance=(amount * open_rate)/leverage, # TODO: Update for cross
maintenance_amt=maintenance_amt,
mm_ratio=mm_ratio,
taker_fee_rate=taker_fee_rate