-
Notifications
You must be signed in to change notification settings - Fork 14
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
just started getting this IOError: write: broken pipe (EPIPE) #38
Comments
It looks you are getting disconnected by TWS, probably due to pacing issues. You should check if you are getting any of these error messages:
After sending error Workarounds:
Ref: IB Release Notes If running TWS pre 10.16 you might want to consider upgrading to a current version and keep the default behavior. |
thank you so much for taking the time. this code has been working for about 3 months without fault so this behavior started 12/16/22. I checked the HELP for the TWS desktop I am using as a gateway and the build is 10.20.1f 12/13/22 I don't know how to put connectOptions="+PACEAPI" into my code. ALSO I can't figure out how to check the log files. I "thought" that the log file was given in launcher.log but now all it says
|
That's an argument of ib = Jib.connect(4002, 1, "+PACEAPI") Though, it shouldn't be necessary for TWS 10.20 if
These messages are not found in launcher.log. TWS sends them directly to your program, which should handle them properly via the callback: wrap.error(id, errorCode, errorString, advancedOrderRejectJson) Your |
thank you for the quick reply. I can confirm that Settings -> API -> "Reject messages above maximum allowed message rate vs. applying pacing." is unchecked. I have the code from your EXCELLENT example (see below) is this enough to diagnose this issue please?
REPLACED BY
Got to say that it's weird this JUST started happening. I have a raspberry pi monitoring the ISP feed and there are no problems there. |
That is the If the error messages I mentioned above don't show up in your logs then the root problem might be something different than sending too many requests too quickly. If pacing is not the issue, browsing through your logs might give some clues of what is going on. You can verify that your application indeed gets unexpectedly disconnected from TWS by checking: isopen(ib.socket) # = true when connected or by clicking on |
problem just went away this morning BUT I am certainly going to go back and do this properly using your advice. Thank you for a wonderful development environment. I can't spend more than a hour a week on this BUT in that hour your code makes a HUGE difference. I learn by example and you REALLY do a great job. Thanks and happy hols to you and yours |
Just started happening since 12/16/22 did something change in Jib.jl or IB on or near 12/15/22 which is the last day the code ran.
running latest Jib.jl updated pkg and julia latest version.
this is the call that breaks
BUT this one works properly. They both share the same ZMQ configuration code and worked fine up until 12/16/22.
The text was updated successfully, but these errors were encountered: