示例#1
0
    def __init__(self, traders=None, strategy=None, name=None, PnL=None, timeseries=None):
        from marketsim.gen._out.strategy._arbitrage import Arbitrage_ as _strategy_Arbitrage_
        from marketsim import deref_opt

        self.traders = traders if traders is not None else []
        self.strategy = strategy if strategy is not None else deref_opt(_strategy_Arbitrage_())
        self.name = name if name is not None else "-trader-"
        self.PnL = PnL if PnL is not None else 0.0
        self.timeseries = timeseries if timeseries is not None else []
        MultiAsset_Impl.__init__(self)
示例#2
0
 def __init__(self,
              traders=None,
              strategy=None,
              name=None,
              PnL=None,
              timeseries=None):
     from marketsim.gen._out.strategy._arbitrage import Arbitrage_ as _strategy_Arbitrage_
     from marketsim import deref_opt
     self.traders = traders if traders is not None else []
     self.strategy = strategy if strategy is not None else deref_opt(
         _strategy_Arbitrage_())
     self.name = name if name is not None else "-trader-"
     self.PnL = PnL if PnL is not None else 0.0
     self.timeseries = timeseries if timeseries is not None else []
     MultiAsset_Impl.__init__(self)
示例#3
0
 def reset(self):
     MultiAsset_Impl.reset(self)
示例#4
0
 def bind_impl(self, ctx):
     MultiAsset_Impl.bind_impl(self, ctx)
示例#5
0
 def reset(self):
     MultiAsset_Impl.reset(self)
示例#6
0
 def bind_impl(self, ctx):
     MultiAsset_Impl.bind_impl(self, ctx)