Balances are not updated
LexProfi opened this issue · 0 comments
LexProfi commented
Good day! Prompt - I use the following code in the program:
actory = BinanceApiClientFactory.newInstance(apiKey, apiSecret);
restClient = factory.newRestClient();
webSocketClient = factory.newWebSocketClient();
listenKey = restClient.startUserDataStream();
account = restClient.getAccount();
Then I run the following code at regular intervals:
assetBalances = account.getBalances();
prices = restClient.getAllPrices();
After a while, the balance data stops updating. When executing the code, no error occurs, just the values are old. For example, an order was made for the BTC, but these BTC still remain on the balance sheet. What could be the reason for this behavior?