API Support Forum
OEC API > API Support > SourcePreviousPosition Ticket #
Author Topic: SourcePreviousPosition Ticket #
(8 messages, Page 1 of 1)
Moderators: VPfau
PArnoldson
Posts: 154
Joined: Oct 03, 2007


Posted: Feb 05, 2008 @ 12:57 PM             Msg. 1 of 8
I have a position which has a fill but the fill->SourceFill is NULL, and the SourcePreviousPosition has info, but I am looking for the Ticket # for this order, where can I find it?
SergeK
-Developer-
Posts: 475
Joined: Jan 26, 2007


Posted: Feb 05, 2008 @ 02:55 PM             Msg. 2 of 8
OEC API provides orders/fills for current session only. You can keep historical information in your software or use reports.
PArnoldson
Posts: 154
Joined: Oct 03, 2007


Posted: Feb 05, 2008 @ 03:17 PM             Msg. 3 of 8
Ok, I don't think you understand my dilemma. I am looking at the OCO orders and in the 'OrderList' one of them has a "Held by #522704". This is the ticket number of the filled order that holds this conditional order. I am looking in the positions for this ticket number 522704, and you say I can't have it. I don't think so, I need to associate these orders together.

-I can't save this info in my software and keep track of it myself, because If I did, how would I be able to associate it to any particular fill part of a position when I start my program up after that session I placed that order.

Please advise.
SergeK
-Developer-
Posts: 475
Joined: Jan 26, 2007


Posted: Feb 05, 2008 @ 04:13 PM             Msg. 4 of 8
I don't quite understand what are you trying to achive.

as I see, account PArnoldson/API000143 has only previous positions and no fills in the current session.

Also there is no order 522704 in API system.

OEC API does not provide order/fill information for previous sessions, so you will not be able to match what orders/fills created yesterday position.
PArnoldson
Posts: 154
Joined: Oct 03, 2007


Posted: Feb 05, 2008 @ 04:39 PM             Msg. 5 of 8
I just made up that order #. The order if you want is in that previous position Order number 57207. I also have a limit order #57209 and a stop order #57208 both of these are held by the previous position #57207. The only reason I know this orders number is from my two orders that have in them the "Held by #57207" comment. When I try to locate this order in the positions I don't know where to look, because The positions don't have Order Ticket Numbers to compare to.
Edited by PArnoldson on Feb 5, 2008 at 04:40 PM
Edited by PArnoldson on Feb 5, 2008 at 04:52 PM
SergeK
-Developer-
Posts: 475
Joined: Jan 26, 2007


Posted: Feb 05, 2008 @ 05:38 PM             Msg. 6 of 8
Since the order was completed in previous session, OEC API does not have access to it.
PArnoldson
Posts: 154
Joined: Oct 03, 2007


Posted: Feb 05, 2008 @ 05:44 PM             Msg. 7 of 8
ok if so, I think this is a bug/ or should be treated as a bug. Where could I post a suggestion for this. I realy think that if I have an order number when placing the order and it IS reveranced by other limit and stop orders that the previous orders needs their Order number to be associated with them through out the life of that order previous session or not.
SergeK
-Developer-
Posts: 475
Joined: Jan 26, 2007


Posted: Feb 06, 2008 @ 10:13 AM             Msg. 8 of 8
That is a limitation of our current architecture and we are not planning to change it in the nearest future.