[R-SIG-Finance] IBrokers - reqOpenOrders and placeOrder not working anymore

G See gsee000 at gmail.com
Thu May 17 22:27:04 CEST 2012


Checkout the code with svn and build it yourself.  The current version is 0.9-7

On linux or mac, you'd do something like this

    svn checkout http://ibrokers.googlecode.com/svn/trunk/ ibrokers

That will checkout the code into a directory called ibrokers.  Then you can

    R --vanilla CMD INSTALL --build ibrokers

HTH,
Garrett

On Thu, May 17, 2012 at 3:15 PM, omerle <omerle at laposte.net> wrote:
> Hi,
>
> I just dowload IBrokers from http://code.google.com/p/ibrokers/downloads/detail?
> name=IBrokers_0.9-0.tar.gz&can=2&q=
> and install IBrokers with
> install.packages("C:/IBrokers_0.9-0).tar.gz", repos = NULL, type="source")
> but reqOpenOrders and placeOrders is not working anyway !
>
> Any other advice ?
>
> Thanks
>
>
> Try updating to the newest googlecode version. A change in IB response.
>
> Jeff
>
> Jeffrey Ryan | Founder | jeffrey.ryan at lemnica.com
>
> www.lemnica.com
>
> On May 11, 2012, at 5:26 PM, G See  wrote:
>
>> FWIW, I have the opposite problem. When connected with a live account, I see:
>>
>>> tws <- twsConnect()
>>> tws$nextValidId
>> [1] "1"
>>
>> But, with the demo account, the account number is being stored in nextValidId:
>>
>>> tws <- twsConnect()
>>> tws$nextValidId
>> [1] "DU123456"
>>
>> # But, I changed the actual account number
>>
>> Best,
>> Garrett
>>
>> On Fri, May 11, 2012 at 8:03 AM, omerle  wrote:
>>> Dear All,
>>>
>>> First thanks to Jeff Ryan for the very interesting IBrokers package.
>>>
>>> After looking for answers on Rseek without success, your are my last hope !
>>>
>>> Here is my problem :
>>>
>>> placeOrder & reqOpenOrders don't work on my trading accout but its working on my demo
>>> account !
>>>
>>> For instance when I do
>>>
>>> reqOpenOrders(twsconn) or IBrokers:::.reqOpenOrders(twsconn)
>>> => I get only the error message 53 (OPEN_ORDER_END) even if I have open order in my
>>> console.
>>>
>>> OR
>>>
>>> placeOrder
>>> => it doesnt do anything
>>>
>>> => But I can get TWS real time quotes or accountUpdate
>>>
>>> (I think it was ok before at least for placeOrder)
>>>
>>> I set the same parameter in configurationAPIs for both my demo account and trading
> account
>>> but trading account is still not working.
>>>
>>> Do you have any idea what I did wrong and how I can use both placeOrder and
> reqOpenOrders
>>> ?
>>>
>>>
>>>
>>> Many Thanks,
>>>
>>> Olivier Merle
>>>
>>> Une messagerie gratuite, garantie à vie et des services en plus, ça vous tente ?
>>> Je crée ma boîte mail www.laposte.net
>>>
>>> _______________________________________________
>>> R-SIG-Finance at r-project.org mailing list
>>> https://stat.ethz.ch/mailman/listinfo/r-sig-finance
>>> -- Subscriber-posting only. If you want to post, subscribe first.
>>> -- Also note that this is not the r-help list where general R questions should go.
>> _______________________________________________
>> R-SIG-Finance at r-project.org mailing list
>> https://stat.ethz.ch/mailman/listinfo/r-sig-finance
>> -- Subscriber-posting only. If you want to post, subscribe first.
>> -- Also note that this is not the r-help list where general R questions should go.
>
>
> Une messagerie gratuite, garantie à vie et des services en plus, ça vous tente ?
> Je crée ma boîte mail www.laposte.net
>
> _______________________________________________
> R-SIG-Finance at r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-sig-finance
> -- Subscriber-posting only. If you want to post, subscribe first.
> -- Also note that this is not the r-help list where general R questions should go.



More information about the R-SIG-Finance mailing list