[R-SIG-Finance] placeOrder
Stephen Choularton
stephen at organicfoodmarkets.com.au
Wed Dec 15 06:22:31 CET 2010
Hi
I don't want to stray into an IB issues so I already trawled their site
and made sure I have ticked bypass API precautions so I', hoping this is
a IBrokers issues. Sorry if it is not.
When I try to do this:
> tws <- twsConnect()
> tws
<twsConnection,1 @ 20101215 15:46:12 Eastern Standard Time (New South
Wales), nextId=>
> id<- reqIds(tws)
> x <-placeOrder(tws, twsEquity('CBA','SNFE','AUD'), twsOrder(id,
'BUY', '100', 'MKT'))
>
>
> closeAllConnections()
> x
NULL
>
I don't get an order through to the TWS but I don't get any information
why not. I can get prices, etc no problems.
I even tried this, as I have seen it in Jeffs code:
tws
<twsConnection,1 @ 20101215 15:56:26 Eastern Standard Time (New South
Wales), nextId=56>
> id<- reqIds(tws)
> IBrokers:::.placeOrder(tws, twsEquity('CBA','SNFE','AUD'),
twsOrder(55, 'BUY', '50', 'MKT'))
>
>
> closeAllConnections()
but to no avail.
--
Stephen Choularton Ph.D., FIoD
More information about the R-SIG-Finance
mailing list