PyQuantimClient 1.0.63__tar.gz → 1.0.64__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.63 → PyQuantimClient-1.0.64}/PKG-INFO +1 -1
- {PyQuantimClient-1.0.63 → PyQuantimClient-1.0.64}/PyQuantimClient.egg-info/PKG-INFO +1 -1
- {PyQuantimClient-1.0.63 → PyQuantimClient-1.0.64}/setup.py +1 -1
- {PyQuantimClient-1.0.63 → PyQuantimClient-1.0.64}/src/bi.py +3 -4
- {PyQuantimClient-1.0.63 → PyQuantimClient-1.0.64}/PyQuantimClient.egg-info/SOURCES.txt +0 -0
- {PyQuantimClient-1.0.63 → PyQuantimClient-1.0.64}/PyQuantimClient.egg-info/dependency_links.txt +0 -0
- {PyQuantimClient-1.0.63 → PyQuantimClient-1.0.64}/PyQuantimClient.egg-info/top_level.txt +0 -0
- {PyQuantimClient-1.0.63 → PyQuantimClient-1.0.64}/README.md +0 -0
- {PyQuantimClient-1.0.63 → PyQuantimClient-1.0.64}/setup.cfg +0 -0
- {PyQuantimClient-1.0.63 → PyQuantimClient-1.0.64}/src/__init__.py +0 -0
- {PyQuantimClient-1.0.63 → PyQuantimClient-1.0.64}/src/api.py +0 -0
- {PyQuantimClient-1.0.63 → PyQuantimClient-1.0.64}/src/benchmarks.py +0 -0
- {PyQuantimClient-1.0.63 → PyQuantimClient-1.0.64}/src/data.py +0 -0
- {PyQuantimClient-1.0.63 → PyQuantimClient-1.0.64}/src/energy.py +0 -0
- {PyQuantimClient-1.0.63 → PyQuantimClient-1.0.64}/src/portfolios.py +0 -0
- {PyQuantimClient-1.0.63 → PyQuantimClient-1.0.64}/src/preprocess_co.py +0 -0
- {PyQuantimClient-1.0.63 → PyQuantimClient-1.0.64}/src/risk.py +0 -0
- {PyQuantimClient-1.0.63 → PyQuantimClient-1.0.64}/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.64',
|
|
8
8
|
description='Python client to access quantIM services',
|
|
9
9
|
author='Daniel Velasquez',
|
|
10
10
|
author_email='daniel.velasquez@sura-im.com',
|
|
@@ -9,14 +9,14 @@ class bi_data(quantim):
|
|
|
9
9
|
def __init__(self, username, password, secretpool, env="pdn", api_url=None):
|
|
10
10
|
super().__init__(username, password, secretpool, env, api_url)
|
|
11
11
|
|
|
12
|
-
def get_positions_afps_cl(self, ref_date=None
|
|
12
|
+
def get_positions_afps_cl(self, ref_date=None):
|
|
13
13
|
'''
|
|
14
14
|
Get Value at Risk results and suport information.
|
|
15
15
|
'''
|
|
16
16
|
ref_date = dt.datetime.today().replace(day=1, hour=0, minute=0, second=0, microsecond=0) - rd(days=1) if ref_date is None else dt.datetime.strptime(ref_date, '%Y-%m-%d')
|
|
17
|
-
key = f'{
|
|
17
|
+
key = f'inputs/benchmarks/positions/cl/afps/{ref_date.year}/{ref_date.strftime("%m")}/data.json'
|
|
18
18
|
|
|
19
|
-
data = {'bucket':
|
|
19
|
+
data = {'bucket':"condor-sura", 'key':key}
|
|
20
20
|
try:
|
|
21
21
|
resp = self.api_call('retrieve_json_s3', method="post", data=data, verify=False)
|
|
22
22
|
keys = list(resp.keys())
|
|
@@ -25,4 +25,3 @@ class bi_data(quantim):
|
|
|
25
25
|
print(f"Data not available for {ref_date}. Try previous month!")
|
|
26
26
|
keys, resp_dfs = None, None
|
|
27
27
|
return keys, resp_dfs
|
|
28
|
-
|
|
File without changes
|
{PyQuantimClient-1.0.63 → PyQuantimClient-1.0.64}/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
|