Skip to content

IBrokers reqOpenOrders

4 messages · Sash Ali, Me

Me
#
I am guessing, but this error looks like it is related to the actual
connection you are trying to establish with the TWS. 

I have been using reqOpenOrders() without problems for a
while now.

Cheers

Soren



On Mon, 13 Feb 2012 12:27:47 +0000
Sash Ali <sashinali79 at hotmail.com> wrote:

            
Me
#
Sasha

type 'reqOpenOrders' at the R prompt and you will see that the
function enters an infinite 'while (TRUE)' loop where it reads the
responses from the TWS. This uses the default eWrapper object, which
will print the TWS messages using a 'cat' command. If you want to
do some proper processing of the TWS messages, you at least need to:

1. run the while loop only for a finite amount of time, i.e. 1 minute
or so

2. define your own eWrapper object that is able to 'do something' with
the open_order events coming back from the TWS, i.e. 'cat' them to a
file. The 'cat' command accepts a filename as argument, if I am not
mistaken.

S.


On Mon, 13 Feb 2012 17:59:55 +0000
Sash Ali <sashinali79 at hotmail.com> wrote: