tbapi.api.bases.optimization_range
1from __future__ import annotations 2from typing import TYPE_CHECKING 3from tbapi.common.decorators import tb_class, tb_interface 4from tbapi.common.converters import to_python_datetime, to_net_datetime 5from datetime import datetime 6from Tickblaze.Scripts.Api.Bases import OptimizationRange as _OptimizationRange 7from typing import Any, overload 8from abc import ABC, abstractmethod 9 10@tb_class(_OptimizationRange) 11class OptimizationRange(): 12 13 @overload 14 @staticmethod 15 def new(ValueStep: Any, ValueLow: Any, ValueHigh: Any) -> "OptimizationRange": 16 """Constructor overload with arguments: ValueStep, ValueLow, ValueHigh""" 17 ... 18 @staticmethod 19 def new(*args, **kwargs): 20 """Generic factory method for OptimizationRange. Use overloads for IDE type hints.""" 21 return OptimizationRange(*args, **kwargs) 22 23 @property 24 def value_step(self) -> Any: 25 val = self._value.ValueStep 26 return val 27 @value_step.setter 28 def value_step(self, val: Any): 29 tmp = self._value 30 tmp.ValueStep = val 31 self._value = tmp 32 @property 33 def value_low(self) -> Any: 34 val = self._value.ValueLow 35 return val 36 @value_low.setter 37 def value_low(self, val: Any): 38 tmp = self._value 39 tmp.ValueLow = val 40 self._value = tmp 41 @property 42 def value_high(self) -> Any: 43 val = self._value.ValueHigh 44 return val 45 @value_high.setter 46 def value_high(self, val: Any): 47 tmp = self._value 48 tmp.ValueHigh = val 49 self._value = tmp 50 51 def contains(self, convertible: Any) -> bool: 52 result = self._value.Contains(convertible) 53 return result 54
@tb_class(_OptimizationRange)
class
OptimizationRange:
18@tb_class(_OptimizationRange) 19class OptimizationRange(): 20 21 @overload 22 @staticmethod 23 def new(ValueStep: Any, ValueLow: Any, ValueHigh: Any) -> "OptimizationRange": 24 """Constructor overload with arguments: ValueStep, ValueLow, ValueHigh""" 25 ... 26 @staticmethod 27 def new(*args, **kwargs): 28 """Generic factory method for OptimizationRange. Use overloads for IDE type hints.""" 29 return OptimizationRange(*args, **kwargs) 30 31 @property 32 def value_step(self) -> Any: 33 val = self._value.ValueStep 34 return val 35 @value_step.setter 36 def value_step(self, val: Any): 37 tmp = self._value 38 tmp.ValueStep = val 39 self._value = tmp 40 @property 41 def value_low(self) -> Any: 42 val = self._value.ValueLow 43 return val 44 @value_low.setter 45 def value_low(self, val: Any): 46 tmp = self._value 47 tmp.ValueLow = val 48 self._value = tmp 49 @property 50 def value_high(self) -> Any: 51 val = self._value.ValueHigh 52 return val 53 @value_high.setter 54 def value_high(self, val: Any): 55 tmp = self._value 56 tmp.ValueHigh = val 57 self._value = tmp 58 59 def contains(self, convertible: Any) -> bool: 60 result = self._value.Contains(convertible) 61 return result
@staticmethod
def
new(*args, **kwargs):
26 @staticmethod 27 def new(*args, **kwargs): 28 """Generic factory method for OptimizationRange. Use overloads for IDE type hints.""" 29 return OptimizationRange(*args, **kwargs)
Generic factory method for OptimizationRange. Use overloads for IDE type hints.