HelpPls
HelpPls

Reputation: 51

binance.exceptions.BinanceAPIException: APIError(code=-1022): Signature for this request is not valid

I am having issues accessing my Binance account information via API in Python. It always gives the APIError Exception but I am able to ping the exchange and get candlestick data successfully. I read through the API documentation and made sure that the API key is valid and I don't think I am missing anything.

binance_client = BinanceClient(api_key=api_key, api_secret=api_secret) print(binance_client.get_account(recvWindow=60000000))

Upvotes: 1

Views: 6654

Answers (2)

Ondřej Vitík
Ondřej Vitík

Reputation: 1

maximum value for recvWindow is 60000.

Upvotes: 0

thirstygerry
thirstygerry

Reputation: 61

If someone still needs it, I created an example python script that returns your balances. It includes a valid signature. https://github.com/thirstygerry/binance-python

Upvotes: 3

Related Questions