Run price_to_precision for dry-run orders

This commit is contained in:
Matthias 2022-08-16 08:43:03 +02:00
parent 09ee9089fb
commit a5b438e41e

View File

@ -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)