PyQuantimClient 2.0.54__tar.gz → 2.0.55__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-2.0.54 → pyquantimclient-2.0.55}/PKG-INFO +1 -1
- {pyquantimclient-2.0.54 → pyquantimclient-2.0.55}/PyQuantimClient.egg-info/PKG-INFO +1 -1
- {pyquantimclient-2.0.54 → pyquantimclient-2.0.55}/setup.py +1 -1
- {pyquantimclient-2.0.54 → pyquantimclient-2.0.55}/src/risk.py +6 -2
- {pyquantimclient-2.0.54 → pyquantimclient-2.0.55}/PyQuantimClient.egg-info/SOURCES.txt +0 -0
- {pyquantimclient-2.0.54 → pyquantimclient-2.0.55}/PyQuantimClient.egg-info/dependency_links.txt +0 -0
- {pyquantimclient-2.0.54 → pyquantimclient-2.0.55}/PyQuantimClient.egg-info/top_level.txt +0 -0
- {pyquantimclient-2.0.54 → pyquantimclient-2.0.55}/README.md +0 -0
- {pyquantimclient-2.0.54 → pyquantimclient-2.0.55}/setup.cfg +0 -0
- {pyquantimclient-2.0.54 → pyquantimclient-2.0.55}/src/__init__.py +0 -0
- {pyquantimclient-2.0.54 → pyquantimclient-2.0.55}/src/alm.py +0 -0
- {pyquantimclient-2.0.54 → pyquantimclient-2.0.55}/src/api.py +0 -0
- {pyquantimclient-2.0.54 → pyquantimclient-2.0.55}/src/benchmarks.py +0 -0
- {pyquantimclient-2.0.54 → pyquantimclient-2.0.55}/src/bi.py +0 -0
- {pyquantimclient-2.0.54 → pyquantimclient-2.0.55}/src/credit.py +0 -0
- {pyquantimclient-2.0.54 → pyquantimclient-2.0.55}/src/data.py +0 -0
- {pyquantimclient-2.0.54 → pyquantimclient-2.0.55}/src/energy.py +0 -0
- {pyquantimclient-2.0.54 → pyquantimclient-2.0.55}/src/performance.py +0 -0
- {pyquantimclient-2.0.54 → pyquantimclient-2.0.55}/src/portfolios.py +0 -0
- {pyquantimclient-2.0.54 → pyquantimclient-2.0.55}/src/preprocess_co.py +0 -0
- {pyquantimclient-2.0.54 → pyquantimclient-2.0.55}/src/private_debt.py +0 -0
- {pyquantimclient-2.0.54 → pyquantimclient-2.0.55}/src/product.py +0 -0
- {pyquantimclient-2.0.54 → pyquantimclient-2.0.55}/src/returns.py +0 -0
- {pyquantimclient-2.0.54 → pyquantimclient-2.0.55}/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='2.0.
|
|
7
|
+
version='2.0.55',
|
|
8
8
|
description='Python client to access quantIM services',
|
|
9
9
|
author='Daniel Velasquez',
|
|
10
10
|
author_email='daniel.velasquez@sura-im.com',
|
|
@@ -3,6 +3,7 @@ import re
|
|
|
3
3
|
import pandas as pd
|
|
4
4
|
import numpy as np
|
|
5
5
|
import datetime as dt
|
|
6
|
+
import requests, io
|
|
6
7
|
from dateutil.relativedelta import relativedelta as rd
|
|
7
8
|
from .api import quantim
|
|
8
9
|
from .utils import generate_unique_id, generate_timestamp
|
|
@@ -233,8 +234,11 @@ class risk_data(quantim):
|
|
|
233
234
|
data = {'ref_date':ref_date, 'return_cfs':return_cfs}
|
|
234
235
|
resp = self.api_call('irl', method="post", data=data, verify=False)
|
|
235
236
|
irl_report = pd.DataFrame(resp['irl'])
|
|
236
|
-
cfs =
|
|
237
|
-
|
|
237
|
+
cfs = None
|
|
238
|
+
# cfs_bkup = pd.read_csv(resp['cf_url']) if return_cfs else None
|
|
239
|
+
if return_cfs:
|
|
240
|
+
irl_cfs = requests.get(resp['cf_url'], verify=False)
|
|
241
|
+
cfs = pd.read_csv(io.StringIO(irl_cfs.content.decode('utf-8-sig')), sep=',')
|
|
238
242
|
return irl_report, cfs
|
|
239
243
|
|
|
240
244
|
def load_series_cl(self, file_path_performance=None, file_path_peers=None):
|
|
File without changes
|
{pyquantimclient-2.0.54 → pyquantimclient-2.0.55}/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
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|