Hi,

I am trying to code a backtest by setting a broker as IB. I noticed the 3-day settlement setting and here is the problem I have now.
1. In the initial investment, if some cash cannot be fully utilized as some rounding or stock price, is the unutilized cash appeal in self.Portfolio.Cash?
2. When I use self.Liquidate(), is the self.Portfolio.UnsettledCash appeal the number immediately?
3. Is it possible we can get the settlement date for the sale transaction?
4. How do you guys deal with this 3-day settlement?

Please advise me and thank you so much

Author