Example #1
0
    def __init__(self):
        super(BitstampWebsocketAPI2, self).__init__()

        # Pusher channels for live trades, order book, and live orders (order changes)
        self.trade_channel = None
        self.orderbook_channel = None
        self.orderchange_channel = None

        # todo consider moving back out to class variable...
        self._pusher = Pusher(BitstampWebsocketAPI2.APP_KEY)