Init
This commit is contained in:
43
Model/ETFHoldingModel.cs
Normal file
43
Model/ETFHoldingModel.cs
Normal file
@@ -0,0 +1,43 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using MarketData.MarketDataModel;
|
||||
|
||||
namespace TradeBlotter.Model
|
||||
{
|
||||
public class ETFHoldingModel
|
||||
{
|
||||
private ETFHolding etfHolding;
|
||||
|
||||
public ETFHoldingModel(ETFHolding etfHolding)
|
||||
{
|
||||
this.etfHolding=etfHolding;
|
||||
}
|
||||
public String ETFHoldingSymbol
|
||||
{
|
||||
get{return etfHolding.ETFSymbol;}
|
||||
}
|
||||
public String HoldingSymbol
|
||||
{
|
||||
get
|
||||
{
|
||||
String symbolNoExchange = etfHolding.HoldingSymbol;
|
||||
if (symbolNoExchange.Contains(".")) symbolNoExchange = symbolNoExchange.Split('.')[0];
|
||||
return symbolNoExchange;
|
||||
}
|
||||
}
|
||||
public String HoldingSymbolShareClass
|
||||
{
|
||||
get{return etfHolding.HoldingSymbolShareClass;}
|
||||
}
|
||||
public String HoldingCompanyName
|
||||
{
|
||||
get{return etfHolding.HoldingCompanyName;}
|
||||
}
|
||||
public double PercentOfAssets
|
||||
{
|
||||
get{return etfHolding.PercentOfAssets;}
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user