Lean  $LEAN_TAG$
ISubscriptionDataSourceReader.cs
1 using System;
2 using System.Collections.Generic;
3 using QuantConnect.Data;
4 
6 {
7  /// <summary>
8  /// Represents a type responsible for accepting an input <see cref="SubscriptionDataSource"/>
9  /// and returning an enumerable of the source's <see cref="BaseData"/>
10  /// </summary>
12  {
13  /// <summary>
14  /// Event fired when the specified source is considered invalid, this may
15  /// be from a missing file or failure to download a remote source
16  /// </summary>
17  event EventHandler<InvalidSourceEventArgs> InvalidSource;
18 
19  /// <summary>
20  /// Reads the specified <paramref name="source"/>
21  /// </summary>
22  /// <param name="source">The source to be read</param>
23  /// <returns>An <see cref="IEnumerable{BaseData}"/> that contains the data in the source</returns>
24  IEnumerable<BaseData> Read(SubscriptionDataSource source);
25  }
26 }