nsepython 2.92__py3-none-any.whl → 2.93__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- nsepython/rahu.py +2 -2
- {nsepython-2.92.dist-info → nsepython-2.93.dist-info}/METADATA +1 -1
- nsepython-2.93.dist-info/RECORD +7 -0
- nsepython-2.92.dist-info/RECORD +0 -7
- {nsepython-2.92.dist-info → nsepython-2.93.dist-info}/LICENSE +0 -0
- {nsepython-2.92.dist-info → nsepython-2.93.dist-info}/WHEEL +0 -0
- {nsepython-2.92.dist-info → nsepython-2.93.dist-info}/top_level.txt +0 -0
nsepython/rahu.py
CHANGED
|
@@ -34,7 +34,7 @@ if(mode=='local'):
|
|
|
34
34
|
def nsefetch(payload):
|
|
35
35
|
try:
|
|
36
36
|
output = requests.get(payload,headers=headers).json()
|
|
37
|
-
print(output)
|
|
37
|
+
#print(output)
|
|
38
38
|
except ValueError:
|
|
39
39
|
s =requests.Session()
|
|
40
40
|
output = s.get("http://nseindia.com",headers=headers)
|
|
@@ -692,7 +692,7 @@ def expiry_history(symbol,start_date="",end_date="",type="options"):
|
|
|
692
692
|
nsefetch_url = "https://www.nseindia.com/api/historical/fo/derivatives/meta?&from="+start_date+"&to="+end_date+"&symbol="+symbol+""
|
|
693
693
|
payload = nsefetch(nsefetch_url)
|
|
694
694
|
|
|
695
|
-
print(payload)
|
|
695
|
+
#print(payload)
|
|
696
696
|
|
|
697
697
|
for key, value in payload['expiryDatesByInstrument'].items():
|
|
698
698
|
if type.lower() == "options" and "OPT" in key:
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
nsepython/__init__.py,sha256=smfUB46cZCC2tmcFMU6ry12PpWjKB4enB4Y5nNk_xBo,44
|
|
2
|
+
nsepython/rahu.py,sha256=vKWI-OXZ69uaeL7ns4FD6RtdvZpMlsdRq0wC2nxPpWE,42269
|
|
3
|
+
nsepython-2.93.dist-info/LICENSE,sha256=7GKIR95QHGxZUfY_N5Or2XXBVRkLkyTRnZ_cLFyFw8s,35176
|
|
4
|
+
nsepython-2.93.dist-info/METADATA,sha256=Lk5282DdrCrTt14x7BCuMNoo1oqZruVUMT7S7PkkNHo,7420
|
|
5
|
+
nsepython-2.93.dist-info/WHEEL,sha256=oiQVh_5PnQM0E3gPdiz09WCNmwiHDMaGer_elqB3coM,92
|
|
6
|
+
nsepython-2.93.dist-info/top_level.txt,sha256=-hTS08c-pS4rPpiuzLkamRsgHTq7t6BG0M5wnU-iPy4,10
|
|
7
|
+
nsepython-2.93.dist-info/RECORD,,
|
nsepython-2.92.dist-info/RECORD
DELETED
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
nsepython/__init__.py,sha256=smfUB46cZCC2tmcFMU6ry12PpWjKB4enB4Y5nNk_xBo,44
|
|
2
|
-
nsepython/rahu.py,sha256=vRmnBqYMUDstMOOPFZR1XiG7c_A3Z1AjCB57FT6BYBg,42267
|
|
3
|
-
nsepython-2.92.dist-info/LICENSE,sha256=7GKIR95QHGxZUfY_N5Or2XXBVRkLkyTRnZ_cLFyFw8s,35176
|
|
4
|
-
nsepython-2.92.dist-info/METADATA,sha256=1K7VrHYcyYyVP26LhnF8msPnZDCvpVPpT909hVYM7AI,7420
|
|
5
|
-
nsepython-2.92.dist-info/WHEEL,sha256=oiQVh_5PnQM0E3gPdiz09WCNmwiHDMaGer_elqB3coM,92
|
|
6
|
-
nsepython-2.92.dist-info/top_level.txt,sha256=-hTS08c-pS4rPpiuzLkamRsgHTq7t6BG0M5wnU-iPy4,10
|
|
7
|
-
nsepython-2.92.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|