nsepython 2.9__tar.gz → 2.92__tar.gz
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-2.9 → nsepython-2.92}/PKG-INFO +1 -1
- {nsepython-2.9 → nsepython-2.92}/nsepython/rahu.py +3 -3
- {nsepython-2.9 → nsepython-2.92}/nsepython.egg-info/PKG-INFO +1 -1
- {nsepython-2.9 → nsepython-2.92}/setup.py +1 -1
- {nsepython-2.9 → nsepython-2.92}/LICENSE +0 -0
- {nsepython-2.9 → nsepython-2.92}/README.md +0 -0
- {nsepython-2.9 → nsepython-2.92}/nsepython/__init__.py +0 -0
- {nsepython-2.9 → nsepython-2.92}/nsepython.egg-info/SOURCES.txt +0 -0
- {nsepython-2.9 → nsepython-2.92}/nsepython.egg-info/dependency_links.txt +0 -0
- {nsepython-2.9 → nsepython-2.92}/nsepython.egg-info/requires.txt +0 -0
- {nsepython-2.9 → nsepython-2.92}/nsepython.egg-info/top_level.txt +0 -0
- {nsepython-2.9 → nsepython-2.92}/setup.cfg +0 -0
|
@@ -744,21 +744,21 @@ niftyindices_headers = {
|
|
|
744
744
|
|
|
745
745
|
def index_history(symbol,start_date,end_date):
|
|
746
746
|
data = {'cinfo': "{'name':'" + symbol + "','startDate':'" + start_date + "','endDate':'" + end_date + "','indexName':'" + symbol + "'}"}
|
|
747
|
-
payload = requests.post('https://niftyindices.com/Backpage.aspx/getHistoricaldatatabletoString', headers=niftyindices_headers,
|
|
747
|
+
payload = requests.post('https://niftyindices.com/Backpage.aspx/getHistoricaldatatabletoString', headers=niftyindices_headers, json=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
753
|
data = {'cinfo': "{'name':'" + symbol + "','startDate':'" + start_date + "','endDate':'" + end_date + "','indexName':'" + symbol + "'}"}
|
|
754
|
-
payload = requests.post('https://niftyindices.com/Backpage.aspx/getpepbHistoricaldataDBtoString', headers=niftyindices_headers,
|
|
754
|
+
payload = requests.post('https://niftyindices.com/Backpage.aspx/getpepbHistoricaldataDBtoString', headers=niftyindices_headers, json=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
760
|
data = {'cinfo': "{'name':'" + symbol + "','startDate':'" + start_date + "','endDate':'" + end_date + "','indexName':'" + symbol + "'}"}
|
|
761
|
-
payload = requests.post('https://niftyindices.com/Backpage.aspx/getTotalReturnIndexString', headers=niftyindices_headers,
|
|
761
|
+
payload = requests.post('https://niftyindices.com/Backpage.aspx/getTotalReturnIndexString', headers=niftyindices_headers, json=data).json()
|
|
762
762
|
payload = json.loads(payload["d"])
|
|
763
763
|
payload=pd.DataFrame.from_records(payload)
|
|
764
764
|
return payload
|
|
@@ -6,7 +6,7 @@ with open("README.md", "r") as fh:
|
|
|
6
6
|
setuptools.setup(
|
|
7
7
|
name = 'nsepython',
|
|
8
8
|
packages=setuptools.find_packages(),
|
|
9
|
-
version = '2.
|
|
9
|
+
version = '2.92',
|
|
10
10
|
include_package_data=True,
|
|
11
11
|
description = 'Python library for NSE India APIs',
|
|
12
12
|
long_description=long_description,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|