def type(self, value: Union[ReportType, str]): self.__type = value if isinstance( value, ReportType) else get_enum_value(ReportType, value) self._property_changed('type')
def type(self, value: Union[ReportType, str]): self._property_changed('type') self.__type = get_enum_value(ReportType, value)
def template_id(self, value: Union[ReportGenerateTemplateId, str]): self._property_changed('template_id') self.__template_id = get_enum_value(ReportGenerateTemplateId, value)
def asset_class(self, value: Union[AssetClass, str]): self._property_changed('asset_class') self.__asset_class = get_enum_value(AssetClass, value)
def scenario_type(self, value: Union[ScenarioType, str]): self._property_changed('scenario_type') self.__scenario_type = get_enum_value(ScenarioType, value)
def direction(self, value: Union[SortDirection, str]): self._property_changed('direction') self.__direction = get_enum_value(SortDirection, value)
def currency(self, value: Union[Currency, str]): self._property_changed('currency') self.__currency = get_enum_value(Currency, value)
def line_draw_type(self, value: Union[ChartLineDrawType, str]): self._property_changed('line_draw_type') self.__line_draw_type = get_enum_value(ChartLineDrawType, value)
def type(self, value: Union[ChartRegressionType, str]): self._property_changed('type') self.__type = get_enum_value(ChartRegressionType, value)
def from_dict(cls, values: dict): if values: return cls.__asset_class_and_type_to_instrument().get( (get_enum_value(AssetClass, values.pop('asset_class')), get_enum_value(AssetType, values.pop('type'))), Security)._from_dict(values)
def fill(self, value: Union[ChartFill, str]): self._property_changed('fill') self.__fill = get_enum_value(ChartFill, value)
def direction(self, value: Union[InvestmentRecommendationDirection, str]): self._property_changed('direction') self.__direction = get_enum_value(InvestmentRecommendationDirection, value)
def __init__(self, id_: str, asset_class: Union[AssetClass, str], name: str): if isinstance(asset_class, str): asset_class = get_enum_value(AssetClass, asset_class) Asset.__init__(self, id_, asset_class, name)
def status(self, value: Union[ReportStatus, str]): self.__status = value if isinstance( value, ReportStatus) else get_enum_value(ReportStatus, value) self._property_changed('status')
def unit(self, value: Union[AvailableUnitTypes, str]): self._property_changed('unit') self.__unit = get_enum_value(AvailableUnitTypes, value)
def stroke_type(self, value: Union[ChartRegressionStrokeType, str]): self._property_changed('stroke_type') self.__stroke_type = get_enum_value(ChartRegressionStrokeType, value)
def period(self, value: Union[ParameterPeriod, str]): self._property_changed('period') self.__period = get_enum_value(ParameterPeriod, value)
def chart_type(self, value: Union[ChartType, str]): self._property_changed('chart_type') self.__chart_type = get_enum_value(ChartType, value)
def operation(self, value: Union[WipiFilterOperation, str]): self._property_changed('operation') self.__operation = get_enum_value(WipiFilterOperation, value)
def entity_property(self, value: Union[AssetProperties, str]): self._property_changed('entity_property') self.__entity_property = get_enum_value(AssetProperties, value)
def type(self, value: Union[PortfolioType, str]): self._property_changed('type') self.__type = get_enum_value(PortfolioType, value)
def type(self, value: Union[WipiFilterType, str]): self._property_changed('type') self.__type = get_enum_value(WipiFilterType, value)
def basket_action(self, value: Union[BasketAction, str]): self._property_changed('basket_action') self.__basket_action = get_enum_value(BasketAction, value)
def render(self, value: Union[ParameterRender, str]): self._property_changed('render') self.__render = get_enum_value(ParameterRender, value)
def position_source_type(self, value: Union[PositionSourceType, str]): self._property_changed('position_source_type') self.__position_source_type = get_enum_value(PositionSourceType, value)
def name(self, value: Union[RateIds, str]): self._property_changed('name') self.__name = get_enum_value(RateIds, value)
def status(self, value: Union[ReportStatus, str]): self._property_changed('status') self.__status = get_enum_value(ReportStatus, value)
def type(self, value: Union[EntitiesSupported, str]): self._property_changed('type') self.__type = get_enum_value(EntitiesSupported, value)
def priority(self, value: Union[ReportJobPriority, str]): self._property_changed('priority') self.__priority = get_enum_value(ReportJobPriority, value)
def positionSourceType(self, value: Union[PositionSourceType, str]): self.__positionSourceType = value if isinstance( value, PositionSourceType) else get_enum_value( PositionSourceType, value) self._property_changed('positionSourceType')