wbfdm 1.54.12__py2.py3-none-any.whl → 1.54.14__py2.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.
Potentially problematic release.
This version of wbfdm might be problematic. Click here for more details.
|
@@ -103,10 +103,12 @@ class MarketDataDataloader(MarketDataProtocol, Dataloader):
|
|
|
103
103
|
val_date = row.pop("date")
|
|
104
104
|
if row:
|
|
105
105
|
fx_rate = row["fx_rate"]
|
|
106
|
-
if apply_fx_rate and
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
106
|
+
if apply_fx_rate and fx_rate is not None:
|
|
107
|
+
if row.get("net_value"):
|
|
108
|
+
row["net_value"] = row["net_value"] * fx_rate
|
|
109
|
+
if row.get("market_capitalization"):
|
|
110
|
+
row["market_capitalization"] = row["market_capitalization"] * float(fx_rate)
|
|
111
|
+
fx_rate = _cast_decimal_to_float(fx_rate)
|
|
110
112
|
|
|
111
113
|
yield MarketDataDict(
|
|
112
114
|
id=f"{external_id}_{val_date}",
|
|
@@ -115,6 +117,6 @@ class MarketDataDataloader(MarketDataProtocol, Dataloader):
|
|
|
115
117
|
external_id=external_id,
|
|
116
118
|
source="wbfdm",
|
|
117
119
|
calculated=row["calculated"],
|
|
118
|
-
fx_rate=
|
|
120
|
+
fx_rate=fx_rate,
|
|
119
121
|
**{MarketData[k].value: _cast_decimal_to_float(row[v]) for k, v in values_map.items()},
|
|
120
122
|
)
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: wbfdm
|
|
3
|
-
Version: 1.54.
|
|
3
|
+
Version: 1.54.14
|
|
4
4
|
Summary: The workbench module ensures rapid access to diverse financial data (market, fundamental, forecasts, ESG), with features for storing instruments, classifying them, and conducting financial analysis.
|
|
5
5
|
Author-email: Christopher Wittlinger <c.wittlinger@stainly.com>
|
|
6
6
|
Requires-Dist: roman==4.*
|
|
@@ -41,7 +41,7 @@ wbfdm/contrib/dsws/client.py,sha256=C598w5P85kvX7_gR0Yf-WHRLj77HqztUhofBMl3JWAE,
|
|
|
41
41
|
wbfdm/contrib/dsws/dataloaders/market_data.py,sha256=HyTP35Pf4mhhKxEwbyrlJHftTyzNBPUUQeiKArCdhQk,7486
|
|
42
42
|
wbfdm/contrib/internal/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
43
43
|
wbfdm/contrib/internal/dataloaders/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
44
|
-
wbfdm/contrib/internal/dataloaders/market_data.py,sha256=
|
|
44
|
+
wbfdm/contrib/internal/dataloaders/market_data.py,sha256=QJx4DsGGN3yy0cjIRDEatt_ZHJwJPJNLAJAgRvhzWsQ,4609
|
|
45
45
|
wbfdm/contrib/metric/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
46
46
|
wbfdm/contrib/metric/apps.py,sha256=T-Na_lyFeLR8ebGvaW-mcjKFLqiZcsPXnUlOuVPOiWw,297
|
|
47
47
|
wbfdm/contrib/metric/decorators.py,sha256=VPmyjEJaq5HqXOt_ZizqcXfRqSEXw4lanDmubUjb2GY,476
|
|
@@ -359,6 +359,6 @@ wbfdm/viewsets/statements/__init__.py,sha256=odxtFYUDICPmz8WCE3nx93EvKZLSPBEI4d7
|
|
|
359
359
|
wbfdm/viewsets/statements/statements.py,sha256=gA6RCI8-B__JwjEb6OZxpn8Y-9aF-YQ3HIQ7e1vfJMw,4304
|
|
360
360
|
wbfdm/viewsets/technical_analysis/__init__.py,sha256=qtCIBg0uSiZeJq_1tEQFilnorMBkMe6uCMfqar6-cLE,77
|
|
361
361
|
wbfdm/viewsets/technical_analysis/monthly_performances.py,sha256=O1j8CGfOranL74LqVvcf7jERaDIboEJZiBf_AbbVDQ8,3974
|
|
362
|
-
wbfdm-1.54.
|
|
363
|
-
wbfdm-1.54.
|
|
364
|
-
wbfdm-1.54.
|
|
362
|
+
wbfdm-1.54.14.dist-info/METADATA,sha256=XoYZQIPkDUCs-NJS16eUir5iB36SmKvtQtINPJpt1jg,769
|
|
363
|
+
wbfdm-1.54.14.dist-info/WHEEL,sha256=tkmg4JIqwd9H8mL30xA7crRmoStyCtGp0VWshokd1Jc,105
|
|
364
|
+
wbfdm-1.54.14.dist-info/RECORD,,
|
|
File without changes
|