using KLHZ.Trader.Core.Exchange.Models; namespace KLHZ.Trader.Core.Exchange.Extentions { internal static class StringExtensions { internal static AssetType ParseInstrumentType(this string instrumentType) { switch (instrumentType) { case "futures": return AssetType.Futures; case "currency": return AssetType.Currency; case "share": return AssetType.Common; default: return AssetType.Unknown; } } } }