slazarov / python-bittrex-websocket

Python websocket for Bittrex (non async).
http://python-bittrex-websocket-docs.readthedocs.io/en/latest/index.html
MIT License
103 stars 38 forks source link

Unsubscribe from specific event without disconnection other events #66

Closed nizaevka closed 6 years ago

nizaevka commented 6 years ago

Hello, is it possible to dynamically unsubsribe from one specific event?

Something like:

class UnsubscribeEvent(Event):
    """
    Handles the event of unsubscribing specific ticker(s) from specific channels.
    """
    def __init__(self, invoke, *payload):
        self.type = EventTypes.UNSUBSCRIBE
        self.invoke = invoke
        self.payload = payload

but i don`t understand is it possible in SignalR?

slazarov commented 6 years ago

Bittrex hasn’t released any unsubscribing methods. Also QueryExchangeState is an one off invoke, you don’t subscribe to anything.

On Jun 9, 2018 at 3:49 pm, <KNizaev (mailto:notifications@github.com)> wrote:

Hello, is it possible to unsubsribe from one specific event? For example i need 'QueryExchangeState' not all the time because of 'SubscribeToExchangeDeltas'. How can i stop recieve 'QueryExchangeState' without stopping other events?

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub (https://github.com/slazarov/python-bittrex-websocket/issues/66), or mute the thread (https://github.com/notifications/unsubscribe-auth/AbVUG5ZBbwrR16nU6aTT4eQ9h6iAih4bks5t68R2gaJpZM4UhUkq).

nizaevka commented 6 years ago

Thanks for your work!