﻿<?xml version='1.0' encoding='UTF-8'?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/"><channel><title>RightEdge Forums / Programming and Software Development / Programming Questions  / IB Portfolio and IB Pending Orders / 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:55:03 GMT</lastBuildDate><ttl>20</ttl><item><title>RE: IB Portfolio and IB Pending Orders</title><link>http://www.rightedgesystems.com/forums/Topic8653-18-1.aspx</link><description>Yes, there's a mapping between the two.  If you're looking at the RightEdge TWS plugin source code, the variable is a Dictionary named openOrders.&lt;br&gt;&lt;br&gt;[quote][b]smersh (6/23/2009)[/b][hr]Bill, I am curious to know how once RE has recovered its position and order state from OpenPositions.xml, RE then matches up and "Broker Side" order IDs.&lt;br&gt;&lt;br&gt;By this I mean, what handles (IDs) does it use to manage those orders at the broker. Is there another dictionary mapping RE IDs to Broker IDs or is there a mapping function that can always generate a Broker ID from an RE ID?&lt;br&gt;&lt;br&gt;[/quote]</description><pubDate>Wed, 24 Jun 2009 07:53:33 GMT</pubDate><dc:creator>billb</dc:creator></item><item><title>RE: IB Portfolio and IB Pending Orders</title><link>http://www.rightedgesystems.com/forums/Topic8653-18-1.aspx</link><description>Bill, I am curious to know how once RE has recovered its position and order state from OpenPositions.xml, RE then matches up and "Broker Side" order IDs.&lt;br&gt;&lt;br&gt;By this I mean, what handles (IDs) does it use to manage those orders at the broker. Is there another dictionary mapping RE IDs to Broker IDs or is there a mapping function that can always generate a Broker ID from an RE ID?&lt;br&gt;&lt;br&gt;</description><pubDate>Tue, 23 Jun 2009 23:23:44 GMT</pubDate><dc:creator>smersh</dc:creator></item><item><title>RE: IB Portfolio and IB Pending Orders</title><link>http://www.rightedgesystems.com/forums/Topic8653-18-1.aspx</link><description>Thank you.&lt;br&gt;Hali</description><pubDate>Mon, 01 Jun 2009 09:11:16 GMT</pubDate><dc:creator>RLHali</dc:creator></item><item><title>RE: IB Portfolio and IB Pending Orders</title><link>http://www.rightedgesystems.com/forums/Topic8653-18-1.aspx</link><description>This isn't really something we support.  And if you're referring to open positions/orders that are currently in play while the system is running, those are not accessible from a file.  There is a file called OpenPositions.xml that we persist between sessions.  You could parse this yourself to pick up information, but OpenPositions.xml is processed by RightEdge before Startup() is called.&lt;br&gt;&lt;br&gt;[quote][b]RLHali (5/31/2009)[/b][hr]How do I can 'read' from RE program the IB's account live pending orders and live portfolio?&lt;br&gt;I have test the following in the Startup() method, but that write nothing in the file, although I have cca 15 pending IB positions and RE with Live System works properly. :ermm:&lt;br&gt;public override void Startup()&lt;br&gt;	{&lt;br&gt;		// Perform initialization here.&lt;br&gt;		String filename;&lt;br&gt;		String s="";&lt;br&gt;		filename="c:/Temp/OpenPos.csv";&lt;br&gt;		using (StreamWriter sw = new StreamWriter(filename)) {&lt;br&gt;			sw.WriteLine("Size;EntryPrice;Symbol");&lt;br&gt;			foreach (Position oo in this.PositionManager.GetOpenPositions()) {&lt;br&gt;				s=""+oo.CurrentSize+";"+oo.EntryPrice+";"+oo.Symbol;&lt;br&gt;			    sw.WriteLine(s);&lt;br&gt;			}&lt;br&gt;			sw.WriteLine("All done!");&lt;br&gt;&lt;br&gt;		}&lt;br&gt;&lt;br&gt;	}&lt;br&gt;Can everybody post a sample code with the solution.&lt;br&gt;Thanks a lot.&lt;br&gt;Hali&lt;br&gt;[/quote]</description><pubDate>Mon, 01 Jun 2009 07:38:28 GMT</pubDate><dc:creator>billb</dc:creator></item><item><title>IB Portfolio and IB Pending Orders</title><link>http://www.rightedgesystems.com/forums/Topic8653-18-1.aspx</link><description>How do I can 'read' from RE program the IB's account live pending orders and live portfolio?&lt;br&gt;I have test the following in the Startup() method, but that write nothing in the file, although I have cca 15 pending IB positions and RE with Live System works properly. :ermm:&lt;br&gt;public override void Startup()&lt;br&gt;	{&lt;br&gt;		// Perform initialization here.&lt;br&gt;		String filename;&lt;br&gt;		String s="";&lt;br&gt;		filename="c:/Temp/OpenPos.csv";&lt;br&gt;		using (StreamWriter sw = new StreamWriter(filename)) {&lt;br&gt;			sw.WriteLine("Size;EntryPrice;Symbol");&lt;br&gt;			foreach (Position oo in this.PositionManager.GetOpenPositions()) {&lt;br&gt;				s=""+oo.CurrentSize+";"+oo.EntryPrice+";"+oo.Symbol;&lt;br&gt;			    sw.WriteLine(s);&lt;br&gt;			}&lt;br&gt;			sw.WriteLine("All done!");&lt;br&gt;&lt;br&gt;		}&lt;br&gt;&lt;br&gt;	}&lt;br&gt;Can everybody post a sample code with the solution.&lt;br&gt;Thanks a lot.&lt;br&gt;Hali&lt;br&gt;</description><pubDate>Sun, 31 May 2009 18:30:03 GMT</pubDate><dc:creator>RLHali</dc:creator></item></channel></rss>
