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

SubscribeToUserDataUpdatesAsync not receiving updates #1150

Closed
Samehvan1 opened this issue Sep 20, 2022 · 2 comments
Closed

SubscribeToUserDataUpdatesAsync not receiving updates #1150

Samehvan1 opened this issue Sep 20, 2022 · 2 comments

Comments

@Samehvan1
Copy link

Samehvan1 commented Sep 20, 2022

Hello everyone,
i am having problem with userupdate , it is not receiving any updates

 private void scribeToUserDataUpdate()
        {
            var listenKey = bClient.SpotApi.Account.StartUserStreamAsync().Result;
            if (!listenKey.Success)
            {
                addLog("Error scribing to account update" + Environment.NewLine + listenKey.Error.Message);
                return;
            }
            
            socketClient.SpotStreams.SubscribeToUserDataUpdatesAsync(listenKey.Data,
                data =>
                {
                    // Handle order update
                    updateBinanceOrders(data.Data);
                },
                data =>
                {
                    // Handle oco order update
                    addLog("oco order update received ");
                },
                data =>
                {
                    // Handle account balance update, caused by trading
                   addLog("account balance update received ");
                },
                data =>
                {
                    // Handle account balance update, caused by withdrawal/deposit or transfers
                    addLog("account balance2 update received ");
                });
        }
    } 

i am not getting logs here

@Samehvan1
Copy link
Author

no, and solved anyway
it's not working with testnet server works only with the main net server

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

2 participants
@Samehvan1 and others