[R-SIG-Finance] running two reqMktData's using IBroker

Stephen Choularton stephen at organicfoodmarkets.com.au
Sun Jun 5 21:56:32 CEST 2011


Hi

If I am running reqMktData once at the prompt and once in the console. 
Can the data in eventWrapper be affected?

These are my two calls:



tws <- twsConnect(33)
tws


reqMktData(tws, twsContract("", "SPI", "FUT", "SNFE", "", "20110616", 
"0", "AUD", "","APM1","25",NULL,NULL,0),  eventWrapper=eWrapper.data(1), 
CALLBACK = MONITOR_SPI)





closeAllConnections()


and



tws <- twsConnect(25)
tws



reqMktData(tws, twsContract("", "SPI", "FUT", "SNFE", "", "20110616", 
"0", "AUD", "","APM1","25",NULL,NULL,0),  eventWrapper=eWrapper.data(1), 
CALLBACK = GET_DATA_FUTURE)




closeAllConnections()

I imagine that each process creates its own objects independently but is 
that right?

-- 
Stephen Choularton Ph.D., FIoD

<http://twitter.com/share>



More information about the R-SIG-Finance mailing list