PyQuantimClient 1.0.83__tar.gz → 1.0.85__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.
- {PyQuantimClient-1.0.83 → pyquantimclient-1.0.85}/PKG-INFO +1 -1
- {PyQuantimClient-1.0.83 → pyquantimclient-1.0.85}/PyQuantimClient.egg-info/PKG-INFO +1 -1
- {PyQuantimClient-1.0.83 → pyquantimclient-1.0.85}/setup.py +1 -1
- {PyQuantimClient-1.0.83 → pyquantimclient-1.0.85}/src/api.py +1 -0
- {PyQuantimClient-1.0.83 → pyquantimclient-1.0.85}/src/risk.py +9 -0
- {PyQuantimClient-1.0.83 → pyquantimclient-1.0.85}/PyQuantimClient.egg-info/SOURCES.txt +0 -0
- {PyQuantimClient-1.0.83 → pyquantimclient-1.0.85}/PyQuantimClient.egg-info/dependency_links.txt +0 -0
- {PyQuantimClient-1.0.83 → pyquantimclient-1.0.85}/PyQuantimClient.egg-info/top_level.txt +0 -0
- {PyQuantimClient-1.0.83 → pyquantimclient-1.0.85}/README.md +0 -0
- {PyQuantimClient-1.0.83 → pyquantimclient-1.0.85}/setup.cfg +0 -0
- {PyQuantimClient-1.0.83 → pyquantimclient-1.0.85}/src/__init__.py +0 -0
- {PyQuantimClient-1.0.83 → pyquantimclient-1.0.85}/src/benchmarks.py +0 -0
- {PyQuantimClient-1.0.83 → pyquantimclient-1.0.85}/src/bi.py +0 -0
- {PyQuantimClient-1.0.83 → pyquantimclient-1.0.85}/src/data.py +0 -0
- {PyQuantimClient-1.0.83 → pyquantimclient-1.0.85}/src/energy.py +0 -0
- {PyQuantimClient-1.0.83 → pyquantimclient-1.0.85}/src/performance.py +0 -0
- {PyQuantimClient-1.0.83 → pyquantimclient-1.0.85}/src/portfolios.py +0 -0
- {PyQuantimClient-1.0.83 → pyquantimclient-1.0.85}/src/preprocess_co.py +0 -0
- {PyQuantimClient-1.0.83 → pyquantimclient-1.0.85}/src/utils.py +0 -0
|
@@ -4,7 +4,7 @@ setup(
|
|
|
4
4
|
name='PyQuantimClient',
|
|
5
5
|
packages=['PyQuantimClient'],
|
|
6
6
|
package_dir={'PyQuantimClient': 'src'},
|
|
7
|
-
version='1.0.
|
|
7
|
+
version='1.0.85',
|
|
8
8
|
description='Python client to access quantIM services',
|
|
9
9
|
author='Daniel Velasquez',
|
|
10
10
|
author_email='daniel.velasquez@sura-im.com',
|
|
@@ -23,6 +23,7 @@ class quantim:
|
|
|
23
23
|
token_url = f"{self.api_url}tokendynamicpool"
|
|
24
24
|
data = {"username":self.username, "password":self.password, "secretpool":self.secretpool}
|
|
25
25
|
|
|
26
|
+
headers = {"Accept": "*/*",'Content-Type': 'application/json', 'Access-Control-Allow-Origin': '*'}
|
|
26
27
|
access_token_response = requests.post(token_url, data=json.dumps(data), headers=headers, verify=False, allow_redirects=False)
|
|
27
28
|
tokens = json.loads(access_token_response.text)
|
|
28
29
|
access_token = tokens['id_token']
|
|
@@ -161,6 +161,15 @@ class risk_data(quantim):
|
|
|
161
161
|
resp = self.upload_with_presigned_url(file_path, "condor-pat", "inputs/asulado/BD_Isin.csv")
|
|
162
162
|
return resp
|
|
163
163
|
|
|
164
|
+
def load_bs(self, file_path):
|
|
165
|
+
'''
|
|
166
|
+
Load buys and sells.
|
|
167
|
+
'''
|
|
168
|
+
# Load data
|
|
169
|
+
filename = file_path.split("/")[-1]
|
|
170
|
+
resp = self.upload_with_presigned_url(file_path, "condor-sura", f"inputs/portfolios/buy_sell/{filename}")
|
|
171
|
+
return resp
|
|
172
|
+
|
|
164
173
|
def port_contrib(self, start_date, end_date, names, groupers=["secType"], subgroup=False):
|
|
165
174
|
'''
|
|
166
175
|
Portfolio risk an return ex-post contribution.
|
|
File without changes
|
{PyQuantimClient-1.0.83 → pyquantimclient-1.0.85}/PyQuantimClient.egg-info/dependency_links.txt
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|