interactive brokers - IBrokers R - reqId returns error -
i try use following code, got stuck on reqid
. gives error: could not find function "reqid"
then tried
r <- ibrokers:::reqid(t,numid =1)
but still got error
error in get(name, envir = asnamespace(pkg), inherits = false) :
object 'reqid' not found
if changed reqid
reqids
, it's not return error. try run ibrokers:::reqfundamentaldata
line , return null
any idea how getfundamentaldata
work?
here code:
library(ibrokers) #t <- ibgconnect() - didn't work tws <- twsconnect()`enter code here` isconnected(tws) reqcurrenttime(tws) c <- twsequity("ibm") # x <- ibrokers:::reqfundamentaldata(tws,c) - line didn't work # r <- reqids(tws,numid =1) - line didn't work r <- reqids(tws,numid =1) x <- ibrokers:::reqfundamentaldata(tws,reqid = r, contract = c, reporttype = "reportfinsummary")
Comments
Post a Comment