Exemplo n.º 1
0
        private void ParseSecuritiesHolding(string[] lineFields, ref Portfolio portfolio)
        {
            string symbol = lineFields[0];
            decimal lastPrice = Convert.ToDecimal(lineFields[1]);
            decimal quantity = Convert.ToDecimal(lineFields[5]);

            portfolio.AddHolding(m_SymbolMapper.GetAllocationType(symbol), symbol, lastPrice, quantity);
        }
Exemplo n.º 2
0
        private void ParseCashHolding(string[] lineFields, ref Portfolio portfolio)
        {
            string symbol = lineFields[0];
            decimal price = new decimal(1.0);
            decimal cashValue = Convert.ToDecimal(lineFields[1]);

            portfolio.AddHolding(AllocationType.Cash, symbol, price, cashValue);
        }