Example #1
0
 def __call__(self, side=None):
     from marketsim.gen._out.side._sell import Sell_ as _side_Sell_
     from marketsim import deref_opt
     from marketsim.gen._out.order._peg import Peg
     side = side if side is not None else deref_opt(_side_Sell_())
     proto = self.proto
     return Peg(proto(side))
 def __call__(self, side=None, volume=None):
     from marketsim.gen._out.side._sell import Sell_ as _side_Sell_
     from marketsim.gen._out._constant import constant_Float as _constant_Float
     from marketsim.gen._out.order._peg import Peg
     side = side if side is not None else _side_Sell_()
     volume = volume if volume is not None else _constant_Float(1.0)
     proto = self.proto
     return Peg(proto(side, volume))
Example #3
0
 def __call__(self, price=None):
     from marketsim.gen._out._constant import constant_Float as _constant_Float
     from marketsim import deref_opt
     from marketsim.gen._out.order._peg import Peg
     price = price if price is not None else deref_opt(
         _constant_Float(100.0))
     proto = self.proto
     return Peg(proto(price))
Example #4
0
 def Peg(self):
     from marketsim.gen._out.order._peg import Peg
     return Peg(self)
Example #5
0
 def __call__(self, volume=None):
     from marketsim.gen._out._constant import constant_Float as _constant_Float
     from marketsim.gen._out.order._peg import Peg
     volume = volume if volume is not None else _constant_Float(1.0)
     proto = self.proto
     return Peg(proto(volume))