Open gitkornel opened 3 years ago
You are attempting to send a custom stream name into a userStream method that is not a custom stream. Also, in general, if you do want to start a user stream by using the custom stream method, the name should be in this case the listen key.
I've created the following example to illustrate how to start a user stream - https://github.com/adanikel/BinanceExtensionCPP/blob/master/examples/futures_user_stream.cpp
tested and works for me (futures account)
let me know if that helps @gitkornel
You are attempting to send a custom stream name into a userStream method that is not a custom stream. Also, in general, if you do want to start a user stream by using the custom stream method, the name should be in this case the listen key.
I've created the following example to illustrate how to start a user stream - https://github.com/adanikel/BinanceExtensionCPP/blob/master/examples/futures_user_stream.cpp
tested and works for me (futures account)
let me know if that helps @gitkornel
Hello, it doesn't do anything, doesn't print.
I copied the exact code from the example.
If you copied the exact snippet it should work.
The user stream only pushes updates when there are updates to push, such as new orders.
Try cancelling / opening a new FUTURES USDT order and see if an update goes through. Also make sure the key is supporting futures trading.
Hello, I've been wondering how can you create a user data listen stream?
There is no example and quite didn't understand the code.
What I came up to (but doesn't compile neither works):
Any ideas?
Best Regards.