nsepython icon indicating copy to clipboard operation
nsepython copied to clipboard

is_market_open bug

Open ishankgoel opened this issue 1 year ago • 0 comments

function is_market_open return true even if is holiday today. Problem is in the line: https://github.com/aeron7/nsepython/blob/6f3a7285d39e874d6b677df0286a966e1982e56f/nsepython/rahu.py#L909

This only checks for first holiday from the nse_holidays() json result and return True by checking only the first. It should be continue here to check for the next holiday date and a final return true at the end of function.

ishankgoel avatar Mar 29 '24 12:03 ishankgoel