17 using System.Collections.Generic;
41 Func<IEnumerable<T>, IEnumerable<Symbol>> constituentsFilter =
null)
65 PyObject constituentsFilter =
null)
66 : this(symbol, universeSettings, constituentsFilter.ConvertPythonUniverseFilterFunction<T>())
79 Func<IEnumerable<T>, IEnumerable<Symbol>> constituentsFilter =
null)
80 : base(subscriptionDataConfig,
82 constituentsFilter ?? (constituents =>
84 var symbols = constituents.Select(baseData => baseData.Symbol).ToList();
86 if (symbols.Count == 1 && symbols[0] ==
Symbol.
None)
89 return Enumerable.Empty<
Symbol>();
95 if (!subscriptionDataConfig.IsCustomData)
97 throw new InvalidOperationException($
"{typeof(T).Name} {nameof(SubscriptionDataConfig)}" +
98 $
" only supports custom data property set to 'true'");
111 PyObject constituentsFilter =
null)
112 : this(subscriptionDataConfig, universeSettings, constituentsFilter.ConvertPythonUniverseFilterFunction<T>())
123 public class ConstituentsUniverse : ConstituentsUniverse<ConstituentsUniverseData>
132 : base(symbol, universeSettings, filterFunc)
153 : base(symbol, universeSettings, filterFunc)