Intermediate · 30 min · 4 steps

Finding the next day the stock market is open

Tarun Malhotra, Investment Settlement Engineer at WealthPulse

Tarun Malhotra is an engineer at WealthPulse, an app where about 1.8 million people invest in mutual funds. A mutual fund is a pool of money from many people, invested together in shares or bonds. A SIP (Systematic Investment Plan) is a fixed amount that is invested automatically on a chosen date every month.

The question

How do we write a Python loop that moves a weekend or holiday SIP date forward to the next day the stock exchange is open?

  • Date manipulation
  • Calendar lookups
  • Regulatory invariants
  • Settlement business days

The rest of this case study is locked

The data, every step with its code and result, and the final answer open with a pass. A few case studies stay free so you can see how they work.