exchange.create_order removed default for leverage

This commit is contained in:
Sam Germain
2022-02-02 13:15:42 -06:00
parent 09f0e7149f
commit f58b92bb86
5 changed files with 52 additions and 27 deletions

View File

@@ -909,11 +909,10 @@ class Exchange:
side: str,
amount: float,
rate: float,
leverage: float,
reduceOnly: bool = False,
leverage: float = 1.0,
time_in_force: str = 'gtc',
) -> Dict:
# TODO-lev: remove default for leverage
if self._config['dry_run']:
dry_order = self.create_dry_run_order(pair, ordertype, side, amount, rate, leverage)
return dry_order