exchange.fill_leverage_brackets/get_maintenance_ratio_and_amt docstring and type specification

This commit is contained in:
Sam Germain
2022-01-14 06:11:17 -06:00
parent b4a0611afc
commit bb2b2211d0
8 changed files with 57 additions and 31 deletions

View File

@@ -90,7 +90,7 @@ class Exchange:
self._api: ccxt.Exchange = None
self._api_async: ccxt_async.Exchange = None
self._markets: Dict = {}
self._leverage_brackets: Dict = {}
self._leverage_brackets: Dict[str, List[List[float]]] = {}
self.loop = asyncio.new_event_loop()
asyncio.set_event_loop(self.loop)
@@ -2006,12 +2006,12 @@ class Exchange:
self,
pair: str,
nominal_value: Optional[float] = 0.0,
):
) -> Tuple[float, Optional[float]]:
"""
:return: The maintenance amount, and maintenance margin rate
:return: The maintenance margin ratio and maintenance amount
"""
# TODO-lev: return the real amounts
return 0, 0.4
return (0, 0.4)
def is_exchange_known_ccxt(exchange_name: str, ccxt_module: CcxtModuleType = None) -> bool: