internal static BarType Convert(SmartQuant.Data.BarType barType) { switch (barType) { case SmartQuant.Data.BarType.Time: return(BarType.Time); case SmartQuant.Data.BarType.Tick: return(BarType.Tick); case SmartQuant.Data.BarType.Volume: return(BarType.Volume); case SmartQuant.Data.BarType.Range: return(BarType.Range); default: throw new NotImplementedException("BarType is not supported : " + barType); } }
private BarRequest(SmartQuant.Data.BarType barType, long barSize, bool isBarFactoryRequest) : this(EnumConverter.Convert(barType), barSize, isBarFactoryRequest) { }