Binance Futures Testnet: API key secret invalid, or IP no permission

I’m using Unicorn Binance API on Python.

I have a problem connecting to Binance Futures Testnet with the API key and secret provided on the Binance Futures Testnet site.

When I try to connect using the API key/secret provided from the Binance Futures Testnet, it gives me an error message like this:

binance futures testnet Invalid API-key, IP, or permissions for action, request IP: …

This is very weird because the API key/secret is directly provided from the website itself.

I don’t have any problem connecting to standard Binance as well as SPOT Testnet using the API key/secret I generated from the instruction provided.

Thank you for all the answer.

Make sure that the library is connecting to the testnet URL instead of the main net.