Detect 'market open status' programmatically

Rekha
Is there a way to detect the market open/closed status through kite API using python? I want to automate the script to run only when market is open.

thanks in advance
  • Imran
    Hii @Rekha
    When we call quotes via API, we get 'last_trade_time' in its response along with other feeds.
    If it contains time near to current time then you may conclude that the market is open.

    Refer this
Sign In or Register to comment.