-
-
Notifications
You must be signed in to change notification settings - Fork 87
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
Outdated documentation #411
Outdated documentation #411
Comments
Hey, you should, as it say, wrap the function you want inside a try/catch to get the error logged. That should show you what you are doing wrong. Otherwise, there is a public beta version of the bybit api in testing, which will soon be released with completely renewed and modernised WebsocketClient and new examples together with it. Its still not public to use freely, but just so you are aware that updates are coming :) |
And sorry, just saw you posted the error. @tiagosiebler can you check? |
config.js
index.js
priceMonitor.js
service.js
|
Thanks for all the info to reproduce the issue. Interesting, seems to be related to demo trading. Looking into it. |
…ly resolve demo trading url for private topics
fix(v3.10.31, #411): demo trading wss should only be used for private topics.
You've found a bug! Public topics (such as klines) should not be routed to the demo trading connection. This was unintentionally happening. Fix incoming via #412, should be on npm shortly as of v3.10.31, as soon as the PR tests finish and I've merged it. Regarding the promise that seems impossible to catch, that kind of behaviour is definitely not desired. I've pinned down what's causing it and I'm evaluating the better way of fixing it separately (most likely with the next release) without unintended consequences. Keep an eye on #398 for the next major release, where I'm like to include a more robust fix, once I'm happy with my testing (that fix is not in the beta release yet). |
If you notice any other examples or scenarios that aren't behaving as expected, please continue opening issues. This was a really important one to fix. |
Hello,
I feel documentation & examples are outdated.
I am checking this file
https://github.com/tiagosiebler/bybit-api/blob/master/examples/ws-public-v5.ts
But when I try to do the same, I get errors
e.g.
wsClient.subscribeV5('kline.5.XRPUSDT', 'linear');
Returns
I can't understand what I am doing wrong
I am testing on livenet on demo trading account. Connection itself & requests like create order / remove order work fine
The text was updated successfully, but these errors were encountered: