/// <summary> /// Gets the symbols async /// </summary> /// <returns>Symbol summaries</returns> public async Task <CallResult <IEnumerable <HitBTCSymbol> > > GetSymbolsAsync() { var req = new GetSymbolsRequest(NextId()); var result = await Query <HitBTCSocketResponse <IEnumerable <HitBTCSymbol> > >(req, false).ConfigureAwait(false); return(new CallResult <IEnumerable <HitBTCSymbol> >(result.Data?.Result, result.Error)); }
public async Task <GrpcResponseWithData <GrpcList <string> > > GetSymbolsAsync(GetSymbolsRequest request) { var data = await _orderBookManager.GetSymbols(request.Source); return(GrpcResponseWithData <GrpcList <string> > .Create(GrpcList <string> .Create(data))); }