-
-
Notifications
You must be signed in to change notification settings - Fork 420
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
SubscribeToAllTickerUpdatesAsync not call after REST calls #1046
Comments
How i keep socket alive? What a method? Not found KeepAlive(). |
@diegoaraujolima there is a function KeepAliveUserStreamAsync which you call, for example in the BinanceClient.UsdFuturesApi.Account interface. |
OK. But what is this listenKey parameter? |
Are you sure? Wouldn't the listenKey be the return key of the StartUserStreamAsync method? |
Is this serious? I think you confused when you said which method returns the listenKey. I just corrected what you said, because Subscribe doesn't return the listenKey, but an integer id, which is for another purpose. |
Yes, that I know, I already use it that way. The problem is not that. I have a socket to get the price using the SubscribeToAllTickerUpdatesAsync() method and every close of 1 minute, 1 hour, 4 hours and 1 day candles and then iterate on all symbols to get the candles and calculate the RSI of all candle closes. In some cases the candle calls stop responding and in some cases it is the socket that stops receiving messages. |
In fact, from what I'm checking it could be an excessive amount of calls on Binance. While I have these threads picking up the candles, after that I generate some orders on Binance for several currencies and it seems that when there is a delay in the response in the order API, some threads are blocked waiting for the completion of others. It seems to me more of a problem of managing concurrent threads than in fact a problem of the library. I'll double check and if I find a problem with the library I'll bring it here again. Thanks for listening. |
Is it possible to set a timeout for REST API requests? |
I'm sorry, this issue got kinda burried. You can use the |
After making a candlestick REST call, Socket data is no longer received consistently. Even making the call to UnsubscribeAllAsync, it is intermittent, sometimes it receives and sometimes it doesn't.
The text was updated successfully, but these errors were encountered: