Beispiel #1
0
 async def validate_required_connections(self) -> Dict[str, str]:
     invalid_conns = {}
     if self.strategy_name == "celo_arb":
         err_msg = await self.validate_n_connect_celo(True)
         if err_msg is not None:
             invalid_conns["celo"] = err_msg
     if not global_config_map.get("paper_trade_enabled").value:
         await self.update_all_secure_configs()
         connections = await UserBalances.instance().update_exchanges(exchanges=required_exchanges)
         invalid_conns.update({ex: err_msg for ex, err_msg in connections.items()
                               if ex in required_exchanges and err_msg is not None})
         if ethereum_wallet_required():
             err_msg = UserBalances.validate_ethereum_wallet()
             if err_msg is not None:
                 invalid_conns["ethereum"] = err_msg
     return invalid_conns
def using_wallet() -> bool:
    return paper_trade_disabled() and settings.ethereum_wallet_required()