17 using System.Collections.Generic;
36 public IEnumerable<BaseData>
Parse(
string source, Stream stream)
39 var tickType = pathComponents.
Filename.ToLowerInvariant().Contains(
"_trade")
43 var dataType = GetDataType(pathComponents.SecurityType, pathComponents.Resolution, tickType);
44 var factory = (
BaseData) Activator.CreateInstance(dataType);
48 using (var reader =
new StreamReader(stream))
51 while ((line = reader.ReadLine()) !=
null)
53 yield
return factory.Reader(config, line, pathComponents.Date,
false);
90 var parameters =
string.Join(
" | ", securityType, resolution, tickType);
91 throw new NotImplementedException(
"LeanParser.GetDataType has not yet implemented: " + parameters);