private void OnClientResponse(ClientResponse response) { SendOutMessage(new PortfolioMessage { PortfolioName = response.Id, Currency = TransaqHelper.ToCurrency(response.Currency), }); if (response.MlIntraDay != null) { SendOutMessage( this .CreatePortfolioChangeMessage(response.Id) .Add(PositionChangeTypes.Leverage, response.MlIntraDay.Value)); } //if (MicexRegisters) // SendCommand(new RequestPortfolioTPlusMessage {Client = response.Id}); }
private void OnClientResponse(ClientResponse response) { if (response.Remove) { return; } SendOutMessage(new PortfolioMessage { PortfolioName = response.Id, Currency = TransaqHelper.ToCurrency(response.Currency), }); if (!response.Union.IsEmpty()) { SendOutMessage(new PortfolioMessage { PortfolioName = response.Union }); } if (!response.FortsAcc.IsEmpty()) { SendOutMessage(new PortfolioMessage { PortfolioName = response.FortsAcc }); } //if (response.MlIntraDay != null) //{ // SendOutMessage( // this // .CreatePortfolioChangeMessage(response.Id) // .Add(PositionChangeTypes.Leverage, response.MlIntraDay.Value)); //} //if (MicexRegisters) // SendCommand(new RequestPortfolioTPlusMessage {Client = response.Id}); }