Example #1
0
 async def get_dict_formatted_report(self):
     reference_market = trading_api.get_reference_market(self.backtesting_config)
     try:
         trading_mode = trading_api.get_activated_trading_mode(self.tentacles_setup_config).get_name()
     except errors.ConfigTradingError as e:
         self.logger.error(e)
         trading_mode = "Error when reading trading mode"
     report = self._get_exchanges_report(reference_market, trading_mode)
     return report
Example #2
0
def get_config_activated_trading_mode():
    return trading_api.get_activated_trading_mode(
        interfaces_util.get_bot_api().get_edited_tentacles_config())