-
-
Notifications
You must be signed in to change notification settings - Fork 35
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
Error sending buy or sell #37
Comments
This error comes when the server does not reply back or maybe it replies in different format which the library is not setup properly (bug). need to see the code to identify more. Sorry about the late reply. |
My function to send contract:
Where:
It happens aftes around 100 contracts sent |
It feels like either you need to have a pinging thread (easy) or detect lost connection and restore. About pinging: I think you can ping with Not tested as I am not on my PC |
Also check this example script about auto reconnect |
About this error. This error pops up when the library is expecting a response message(here |
Hi, thank you
|
was this the last error you got? did not it reconnect with auto_reconnect? by any chance, if you were there when the error happened. was there any issue with the binary server? I mean was it down or something |
As I don't have much experience with Binary using automated trading. I can't really tell much about long-term connectivity issues. the code for auto_reconnect came from another broker I was using for automated trading. |
Thank you The new one happens when I try send any request to binary, even with your examples just writing my token |
Can you try to ping? Make a thread that will periodically (every 10-30 seconds) ping the server. let me know if it soothes the issue. Docs for Pinging: https://binaryapi.readthedocs.io/en/latest/api/ping.html |
I am running:
And nothing, same problem |
Can you inspect the messages sent by the websocket? Also take a look at this example: |
when I try sending a buy inside a message_callback it always fails the proposal. And I see that the tick takes two seconds to appear, is there any way to be more real time? |
Tht's why I am doing it with websockets |
Hi
Me again
Now when I have sent some contracts, I get the error:
ERROR:root:**warning** 30late proposal sec(s)
This is really interesting
The text was updated successfully, but these errors were encountered: