Skip to content

Commit

Permalink
Merge pull request #52 from UditGupta10/patch-2
Browse files Browse the repository at this point in the history
Update live.py
  • Loading branch information
sevakram authored Jul 9, 2023
2 parents 3bb539f + 453ac7b commit c6a6427
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions jugaad_data/nse/live.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ class NSELive:
"live_index": "/equity-stockIndices",
"index_option_chain": "/option-chain-indices",
"pre_open_market": "/market-data-pre-open",
"holiday_list": "/holiday-master?type=trading"
}

def __init__(self):
Expand Down Expand Up @@ -108,3 +109,7 @@ def live_fno(self):
def pre_open_market(self, key="NIFTY"):
data = {"key": key}
return self.get("pre_open_market", data)

@live_cache
def holiday_list(self):
return self.get("holiday_list", {})

0 comments on commit c6a6427

Please sign in to comment.