コード例 #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
ファイル: portfolios.py プロジェクト: zoeyzhougs/gs-quant
 def currency(self, value: Union[Currency, str]):
     self._property_changed('currency')
     self.__currency = get_enum_value(Currency, value)        
コード例 #8
0
ファイル: charts.py プロジェクト: vishalbelsare/gs-quant
 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
ファイル: charts.py プロジェクト: vishalbelsare/gs-quant
 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
ファイル: charts.py プロジェクト: vishalbelsare/gs-quant
 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
ファイル: charts.py プロジェクト: vishalbelsare/gs-quant
 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
ファイル: charts.py プロジェクト: vishalbelsare/gs-quant
 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
ファイル: monitor.py プロジェクト: mrdahdah/gs-quant
 def entity_property(self, value: Union[AssetProperties, str]):
     self._property_changed('entity_property')
     self.__entity_property = get_enum_value(AssetProperties, value)
コード例 #21
0
ファイル: portfolios.py プロジェクト: zoeyzhougs/gs-quant
 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')