Fetching Market Cap from Interactive Brokers TWS API

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.
 
Back
Top