-
Notifications
You must be signed in to change notification settings - Fork 2.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
The AsyncClient.futures_place_batch_order provide an "1022 INVALID_SIGNATURE" error #1099
Comments
I have exacty the same issue. |
this way it doesn't give this error:
|
I'm getting an error "Invalid symbol" with BTCBUSD_PERP |
futures_place_batch_order() worked for me |
tested by 1.0.16 Maybe because the difference between request and aiohttp |
I got the same error on AsyncClient with futures_place_batch_order |
Facing the same issue. Has anyone found a workaround? The issue comes when using AsyncClient |
Okay, because aiohttp is encoding the URL, and due to the changes in params because of the encoding, the signature is getting mismatched. To overcome this, I wrote a working code in Async by disabling the aiohttp encoding.
|
This is working code but my interpretation towards this error is wrong. The reason we getting the signature error is because of params field. When I used data field the error got fixed. |
Can you show a working example. I think this error is due to double encoding happening, first in the |
Describe the bug
The AsyncClient.futures_place_batch_order provide an "1022 INVALID_SIGNATURE" error
To Reproduce
Expected behavior
A working order without signature error
Environment (please complete the following information):
python3.7 / python3.9
debian 10 / Windows 10
python-binance tested on all major version from 1.0.0
New API keys with with spot and future enable just to be sure
Logs or Additional context
Add any other context about the problem here.
The text was updated successfully, but these errors were encountered: