Note: I have gone though a similar issue mentioned here and it didn’t solve my problem, so I had to post my problem here.
I have also checked if my api works by cross checking with "ccxt library " and it works.
The code is below
from binance.client import Client
test_api_key: ‘Your API key’
test_secret_key: ‘Your secret key’
client = Client(test_api_key, test_secret_key, testnet=True)
info = client.get_account()
The above is a very simple code but still it gives me the error :-
APIError(code=-2015): Invalid API-key, IP, or permissions for action.