#if used without argument, will log info for all exchanges elif l[0]=='loginfo': if len(l)==1: u.logInfoExchanges(exchanges,loggerExchangeInfo) elif len(l)==2: exch = u.getExchange(exchanges,l[1]) u.logInfo(exch,loggerExchangeInfo) else: print('loginfo correct usage: loginfo [%exchange_name%]') #display and log informations about current arbitrage opportunities if any #will be logged into 'exchange_arbitrage_yyyy-mm-dddd.log' file #can be called with 'details' as argument -> verbose mode elif l[0]=='logarb': if len(l)==1: arb.log_arbitrage(exchanges,pairs_filter,loggerArbitrage) elif l[1]=='details': arb.log_arbitrage(exchanges,pairs_filter,loggerArbitrage,details=True) else: print('logarb correct usage: logarb [details]') elif s=='': pass else: print('command not recognized') except Exception as e: print('Error in shell: ' + str(e)) pass