﻿<?xml version='1.0' encoding='UTF-8'?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/"><channel><title>RightEdge Forums / General / General Discussion  / RE Doesn't handle Broker Disconnection / Latest Posts</title><generator>InstantForum.NET v4.1.4</generator><description>RightEdge Forums</description><link>http://www.rightedgesystems.com/forums/</link><webMaster>rightedge@yyesoftware.com</webMaster><lastBuildDate>Wed, 08 Feb 2012 15:41:01 GMT</lastBuildDate><ttl>20</ttl><item><title>RE: RE Doesn't handle Broker Disconnection</title><link>http://www.rightedgesystems.com/forums/Topic11007-7-1.aspx</link><description>excellent.  I know from my investigations that being able to recover gracefully from a broker disconnect is a highly sought after feature.  &lt;br&gt;&lt;br&gt;I understand the elegant solution will mean adding plumbing in RE to match the broker data with RE state.  If I may suggest; if we can get the ability to get the current account status/open position info from the plug-in it would be a great first step; we could hack a workaround in the meantime.  &lt;br&gt;&lt;br&gt;I too am getting quite a RE/C# project backlog; but let me know how distant you think your interface update will be.  This is important enough that I'll probably write my own IB plugin with the library if your target is too far off.  Haven't looked into it yet.</description><pubDate>Tue, 27 Jul 2010 17:09:35 GMT</pubDate><dc:creator>DTrader</dc:creator></item><item><title>RE: RE Doesn't handle Broker Disconnection</title><link>http://www.rightedgesystems.com/forums/Topic11007-7-1.aspx</link><description>If you take a look at the source code for the TWS plugin you'll see we're already using the DinosaurTech library.  We're quite thankful for it, before it came around we were using ActiveX which didn't work very well (especially problematic were versioning issues).&lt;br&gt;&lt;br&gt;We are planning on improving broker order synching in the next version of RightEdge.  It's not just a matter of updating the plugins, we have to update the interfaces and RightEdge itself to support doing this better.&lt;br&gt;&lt;br&gt;Thanks,&lt;br&gt;Daniel</description><pubDate>Fri, 16 Jul 2010 23:29:33 GMT</pubDate><dc:creator>dplaisted</dc:creator></item><item><title>RE: RE Doesn't handle Broker Disconnection</title><link>http://www.rightedgesystems.com/forums/Topic11007-7-1.aspx</link><description>are you at RE aware of this C# open source for the IB api?  It might help speed things up for you.  &lt;br&gt;&lt;br&gt;BTW, this is an important issue, and one few platforms handle well.&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;http://www.dinosaurtech.com/utilities/&lt;br&gt;&lt;br&gt;&lt;br&gt;Interactive Brokers provides a great API for programmatic trading, but they do not offer a native C# version. I have ported their java socket interface to C#, and am maintaining it as IB introduces new features. I have also incorporated inline documentation into the library for reference purposes.&lt;br&gt;&lt;br&gt;    * Version 9.6.4.16 Library – July 14, 2010 – Corresponds to IB API 9.64&lt;br&gt;&lt;br&gt;Source Code&lt;br&gt;Readonly subversion access is provided to http://svn.karlschulze.com:8080/svn/ibapi/. Use the username “svnreadonly” and the password “Re@dOnly23″.</description><pubDate>Thu, 15 Jul 2010 13:13:17 GMT</pubDate><dc:creator>DTrader</dc:creator></item><item><title>RE: RE Doesn't handle Broker Disconnection</title><link>http://www.rightedgesystems.com/forums/Topic11007-7-1.aspx</link><description>I've exactly same problem. It would be great to have ability to ask IB for open orders!</description><pubDate>Wed, 14 Jul 2010 03:48:44 GMT</pubDate><dc:creator>xzajic2</dc:creator></item><item><title>RE: RE Doesn't handle Broker Disconnection</title><link>http://www.rightedgesystems.com/forums/Topic11007-7-1.aspx</link><description>We don't have any ability to query what's currently open in IB at this time.  It is something we plan on adding.&lt;br&gt;&lt;br&gt;[quote][b]lksf (3/8/2010)[/b][hr]Could you resync with IB orders?[/quote]</description><pubDate>Mon, 08 Mar 2010 09:03:20 GMT</pubDate><dc:creator>billb</dc:creator></item><item><title>RE: RE Doesn't handle Broker Disconnection</title><link>http://www.rightedgesystems.com/forums/Topic11007-7-1.aspx</link><description>Could you resync with IB orders?</description><pubDate>Mon, 08 Mar 2010 00:50:06 GMT</pubDate><dc:creator>lksf</dc:creator></item><item><title>RE: RE Doesn't handle Broker Disconnection</title><link>http://www.rightedgesystems.com/forums/Topic11007-7-1.aspx</link><description>I would subscribe to ConnectionStateChanged and in a disconnect state, you may want to shut the system down until you can sort it out.  I don't know what we can do to prevent connection blips like that.  We're working on some items that may help connection breaks.&lt;br&gt;&lt;br&gt;[quote][b]lksf (3/2/2010)[/b][hr]Twice in the last month I had issue which I saw double orders for my positions in TWS.&lt;br&gt;I investigated this and found in the output window the following message:&lt;br&gt;&lt;br&gt;Broker disconnected: Disconnected: Error! id=-1 errorCode=1100Connectivity between IB and TWS has been lost&lt;br&gt;&lt;br&gt;right after that, at the same second, I have a "Broker reconnected" message.&lt;br&gt;&lt;br&gt;&lt;br&gt;However, it seems that this short disconnection was enough for RE to lose it's synchronization with the open orders in IB, which resulted in these orders not being canceled at the end of the bar before new orders were resubmitted, hence the cause for the double orders.&lt;br&gt;&lt;br&gt;Do you have any idea of how to avoid this situation?[/quote]</description><pubDate>Wed, 03 Mar 2010 13:01:18 GMT</pubDate><dc:creator>billb</dc:creator></item><item><title>RE Doesn't handle Broker Disconnection</title><link>http://www.rightedgesystems.com/forums/Topic11007-7-1.aspx</link><description>Twice in the last month I had issue which I saw double orders for my positions in TWS.&lt;br&gt;I investigated this and found in the output window the following message:&lt;br&gt;&lt;br&gt;Broker disconnected: Disconnected: Error! id=-1 errorCode=1100Connectivity between IB and TWS has been lost&lt;br&gt;&lt;br&gt;right after that, at the same second, I have a "Broker reconnected" message.&lt;br&gt;&lt;br&gt;&lt;br&gt;However, it seems that this short disconnection was enough for RE to lose it's synchronization with the open orders in IB, which resulted in these orders not being canceled at the end of the bar before new orders were resubmitted, hence the cause for the double orders.&lt;br&gt;&lt;br&gt;Do you have any idea of how to avoid this situation?</description><pubDate>Tue, 02 Mar 2010 14:18:36 GMT</pubDate><dc:creator>lksf</dc:creator></item></channel></rss>
