def service_table(format='<STR_LIT>', authenticated=False):
if authenticated:<EOL><INDENT>all_services = ExchangeUniverse.get_authenticated_services()<EOL><DEDENT>else:<EOL><INDENT>all_services = ALL_SERVICES<EOL><DEDENT>if format == '<STR_LIT:html>':<EOL><INDENT>linkify = lambda x: "<STR_LIT>".format(x)<EOL><DEDENT>else:<EOL><INDENT>linkify = lambda x: x<EOL><DEDENT>ret = []<EOL>for service in sorted(all_services, key=lambda x: x.service_id):<EOL><INDENT>ret.append([<EOL>service.service_id,<EOL>service.__name__, linkify(service.api_homepage.format(<EOL>domain=service.domain, protocol=service.protocol<EOL>)),<EOL>"<STR_LIT:U+002CU+0020>".join(service.supported_cryptos or [])<EOL>])<EOL><DEDENT>return tabulate(ret, headers=['<STR_LIT>', '<STR_LIT:Name>', '<STR_LIT>', '<STR_LIT>'], tablefmt=format)<EOL>
Returns a string depicting all services currently installed.