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

See original GitHub issue
ETHUSDT has gained 2.025% in the last 30 seconds, calculating volume in USDT
Max movement 2.02% by ETHUSDT from 193.5900 to 197.5100
Preparing to buy 0.07595 ETHUSDT
Traceback (most recent call last):
  File "C:\PYPYPY\Binance-volatility-trading-bot\Binance Detect Moonings.py", line 396, in <module>
    orders, last_price, volume = buy()
  File "C:\PYPYPY\Binance-volatility-trading-bot\Binance Detect Moonings.py", line 168, in buy
    test_order = client.create_test_order(symbol=coin, side='BUY', type='MARKET', quantity=volume[coin])
  File "C:\PYPYPY\venv\lib\site-packages\binance\client.py", line 1578, in create_test_order
    return self._post('order/test', True, data=params)
  File "C:\PYPYPY\venv\lib\site-packages\binance\client.py", line 240, in _post
    return self._request_api('post', path, signed, version, **kwargs)
  File "C:\PYPYPY\venv\lib\site-packages\binance\client.py", line 202, in _request_api
    return self._request(method, uri, signed, **kwargs)
  File "C:\PYPYPY\venv\lib\site-packages\binance\client.py", line 197, in _request
    return self._handle_response()
  File "C:\PYPYPY\venv\lib\site-packages\binance\client.py", line 230, in _handle_response
    raise BinanceAPIException(self.response)
binance.exceptions.BinanceAPIException: APIError(code=-1022): Signature for this request is not valid.

Process finished with exit code 1

Default configuration I checked my access_key and secret_key.

I tried in creds.yml

access_key: "my_digits_and_numbers" secret_key: "my_digits_and_numbers" and

access_key: my_digits_and_numbers secret_key: my_digits_and_numbers

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:5

github_iconTop GitHub Comments

2reactions
gabtech722commented, May 15, 2021

As shogunman has noted, using single quotes works just fine.

1reaction
ShogunMancommented, May 15, 2021

What if you use ’ ’ ?

Read more comments on GitHub >

github_iconTop Results From Across the Web

FAQ: Signature for this request is not valid. - API
For new users to API, one of the most common questions is how to work out the signature. The error code and message...
Read more >
Python binance APIError(code=-1022): Signature for this ...
However I am getting the error APIError(code=-1022): Signature for this request is not valid. After searching on google, I see no relevant ...
Read more >
Binance API Error Code: "code": -1022, "msg": "Signature for ...
I use HTTP request from Integromat, but I always get the following error message: "code": -1022, "msg": "Signature for this request is not...
Read more >
APIError(code=-1022): Signature for this request is not valid ...
If I send a string of say "4000" then I also get the Signature invalid error back from the Binance API.
Read more >
APIError(code=-1022): Signature for this request is not valid.
Describe the bug. Hi, after installing python-binance 0.7.5 and running the example code, the client.create_test_order does not work and ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found