How to detect market open or close using kite api?

saket2095
I have implemented kite api in my app and want to detect before trade whether the market is open or not for trade?? can anyone help me to do it??
  • rishiswethan
    Don't rely try on API for things like this. This API doesn't provide an option like this anyway. Use timestamps like below

    # Market opens at ---------------------------> 09:15
    # MIS auto square off at --------------------> 15:20
    # Market closes at --------------------------> 15:30
  • saket2095
    okay thank you so much @rishiswethan is it applicable for all the trading markets right?
  • rishiswethan
    Not for commodity, just google it, for what you are trading. You can also store a holiday list for your local program to stop trades on that day
This discussion has been closed.