Esempio n. 1
0
def Limit(volume = None): 
    from marketsim.gen._out._ifunction import IFunctionfloat
    from marketsim.gen._out.order._curried._side_price_limit import side_price_Limit_Float as _order__curried_side_price_Limit_Float
    from marketsim import rtti
    if volume is None or rtti.can_be_casted(volume, IFunctionfloat):
        return _order__curried_side_price_Limit_Float(volume)
    raise Exception('Cannot find suitable overload for Limit('+str(volume) +':'+ str(type(volume))+')')
 def __init__(self, floatingPrice = None, proto = None):
     from marketsim.gen._out._const import const_Float as _const_Float
     from marketsim.gen._out.order._curried._side_price_limit import side_price_Limit_Float as _order__curried_side_price_Limit_Float
     from marketsim import rtti
     self.floatingPrice = floatingPrice if floatingPrice is not None else _const_Float(10.0)
     self.proto = proto if proto is not None else _order__curried_side_price_Limit_Float()
     rtti.check_fields(self)
    def __init__(self, proto=None, expiry=None):
        from marketsim.gen._out.order._curried._side_price_limit import (
            side_price_Limit_Float as _order__curried_side_price_Limit_Float,
        )
        from marketsim import deref_opt
        from marketsim.gen._out._constant import constant_Float as _constant_Float

        self.proto = proto if proto is not None else deref_opt(_order__curried_side_price_Limit_Float())
        self.expiry = expiry if expiry is not None else deref_opt(_constant_Float(10.0))
 def __init__(self, proto = None, lotSize = None):
     from marketsim.gen._out.order._curried._side_price_limit import side_price_Limit_Float as _order__curried_side_price_Limit_Float
     from marketsim import deref_opt
     from marketsim.gen._out._constant import constant_Float as _constant_Float
     self.proto = proto if proto is not None else deref_opt(_order__curried_side_price_Limit_Float())
     self.lotSize = lotSize if lotSize is not None else deref_opt(_constant_Float(10.0))
 def __init__(self, proto = None):
     from marketsim.gen._out.order._curried._side_price_limit import side_price_Limit_Float as _order__curried_side_price_Limit_Float
     from marketsim import rtti
     self.proto = proto if proto is not None else _order__curried_side_price_Limit_Float()
     rtti.check_fields(self)
 def __init__(self, proto = None):
     from marketsim.gen._out.order._curried._side_price_limit import side_price_Limit_Float as _order__curried_side_price_Limit_Float
     from marketsim import deref_opt
     self.proto = proto if proto is not None else deref_opt(_order__curried_side_price_Limit_Float())
 def __init__(self, proto = None, maxloss = None):
     from marketsim.gen._out.order._curried._side_price_limit import side_price_Limit_Float as _order__curried_side_price_Limit_Float
     from marketsim import deref_opt
     from marketsim.gen._out._constant import constant_Float as _constant_Float
     self.proto = proto if proto is not None else deref_opt(_order__curried_side_price_Limit_Float())
     self.maxloss = maxloss if maxloss is not None else deref_opt(_constant_Float(0.1))