Run price_to_precision for dry-run orders
This commit is contained in:
parent
1ac81aa316
commit
a1e4fbf313
@ -1019,7 +1019,8 @@ class Exchange:
|
|||||||
time_in_force: str = 'gtc',
|
time_in_force: str = 'gtc',
|
||||||
) -> Dict:
|
) -> Dict:
|
||||||
if self._config['dry_run']:
|
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
|
return dry_order
|
||||||
|
|
||||||
params = self._get_params(side, ordertype, leverage, reduceOnly, time_in_force)
|
params = self._get_params(side, ordertype, leverage, reduceOnly, time_in_force)
|
||||||
|
Loading…
Reference in New Issue
Block a user