public async Task GetHistory() { var request = new AccountHistoryRpcClientRequest { Token = _token }; var result = await _service.GetHistory(request.ToJson()); }
public async Task <OperationResult> GetHistory() { var res = new OperationResult { Operation = "GetHistory", StartDate = DateTime.UtcNow }; var request = new AccountHistoryRpcClientRequest { Token = _token }; var result = await _service.GetHistory(request.ToJson()); res.EndDate = DateTime.UtcNow; res.Result = result; LogInfo($";{res.Duration};GetHistory: Items={result.Length}"); return(res); }