Hey,
I want to get info on User Data for my Spot Account in form of a stream. If i use twm.start_user_socket i get an error message that my API-key format is invalid (APIError(code=-2014): API-key format invalid). But every other command through that same API works as intended, for example asset balance and also a TWM Stream for BTCBUSD.
This is on a TestNet Account, i didn't test it on a real account.
Is there any way to fix this or is this a TestNet issue?
Expected behavior
TWM Stream for Spot Account User Data will start working
Environment (please complete the following information):
Python version: 3.9
OS: Windows 10
python-binance version v1.0.16
Logs or Additional context
Task exception was never retrieved
future: <Task finished name='Task-5' coro=<ThreadedApiManager.start_listener() done, defined at . . .
.
.
.
binance.exceptions.BinanceAPIException: APIError(code=-2014): API-key format invalid.
Hey, I want to get info on User Data for my Spot Account in form of a stream. If i use twm.start_user_socket i get an error message that my API-key format is invalid (APIError(code=-2014): API-key format invalid). But every other command through that same API works as intended, for example asset balance and also a TWM Stream for BTCBUSD. This is on a TestNet Account, i didn't test it on a real account.
Is there any way to fix this or is this a TestNet issue?
To Reproduce api_key = os.environ.get('binance_api') api_secret = os.environ.get('binance_secret') client = Client(api_key, api_secret, testnet=True) twm = ThreadedWebsocketManager() def main():
Expected behavior TWM Stream for Spot Account User Data will start working
Environment (please complete the following information):
Logs or Additional context Task exception was never retrieved future: <Task finished name='Task-5' coro=<ThreadedApiManager.start_listener() done, defined at . . . . . . binance.exceptions.BinanceAPIException: APIError(code=-2014): API-key format invalid.