18 using System.Collections.Generic;
28 private readonly
Symbol _etfSymbol;
30 private readonly Func<IEnumerable<ETFConstituentUniverse>, IEnumerable<Symbol>> _universeFilterFunc;
42 Func<IEnumerable<ETFConstituentUniverse>, IEnumerable<Symbol>> universeFilterFunc)
44 _etfSymbol = etfSymbol;
45 _universeSettings = universeSettings;
46 _universeFilterFunc = universeFilterFunc;
56 Func<IEnumerable<ETFConstituentUniverse>, IEnumerable<Symbol>> universeFilterFunc)
57 : this(etfSymbol, null, universeFilterFunc)
69 PyObject universeFilterFunc =
null) :
70 this(etfSymbol, universeSettings, universeFilterFunc.ConvertPythonUniverseFilterFunction<
ETFConstituentUniverse>())
82 Func<IEnumerable<ETFConstituentUniverse>, IEnumerable<Symbol>> universeFilterFunc)
88 _universeSettings = universeSettings;
89 _universeFilterFunc = universeFilterFunc;
99 Func<IEnumerable<ETFConstituentUniverse>, IEnumerable<Symbol>> universeFilterFunc)
100 : this(etfTicker, null, universeFilterFunc)
113 PyObject universeFilterFunc =
null) :
114 this(etfTicker, universeSettings, universeFilterFunc.ConvertPythonUniverseFilterFunction<
ETFConstituentUniverse>())
124 _universe ??= algorithm?.
Universe.
ETF(_etfSymbol, _universeSettings, _universeFilterFunc);
125 return new[] { _universe };