def __init__(self, orderBook , strategy = None, name = None, amount = None, PnL = None, timeseries = None):
     from marketsim.gen._out.strategy._empty import Empty_ as _strategy_Empty_
     from marketsim import deref_opt
     self.orderBook = orderBook
     self.strategy = strategy if strategy is not None else deref_opt(_strategy_Empty_())
     self.name = name if name is not None else "-trader-"
     self.amount = amount if amount is not None else 0.0
     self.PnL = PnL if PnL is not None else 0.0
     self.timeseries = timeseries if timeseries is not None else []
     SingleAsset_Impl.__init__(self)
Beispiel #2
0
 def __init__(self,
              orderBook,
              strategy=None,
              name=None,
              amount=None,
              PnL=None,
              timeseries=None):
     from marketsim.gen._out.strategy._empty import Empty_ as _strategy_Empty_
     from marketsim import deref_opt
     self.orderBook = orderBook
     self.strategy = strategy if strategy is not None else deref_opt(
         _strategy_Empty_())
     self.name = name if name is not None else "-trader-"
     self.amount = amount if amount is not None else 0.0
     self.PnL = PnL if PnL is not None else 0.0
     self.timeseries = timeseries if timeseries is not None else []
     SingleAsset_Impl.__init__(self)
 def reset(self):
     SingleAsset_Impl.reset(self)
 def bind_impl(self, ctx):
     SingleAsset_Impl.bind_impl(self, ctx)
Beispiel #5
0
 def reset(self):
     SingleAsset_Impl.reset(self)
Beispiel #6
0
 def bind_impl(self, ctx):
     SingleAsset_Impl.bind_impl(self, ctx)