0

I am trying to connect to my Binance account using Python and a Raspberry Pi. I keep having this issue

My code is realy simple

from binance import Client
apiKey = ''
apiSecret = ''

client = Client.(apiKey, apiSecret)
client.get_account()

The client.API_URL is 'https://api.binance.com/api' if usefull

When I try this without the IP whitelist on Binance it works, but when I activate the IP whitelist it shows me this error. I already checked multiple time if my IP was realy correct and I already changed IP, I also tried to create another API key and always the same problem ...

Does anyone have an idea about this?

Brian Tompsett - 汤莱恩
  • 5,753
  • 72
  • 57
  • 129
Nidesbois
  • 1
  • 1

1 Answers1

0

Ok I found the problem. I was using my private IP (the one showing when you make ifconfig command) instead of public IP address

Nidesbois
  • 1
  • 1