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