Does anyone know how I would be able to get the close date of mutual funds from the TWS API as shown in the attachment (screenshot taken from Trader Workstation)? I have tried reqMktData while monitoring for a tickString response of either 45 or 88 and also tried reqContractDetails but none of the responses contains a field with the close date.
I guess you took that screenshot when the market was closed? What you do is to download historical data for that fund, with barsize set to daily ("1 D"). The most recent data which will be sent to you is that of the last trading date, and the date format is set as a string YYYYMMDD. Beware that if you run this while the market is open you'll get an entry for the current trading day as well, so you would need to discard that.
Thank you. This gives me something to work with. Definitely will need to tweak some logic but should be doable.