Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Realtime feed restart after gateway reset #20

Open
richard987 opened this issue Sep 27, 2019 · 1 comment
Open

Realtime feed restart after gateway reset #20

richard987 opened this issue Sep 27, 2019 · 1 comment

Comments

@richard987
Copy link

Hi Josh,

I have been enjoying using IBrokers. However I am having one issue: I’m using the IBController (github) to run IB gateway version 972. Sometimes the internet will drop out and then I will get reconnected from the gateway to IB with no issues. However my live data feed (eg EURAUD) using IBrokers in R which runs continuously will not restart and I have to manually restart my script. Is there a way to fix this so that the R script will stop the feed so that it can restart successfully?

Also – could you point me to an explanation of what blocking=TRUE does? Should I be setting this to false?

Thanks and regards,

Richard

@richard987
Copy link
Author

My script uses the following realtime feed:
fh <- file('E:\live\euraud\euraud.dat',open='a')
contract<-twsCASH(symbol="EUR",exch="IDEALPRO", currency="AUD")
reqRealTimeBars(tws, contract, whatToShow="BID", file=fh, useRTH = FALSE,verbose=TRUE)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant