PyQuantimClient 2.0.73__py3-none-any.whl → 2.0.75__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.
- PyQuantimClient/risk.py +9 -5
- {pyquantimclient-2.0.73.dist-info → pyquantimclient-2.0.75.dist-info}/METADATA +1 -1
- {pyquantimclient-2.0.73.dist-info → pyquantimclient-2.0.75.dist-info}/RECORD +5 -5
- {pyquantimclient-2.0.73.dist-info → pyquantimclient-2.0.75.dist-info}/WHEEL +0 -0
- {pyquantimclient-2.0.73.dist-info → pyquantimclient-2.0.75.dist-info}/top_level.txt +0 -0
PyQuantimClient/risk.py
CHANGED
|
@@ -231,15 +231,19 @@ class risk_data(quantim):
|
|
|
231
231
|
'''
|
|
232
232
|
today = dt.datetime.today().replace(hour=0, minute=0, second=0, microsecond=0)
|
|
233
233
|
ref_date = (today - dt.timedelta(days=(today.weekday() - 4) % 7)).strftime("%Y%m%d") if ref_date is None else ref_date
|
|
234
|
+
files = ["var_386","results_consol"]
|
|
234
235
|
try:
|
|
235
|
-
|
|
236
|
+
dfs = {}
|
|
237
|
+
for file_i in files:
|
|
238
|
+
dfs[file_i] = self.retrieve_s3_df(bucket, f'{prefix}{ref_date}/{file_i}_{ref_date}.csv', sep=sep, prefix=prefix)
|
|
236
239
|
print(f'Var 386 ready!')
|
|
240
|
+
dfs = dfs.values()
|
|
237
241
|
except:
|
|
238
242
|
print(f"Var 386 not available for {ref_date}!")
|
|
239
|
-
|
|
240
|
-
return
|
|
243
|
+
dfs = None
|
|
244
|
+
return dfs
|
|
241
245
|
|
|
242
|
-
def load_limits_params(self, file_path,
|
|
246
|
+
def load_limits_params(self, file_path, country):
|
|
243
247
|
'''
|
|
244
248
|
Load limits parameters file to s3.
|
|
245
249
|
'''
|
|
@@ -247,7 +251,7 @@ class risk_data(quantim):
|
|
|
247
251
|
filename = file_path.split('/')[-1]
|
|
248
252
|
if filename.split('.')[-1]!='csv':
|
|
249
253
|
raise ValueError('Extension must be csv. Please check file.')
|
|
250
|
-
resp = self.upload_with_presigned_url(file_path, "condor-sura", f"inputs/risk/limits/
|
|
254
|
+
resp = self.upload_with_presigned_url(file_path, "condor-sura", f"inputs/risk/limits/{country}/{filename}")
|
|
251
255
|
return resp
|
|
252
256
|
|
|
253
257
|
def load_pretrade_inputs(self, file_path):
|
|
@@ -13,9 +13,9 @@ PyQuantimClient/preprocess_co.py,sha256=sdQuuxK1bfjY-Wp87xt7f9yFN_9WiJf4QiBNGy-4
|
|
|
13
13
|
PyQuantimClient/private_debt.py,sha256=Eeg7CgXa_mE0DTvvOfsVH_I0s_3cmkrVAOczBxznCzU,683
|
|
14
14
|
PyQuantimClient/product.py,sha256=fTachNfN35m4peLtXm7WAWgERxfBITYNsb4agW4bZuM,929
|
|
15
15
|
PyQuantimClient/returns.py,sha256=r2PruoqvPdfZ4uGgWb0rA9nz4wUXf5R5rDLPYjlpXOM,3143
|
|
16
|
-
PyQuantimClient/risk.py,sha256=
|
|
16
|
+
PyQuantimClient/risk.py,sha256=LXF8KeVJM-c0TA-vCadLubEe-0QcpZTxrtD_P8FQsjA,19393
|
|
17
17
|
PyQuantimClient/utils.py,sha256=d_hyKTeHzQuPVusrbZJEhtbp6srninQCErKDfe6HH2w,941
|
|
18
|
-
pyquantimclient-2.0.
|
|
19
|
-
pyquantimclient-2.0.
|
|
20
|
-
pyquantimclient-2.0.
|
|
21
|
-
pyquantimclient-2.0.
|
|
18
|
+
pyquantimclient-2.0.75.dist-info/METADATA,sha256=kQSwoogkqF88yzxOAEONKasD__bMH3GhhckNyrl0Hko,447
|
|
19
|
+
pyquantimclient-2.0.75.dist-info/WHEEL,sha256=aeYiig01lYGDzBgS8HxWXOg3uV61G9ijOsup-k9o1sk,91
|
|
20
|
+
pyquantimclient-2.0.75.dist-info/top_level.txt,sha256=WbmxYSegJ1EfH-TJOqtF0mzYevWDeaMoJ4ZAzQaOTDE,16
|
|
21
|
+
pyquantimclient-2.0.75.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|