nsepython 2.9__py3-none-any.whl → 2.91__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 +3 -3
- {nsepython-2.9.dist-info → nsepython-2.91.dist-info}/METADATA +1 -1
- nsepython-2.91.dist-info/RECORD +7 -0
- nsepython-2.9.dist-info/RECORD +0 -7
- {nsepython-2.9.dist-info → nsepython-2.91.dist-info}/LICENSE +0 -0
- {nsepython-2.9.dist-info → nsepython-2.91.dist-info}/WHEEL +0 -0
- {nsepython-2.9.dist-info → nsepython-2.91.dist-info}/top_level.txt +0 -0
nsepython/rahu.py
CHANGED
|
@@ -743,21 +743,21 @@ niftyindices_headers = {
|
|
|
743
743
|
}
|
|
744
744
|
|
|
745
745
|
def index_history(symbol,start_date,end_date):
|
|
746
|
-
data = {'cinfo': "{'name':'" + symbol + "','startDate':'" + start_date + "','endDate':'" + end_date + "','indexName':'" +
|
|
746
|
+
data = {'cinfo': "{'name':'" + symbol + "','startDate':'" + start_date + "','endDate':'" + end_date + "','indexName':'" + indexName + "'}"}
|
|
747
747
|
payload = requests.post('https://niftyindices.com/Backpage.aspx/getHistoricaldatatabletoString', headers=niftyindices_headers, data=data).json()
|
|
748
748
|
payload = json.loads(payload["d"])
|
|
749
749
|
payload=pd.DataFrame.from_records(payload)
|
|
750
750
|
return payload
|
|
751
751
|
|
|
752
752
|
def index_pe_pb_div(symbol,start_date,end_date):
|
|
753
|
-
data = {'cinfo': "{'name':'" + symbol + "','startDate':'" + start_date + "','endDate':'" + end_date + "','indexName':'" +
|
|
753
|
+
data = {'cinfo': "{'name':'" + symbol + "','startDate':'" + start_date + "','endDate':'" + end_date + "','indexName':'" + indexName + "'}"}
|
|
754
754
|
payload = requests.post('https://niftyindices.com/Backpage.aspx/getpepbHistoricaldataDBtoString', headers=niftyindices_headers, data=data).json()
|
|
755
755
|
payload = json.loads(payload["d"])
|
|
756
756
|
payload=pd.DataFrame.from_records(payload)
|
|
757
757
|
return payload
|
|
758
758
|
|
|
759
759
|
def index_total_returns(symbol,start_date,end_date):
|
|
760
|
-
data = {'cinfo': "{'name':'" + symbol + "','startDate':'" + start_date + "','endDate':'" + end_date + "','indexName':'" +
|
|
760
|
+
data = {'cinfo': "{'name':'" + symbol + "','startDate':'" + start_date + "','endDate':'" + end_date + "','indexName':'" + indexName + "'}"}
|
|
761
761
|
payload = requests.post('https://niftyindices.com/Backpage.aspx/getTotalReturnIndexString', headers=niftyindices_headers, data=data).json()
|
|
762
762
|
payload = json.loads(payload["d"])
|
|
763
763
|
payload=pd.DataFrame.from_records(payload)
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
nsepython/__init__.py,sha256=smfUB46cZCC2tmcFMU6ry12PpWjKB4enB4Y5nNk_xBo,44
|
|
2
|
+
nsepython/rahu.py,sha256=EuueNYozh6zyAxJ0iLl4bVutbmqbAsC0V7i4hgWb1DA,42276
|
|
3
|
+
nsepython-2.91.dist-info/LICENSE,sha256=7GKIR95QHGxZUfY_N5Or2XXBVRkLkyTRnZ_cLFyFw8s,35176
|
|
4
|
+
nsepython-2.91.dist-info/METADATA,sha256=AAZfxfyJip5pNTftvEbtt2RDdpz0zot93ZgzpANknQ8,7420
|
|
5
|
+
nsepython-2.91.dist-info/WHEEL,sha256=oiQVh_5PnQM0E3gPdiz09WCNmwiHDMaGer_elqB3coM,92
|
|
6
|
+
nsepython-2.91.dist-info/top_level.txt,sha256=-hTS08c-pS4rPpiuzLkamRsgHTq7t6BG0M5wnU-iPy4,10
|
|
7
|
+
nsepython-2.91.dist-info/RECORD,,
|
nsepython-2.9.dist-info/RECORD
DELETED
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
nsepython/__init__.py,sha256=smfUB46cZCC2tmcFMU6ry12PpWjKB4enB4Y5nNk_xBo,44
|
|
2
|
-
nsepython/rahu.py,sha256=zqJCo-l-m86jTmGW81dNvhQ9ZXcDPR-yyPrcUl9Wq-k,42267
|
|
3
|
-
nsepython-2.9.dist-info/LICENSE,sha256=7GKIR95QHGxZUfY_N5Or2XXBVRkLkyTRnZ_cLFyFw8s,35176
|
|
4
|
-
nsepython-2.9.dist-info/METADATA,sha256=CPttDNg8POe0it2jun5X3wD6LtG4r9AZAET1Hm5idfY,7419
|
|
5
|
-
nsepython-2.9.dist-info/WHEEL,sha256=oiQVh_5PnQM0E3gPdiz09WCNmwiHDMaGer_elqB3coM,92
|
|
6
|
-
nsepython-2.9.dist-info/top_level.txt,sha256=-hTS08c-pS4rPpiuzLkamRsgHTq7t6BG0M5wnU-iPy4,10
|
|
7
|
-
nsepython-2.9.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|