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

UseTestnet, User Balance websocket broken ? #627

Closed
thdelmas opened this issue Oct 23, 2024 · 1 comment
Closed

UseTestnet, User Balance websocket broken ? #627

thdelmas opened this issue Oct 23, 2024 · 1 comment

Comments

@thdelmas
Copy link

thdelmas commented Oct 23, 2024

Hi,

I'm trying to setup testnet mode in my program (it works perfectly fine in production mode)

However, when trying to setup the websocket, I get the following error:

Binance-golang 2024/10/23 14:14:42 response body: {"code":-2015,"msg":"Invalid API-key, IP, or permissions for action."}
Binance-golang 2024/10/23 14:14:42 response status code: 401
2024/10/23 14:14:42 Error fetching account balance: <APIError> code=-2015, msg=Invalid API-key, IP, or permissions for action.

I checked all permissions, there're same than production mode
I checked the headers:

http.Header{"X-Mbx-Apikey":[]string{

Is present with the good value

Is this a bug or am i missing something ?

Thanks for your help 🙏

Here's the link i found related to the issue:

@thdelmas
Copy link
Author

My bad for not reading enough documentation, this issue can be closed

For the next ones having the same issue:

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

1 participant