if (FALSE) {
tws <- twsConnect()
reqAccountUpdates(tws) # this will return a AccountUpdate object
.reqAccountUpdates(tws) # this will return immediately
.reqAccountUpdates(tws, FALSE) # cancel the request
cancelAccountUpdates(tws) # the same
twsDisconnect(tes)
}
Run the code above in your browser using DataLab