TWS API Close Date for Mutual Funds

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.
 

Attachments

  • 2023-06-04_15-24-36.png
    2023-06-04_15-24-36.png
    4.4 KB · Views: 11
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.
 
Back
Top