JW; testing with sandbox mode

This commit is contained in:
Jakub Werner (jakubikan) 2024-03-23 11:26:26 +01:00
parent 2b0b85330e
commit 78d189564f

View File

@ -187,6 +187,11 @@ class Exchange:
self._api_async = self._init_ccxt(
exchange_conf, ccxt_async, ccxt_kwargs=ccxt_async_config)
if exchange_config.get('sandboxMode'):
self._api.set_sandbox_mode(True)
self._api_async.set_sandbox_mode(True)
logger.info('Using ccxt with sandbox mode for paper trading')
logger.info(f'Using Exchange "{self.name}"')
self.required_candle_call_count = 1
if validate: