Пример #1
0
 def type(self, value: Union[ReportType, str]):
     self.__type = value if isinstance(
         value, ReportType) else get_enum_value(ReportType, value)
     self._property_changed('type')
Пример #2
0
 def type(self, value: Union[ReportType, str]):
     self._property_changed('type')
     self.__type = get_enum_value(ReportType, value)
Пример #3
0
 def template_id(self, value: Union[ReportGenerateTemplateId, str]):
     self._property_changed('template_id')
     self.__template_id = get_enum_value(ReportGenerateTemplateId, value)
Пример #4
0
 def asset_class(self, value: Union[AssetClass, str]):
     self._property_changed('asset_class')
     self.__asset_class = get_enum_value(AssetClass, value)
Пример #5
0
 def scenario_type(self, value: Union[ScenarioType, str]):
     self._property_changed('scenario_type')
     self.__scenario_type = get_enum_value(ScenarioType, value)
Пример #6
0
 def direction(self, value: Union[SortDirection, str]):
     self._property_changed('direction')
     self.__direction = get_enum_value(SortDirection, value)        
Пример #7
0
 def currency(self, value: Union[Currency, str]):
     self._property_changed('currency')
     self.__currency = get_enum_value(Currency, value)        
Пример #8
0
 def line_draw_type(self, value: Union[ChartLineDrawType, str]):
     self._property_changed('line_draw_type')
     self.__line_draw_type = get_enum_value(ChartLineDrawType, value)        
Пример #9
0
 def type(self, value: Union[ChartRegressionType, str]):
     self._property_changed('type')
     self.__type = get_enum_value(ChartRegressionType, value)        
Пример #10
0
 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)
Пример #11
0
 def fill(self, value: Union[ChartFill, str]):
     self._property_changed('fill')
     self.__fill = get_enum_value(ChartFill, value)        
Пример #12
0
 def direction(self, value: Union[InvestmentRecommendationDirection, str]):
     self._property_changed('direction')
     self.__direction = get_enum_value(InvestmentRecommendationDirection,
                                       value)
Пример #13
0
    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)
Пример #14
0
 def status(self, value: Union[ReportStatus, str]):
     self.__status = value if isinstance(
         value, ReportStatus) else get_enum_value(ReportStatus, value)
     self._property_changed('status')
Пример #15
0
 def unit(self, value: Union[AvailableUnitTypes, str]):
     self._property_changed('unit')
     self.__unit = get_enum_value(AvailableUnitTypes, value)        
Пример #16
0
 def stroke_type(self, value: Union[ChartRegressionStrokeType, str]):
     self._property_changed('stroke_type')
     self.__stroke_type = get_enum_value(ChartRegressionStrokeType, value)        
Пример #17
0
 def period(self, value: Union[ParameterPeriod, str]):
     self._property_changed('period')
     self.__period = get_enum_value(ParameterPeriod, value)        
Пример #18
0
 def chart_type(self, value: Union[ChartType, str]):
     self._property_changed('chart_type')
     self.__chart_type = get_enum_value(ChartType, value)        
Пример #19
0
 def operation(self, value: Union[WipiFilterOperation, str]):
     self._property_changed('operation')
     self.__operation = get_enum_value(WipiFilterOperation, value)        
Пример #20
0
 def entity_property(self, value: Union[AssetProperties, str]):
     self._property_changed('entity_property')
     self.__entity_property = get_enum_value(AssetProperties, value)
Пример #21
0
 def type(self, value: Union[PortfolioType, str]):
     self._property_changed('type')
     self.__type = get_enum_value(PortfolioType, value)        
Пример #22
0
 def type(self, value: Union[WipiFilterType, str]):
     self._property_changed('type')
     self.__type = get_enum_value(WipiFilterType, value)        
Пример #23
0
 def basket_action(self, value: Union[BasketAction, str]):
     self._property_changed('basket_action')
     self.__basket_action = get_enum_value(BasketAction, value)
Пример #24
0
 def render(self, value: Union[ParameterRender, str]):
     self._property_changed('render')
     self.__render = get_enum_value(ParameterRender, value)        
Пример #25
0
 def position_source_type(self, value: Union[PositionSourceType, str]):
     self._property_changed('position_source_type')
     self.__position_source_type = get_enum_value(PositionSourceType, value)
Пример #26
0
 def name(self, value: Union[RateIds, str]):
     self._property_changed('name')
     self.__name = get_enum_value(RateIds, value)        
Пример #27
0
 def status(self, value: Union[ReportStatus, str]):
     self._property_changed('status')
     self.__status = get_enum_value(ReportStatus, value)
Пример #28
0
 def type(self, value: Union[EntitiesSupported, str]):
     self._property_changed('type')
     self.__type = get_enum_value(EntitiesSupported, value)        
Пример #29
0
 def priority(self, value: Union[ReportJobPriority, str]):
     self._property_changed('priority')
     self.__priority = get_enum_value(ReportJobPriority, value)
Пример #30
0
 def positionSourceType(self, value: Union[PositionSourceType, str]):
     self.__positionSourceType = value if isinstance(
         value, PositionSourceType) else get_enum_value(
             PositionSourceType, value)
     self._property_changed('positionSourceType')