I get: msg: 'Invalid API-key, IP, or permissions for action.'.
I tried using both test and production APY_KEY. Maybe the API_KEY is different than SPOT API_KEY?
==UPDATE==
I forgot to add my IP to IP access restrictions on Binance site.
A last question about this topic. When I listen on “message” event for WebSocket I get a stream response but I can’t get the correct data. How to do this?
I found the solution. Once I get the response as stream I use KSON.parse(response.toString()) to get the json format of the response. Now the code works fine. Many thanks.