20 using System.Collections.Generic;
35 public override string Name
42 if (_model.HasAttr(nameof(
Name)))
44 return _model.GetProperty<
string>(nameof(
Name));
48 return _model.GetProperty(
" __class__" ).GetAttr(
"__name__").GetAndDispose<
string>();
60 foreach (var attributeName
in new[] {
"Update",
"OnSecuritiesChanged" })
62 if (!_model.HasAttr(attributeName))
64 throw new NotImplementedException($
"IAlphaModel.{attributeName} must be implemented. Please implement this missing method on {model.GetPythonType()}");
78 return _model.InvokeMethodAndEnumerate<
Insight>(nameof(
Update), algorithm, data);