Run price_to_precision for dry-run orders
This commit is contained in:
parent
09ee9089fb
commit
a5b438e41e
@ -1019,7 +1019,8 @@ class Exchange:
|
||||
time_in_force: str = 'gtc',
|
||||
) -> Dict:
|
||||
if self._config['dry_run']:
|
||||
dry_order = self.create_dry_run_order(pair, ordertype, side, amount, rate, leverage)
|
||||
dry_order = self.create_dry_run_order(
|
||||
pair, ordertype, side, amount, self.price_to_precision(pair, rate), leverage)
|
||||
return dry_order
|
||||
|
||||
params = self._get_params(side, ordertype, leverage, reduceOnly, time_in_force)
|
||||
|
Loading…
Reference in New Issue
Block a user