public static AOption CreateFromYahooSymbol(string sSymbol, ESecType eSecType) { switch (eSecType) { case ESecType.Equity: return EquityOption.CreateFromYahooSymbol(sSymbol); case ESecType.Index: return IndexOption.CreateFromYahooSymbol(sSymbol); default: return null; } }
public static string GetYahooUnderling(string sStdSymbol, ESecType eSecType) { switch (eSecType) { case ESecType.Equity: return EquityOption.GetYahooUnderling(sStdSymbol); case ESecType.Index: return IndexOption.GetYahooUnderling(sStdSymbol); default: return null; } }