public async Task <OperationResult> GetAccountHistory() { try { var res = new OperationResult { Operation = "GetAccountHistory", StartDate = DateTime.UtcNow }; var request = new AccountHistoryRpcClientRequest { Token = _token }; var result = await _service.GetAccountHistory(request.ToJson()); res.EndDate = DateTime.UtcNow; res.Result = result; LogInfo($";{res.Duration};GetAccountHistory: Accounts={result.Account.Length}, OpenPositions={result.OpenPositions.Length}, PositionsHistory={result.PositionsHistory.Length}"); return(res); } catch (Exception ex) { LogError(ex); return(null); } }
public async Task GetAccountHistory() { var request = new AccountHistoryRpcClientRequest { Token = _token }; var result = await _service.GetAccountHistory(request.ToJson()); }