コード例 #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
ファイル: _multiasset.py プロジェクト: oizma/marketsimulator
 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
ファイル: _multiasset.py プロジェクト: oizma/marketsimulator
 def reset(self):
     MultiAsset_Impl.reset(self)
コード例 #6
0
ファイル: _multiasset.py プロジェクト: oizma/marketsimulator
 def bind_impl(self, ctx):
     MultiAsset_Impl.bind_impl(self, ctx)