-
-
Notifications
You must be signed in to change notification settings - Fork 78
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
Verify all possible parameters are sent in POST body, keeping querystring usage minimal #12
Comments
Which endpoint caused this error? |
I think in this instance it was placing and moving limit orders (quite a few requests saw errors at once). Not quite sure yet why it only started happening recently, but in the api telegram group I saw a number of times that others saw this when putting unnecessary params into the URL instead of the POST request body. I think params like price and qty can all go in the body, if I'm remembering right. |
I tried replicating this bug by calling both https://github.com/tiagosiebler/bybit-api/blob/master/lib/request.js#L70-L77 Initially, I wanted to fix this issue before sending you a PR to bump the version so that you could cut a release, but now I think a release should be made with the API endpoints I added while this is being investigated further. I'll send that PR shortly. |
I agree & thank you for spending time on this! I'll get more logs the next time I see this. Oddly enough, I think this only seems to happen when I trigger order events via a slack connector I have, and only sometimes. I haven't seen other order sources have an impact so it may just be a bad parameter. |
Pretty sure order ID etc shouldn't be in query string, but instead as post body.
The text was updated successfully, but these errors were encountered: