exchange.fill_leverage_brackets/get_maintenance_ratio_and_amt docstring and type specification
This commit is contained in:
@@ -620,7 +620,9 @@ class FreqtradeBot(LoggingMixin):
|
||||
if self.collateral_type == Collateral.ISOLATED:
|
||||
if self.config['dry_run']:
|
||||
mm_ratio, maintenance_amt = self.exchange.get_maintenance_ratio_and_amt(
|
||||
pair, amount)
|
||||
pair,
|
||||
amount
|
||||
)
|
||||
taker_fee_rate = self.exchange.markets[pair]['taker']
|
||||
isolated_liq = liquidation_price(
|
||||
exchange_name=self.exchange.name,
|
||||
@@ -637,7 +639,7 @@ class FreqtradeBot(LoggingMixin):
|
||||
mm_ratio=mm_ratio,
|
||||
taker_fee_rate=taker_fee_rate
|
||||
|
||||
# Okex
|
||||
# TODO-lev: Okex parameters
|
||||
# liability: Optional[float]=None,
|
||||
# interest: Optional[float]=None,
|
||||
# position_assets: Optional[float]=None, # * Might be same as position
|
||||
|
||||
Reference in New Issue
Block a user