Example #1
0
 private static FinamTransaction CreateFeeTransaction(TradingMovementsOfSecuritiesRow row)
 {
     return(new FinamTransaction(
                transactionType: TransactionType.OtherExpense,
                date: GetTransactionDateTime(row),
                price: new FinamPrice(row.Fee, FinamCurrency.Parse(row.FeeCurrency)),
                description: row.Comment));
 }
Example #2
0
 private static FinamTransaction CreateBuyOrSellTransaction(TradingMovementsOfSecuritiesRow row)
 {
     return(new FinamTransaction(
                transactionType: (row.TradeType == BuyTransaction) ? TransactionType.Buy : TransactionType.Sell,
                date: GetTransactionDateTime(row),
                security: new FinamSecurity(row.ISIN, row.ShortName, row.Security),
                units: (int)row.Quantity,
                price: new FinamPrice(row.Price, FinamCurrency.Parse(row.Currency)),
                description: row.Comment));
 }