/// <summary> /// Get the market code from the given UFXMarketCode enum type. /// NOTE: it needs to add the StandardCode flag in the enum value. /// </summary> /// <param name="marketCode">The given UFXMarketCode type value.</param> /// <returns>A string value of the market code(exchange code).</returns> public static string GetMarketCode(UFXMarketCode marketCode) { return(EnumAttributeHelper.GetStandardCode <UFXMarketCode>(marketCode)); }
/// <summary> /// Get the market name(exchange) from the given UFXMarketCode type. /// NOTE: it needs to add the Description flag in the enum value. /// </summary> /// <param name="marketCode">The given UFXMarketCode type value.</param> /// <returns>A string value of the market name(exchange).</returns> public static string GetMarketName(UFXMarketCode marketCode) { return(EnumAttributeHelper.GetEnumDescription <UFXMarketCode>(marketCode)); }