implemented binance.get_maintenance_ratio_and_amt

This commit is contained in:
Sam Germain
2022-01-10 07:17:17 -06:00
parent ba5fc21d84
commit 69a6223ca0
7 changed files with 236 additions and 65 deletions

View File

@@ -2003,8 +2003,11 @@ class Exchange:
except ccxt.BaseError as e:
raise OperationalException(e) from e
@retrier
def get_mm_amt_rate(self, pair: str, amount: float):
def get_maintenance_ratio_and_amt(
self,
pair: Optional[str],
nominal_value: Optional[float]
):
'''
:return: The maintenance amount, and maintenance margin rate
'''