Esempio n. 1
0
    def __init__(self, **kwargs):
        super(OandaV20Broker, self).__init__()
        self.o = oandav20store.OandaV20Store(**kwargs)

        self.orders = collections.OrderedDict()  # orders by order id
        self.notifs = collections.deque()  # holds orders which are notified

        self.opending = collections.defaultdict(list)  # pending transmission
        self.brackets = dict()  # confirmed brackets

        self.startingcash = self.cash = 0.0
        self.startingvalue = self.value = 0.0
        self.positions = collections.defaultdict(Position)
Esempio n. 2
0
 def __init__(self, **kwargs):
     super(OandaV20RiskSizer, self).__init__(**kwargs)
     self.o = oandav20store.OandaV20Store(**kwargs)
 def __init__(self, **kwargs):
     self.o = oandav20store.OandaV20Store(**kwargs)