-from ccxt import ExchangeError, NotSupported, RequestTimeout, InvalidNonce
+from ccxt import AuthenticationError, ExchangeError, NotSupported, RequestTimeout, InvalidNonce
import ccxt_wrapper as ccxt
import time
import dbs
def process(self, actions, before=False, after=False):
try:
+ self.ccxt.check_required_credentials()
for action in actions:
if bool(before) is bool(after):
self.processor.process(action, steps="all")
self.processor.process(action, steps="before")
elif after:
self.processor.process(action, steps="after")
+ except AuthenticationError:
+ self.report.log_error("market_authentication", message="Impossible to authenticate to market")
except Exception as e:
import traceback
self.report.log_error("market_process", exception=e, message=traceback.format_exc())