This used to work flawlessly using the Fundamental Data method and "ReportSnapshot" report type (https://interactivebrokers.github.io/tws-api/fundamentals.html). Granted you did have to parse some XML. However, IB recently changed their data provider and this is now failing for > 50% of my tracked equities with the error - "430: We are sorry, but fundamentals data for the security specified is not available." I called them earlier today and they directed me to the "Mark Price" Tick Type (#37 https://interactivebrokers.github.io/tws-api/tick_types.html). But that just seems to be the Last Price (or close to) and not the Market Cap. Anyone have insight on how to fetch Market Cap reliably from the TWS API? This is a pretty basic data point that should be somewhere.
Wait till the new year is underway before contacting their support. I've had horrendous support in the latter half of December.
I was able to get an API support guy in about 15 minutes yesterday. Is it the quality or the availability you've had issues with?
** Resolved: ** Tick Type #47 does the trick now: https://interactivebrokers.github.io/tws-api/tick_types.html
I know this is an old thread but it looks like tick 47 is no longer available. Anyone migrate to IBApi.EClient.reqWshMetaData? TWS API v9.72+: Fundamental Data (interactivebrokers.github.io)