Example #1
0
File: item.py Project: asciili/vnpy
    def __init__(self, manager: BarManager, am: ArrayManager):
        """"""
        ScatterPlotItem.__init__(self)
        # ExChartItem.__init__(self,manager)
        # super(TradeItem,self).__init__(manager, am)
        super(ExChartItem, self).__init__(manager, am)

        self.blue_pen: QtGui.QPen = pg.mkPen(color=(100, 100, 255), width=2)

        self.trades: Dict[int, Dict[str,
                                    TradeData]] = {}  # {ix:{tradeid:trade}}
Example #2
0
File: item.py Project: asciili/vnpy
    def __init__(self, manager: BarManager, am: ArrayManager):
        """"""
        ScatterPlotItem.__init__(self)
        super(ExChartItem, self).__init__(manager, am)

        self.orders: Dict[int, Dict[str, Order]] = {}  # {ix:{orderid:order}}
Example #3
0
    def __init__(self, manager: BarManager):
        """"""
        ScatterPlotItem.__init__(self)
        super(CandleItem,self).__init__(manager)

        self.orders : Dict[int,Dict[str,OrderData]] = {} # {ix:{orderid:order}}