Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

When successfully subscribing to a web socket, the event subscribed is never received #56

Open
funnel20 opened this issue Dec 18, 2024 · 0 comments

Comments

@funnel20
Copy link

funnel20 commented Dec 18, 2024

Using Python SDK version 1.4.2 I follow the simple documentation at https://docs.bitvavo.com/#tag/Market-data-subscription-WebSocket/paths/~1subscribeTicker/post to subscribe to a ticker via code:

from python_bitvavo_api.bitvavo import Bitvavo

def callback(response):
  print("Callback:", json.dumps(response, indent=2))

def errorCallback(error):
  print("Error callback:", json.dumps(error, indent=2))

bitvavo = Bitvavo()
websocket = bitvavo.newWebsocket()
websocket.setErrorCallback(errorCallback)

websocket.subscriptionTicker('BTC-EUR', callback)

According to the docu, the subscription should be confirmed by a positive response:

{
  "event": "subscribed",
  "subscriptions": {
    "ticker": [
      "BTC-EUR"
    ]
  }
}

However, this is never received, only positive ticker responses.

The same applies to Candles subscription at https://docs.bitvavo.com/#tag/Market-data-subscription-WebSocket/paths/~1subscribeCandles/post

It seems that the subscribed event is not send by the server, or ignored by the SDK.

Please implement the subscription confirmation, so we can add proper fault handling in our application.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant