I want to use Binance_Futures_python API to get the balance of my account.
Here's my code:
import binance_f
fclient = binance_f.RequestClient(api_key='<my_api_key>', secret_key='<my_secret_key>', url='https://fapi.binance.com')
result = fclient.get_balance()
And the error message of the above code is
Traceback (most recent call last):
File "/Users/brian.lee/my_gitlab/binance_api_test/test_error.py", line 4, in <module>
result = fclient.get_balance()
File "/usr/local/lib/python3.9/site-packages/binance_futures-1.1.0-py3.9.egg/binance_f/requestclient.py", line 328, in get_balance
File "/usr/local/lib/python3.9/site-packages/binance_futures-1.1.0-py3.9.egg/binance_f/impl/restapiinvoker.py", line 37, in call_sync
File "/usr/local/lib/python3.9/site-packages/binance_futures-1.1.0-py3.9.egg/binance_f/impl/restapiinvoker.py", line 21, in check_response
binance_f.exception.binanceapiexception.BinanceApiException: ('ExecuteError', '[Executing] -2015: Invalid API-key, IP, or permissions for action, request ip: 111.93.84.192')
Here's the API management page of my Binance account.
I really don't understand why my code fails.
I've opened as many permissions as possible for the API key.
I use a non-US version of Binance (https://www.binance.com/).
I've read this post, but the answers in that post don't work.
Does anyone know the reason of the error?