def list_symbols(self, fmt: ListSymbolsFormat = ListSymbolsFormat.SYMBOL) -> List[str]: if fmt == ListSymbolsFormat.TBK: req_format = proto.ListSymbolsRequest.Format.TIME_BUCKET_KEY else: req_format = proto.ListSymbolsRequest.Format.SYMBOL resp = self.stub.ListSymbols(proto.ListSymbolsRequest(format=req_format)) if resp is None: return [] return resp.results
def list_symbols(self) -> List[str]: resp = self.stub.ListSymbols(proto.ListSymbolsRequest()) return resp.results