Exemplo n.º 1
0
Arquivo: item.py Projeto: 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}}
Exemplo n.º 2
0
Arquivo: item.py Projeto: 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}}
Exemplo n.º 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}}