You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
reqHistoricalData when called without an endDateTime passed grabs the current time from reqCurrentTime and then passes it back to IB as the endDateTime with the GMT timezone.
This will not work if the IBGateway is in a non GMT timezone specifically EDT.
library(IBrokers)
IBConn=ibgConnect(1234)
Contract2get= twsCurrency("EUR",currency="JPY")
##Does not worktest= reqHistoricalData(IBConn,Contract=Contract2get,whatToShow='BID_ASK',
useRTH="0",barSize='1 min',duration="1 D")
##Works note my IBG is in ESTtest= reqHistoricalData(IBConn,Contract=Contract2get,whatToShow='BID_ASK',
useRTH="0",barSize='1 min',duration="1 D",
endDateTime= paste0(gsub("-","",reqCurrentTime(IBConn))," EST"))
The text was updated successfully, but these errors were encountered:
I assume "Does not work" means there's an error; I can't replicate any error. Can you please provide the error message and the output from running traceback() after the error is thrown? Also, please provide the output from sessionInfo() and Sys.timezone(), and TWS version you're running.
reqHistoricalData
when called without anendDateTime
passed grabs the current time fromreqCurrentTime
and then passes it back to IB as theendDateTime
with the GMT timezone.This will not work if the IBGateway is in a non GMT timezone specifically EDT.
The text was updated successfully, but these errors were encountered: