Include pair in dry-run order names

This commit is contained in:
Matthias
2023-09-02 16:37:41 +02:00
parent d68c22b21d
commit 7a4276f6c7

View File

@@ -832,7 +832,7 @@ class Exchange:
rate: float, leverage: float, params: Dict = {},
stop_loss: bool = False) -> Dict[str, Any]:
now = dt_now()
order_id = f'dry_run_{side}_{now.timestamp()}'
order_id = f'dry_run_{side}_{pair}_{now.timestamp()}'
# Rounding here must respect to contract sizes
_amount = self._contracts_to_amount(
pair, self.amount_to_precision(pair, self._amount_to_contracts(pair, amount)))