简体   繁体   中英

Using R and IBrokers, what is the function to call to get the bid and ask prices of given stock symbol?

I have not much else to add other than the title. I simply need the name of the function.

Are you familiar with the documentation? Check pg 18.

https://cran.r-project.org/web/packages/IBrokers/IBrokers.pdf

tws <- twsConnect()
contract <- twsEquity("QQQQ","SMART","ISLAND")
reqMktData(tws, contract)

Look at pg 8 to see how to handle incoming data.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM