Пример #1
0
        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);
            }
        }
Пример #2
0
 private BarRequest(SmartQuant.Data.BarType barType, long barSize, bool isBarFactoryRequest) : this(EnumConverter.Convert(barType), barSize, isBarFactoryRequest)
 {
 }