wbfdm 1.46.2__py2.py3-none-any.whl → 1.46.4__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.

@@ -68,6 +68,10 @@ class DatastreamMarketDataDataloader(MarketDataProtocol, Dataloader):
68
68
  fx_code = pk.Table("DS2FxCode")
69
69
  fx = pk.Table("DS2FxRate")
70
70
 
71
+ quotes = pk.Table("DS2CtryQtInfo")
72
+ securities = pk.Table("DS2Security")
73
+ securities2 = pk.Table("DS2Security", alias="securities2")
74
+
71
75
  mapping, create_mapping_table = create_table(
72
76
  "#ds2infoexchcode", Column("InfoCode", SqlTypes.INTEGER), Column("ExchIntCode", SqlTypes.INTEGER)
73
77
  )
@@ -83,8 +87,14 @@ class DatastreamMarketDataDataloader(MarketDataProtocol, Dataloader):
83
87
  fn.Cast(pricing.MarketDate, SqlTypes.DATE).as_("valuation_date"),
84
88
  ValueWrapper("qa-ds2").as_("source"),
85
89
  )
90
+ .join(quotes)
91
+ .on_field("InfoCode")
92
+ .join(securities)
93
+ .on(quotes.DsSecCode == securities.DsSecCode)
94
+ .join(securities2)
95
+ .on((securities2.DsCmpyCode == securities.DsCmpyCode) & securities2.IsMajorSec == "Y")
86
96
  .left_join(market_val)
87
- .on((pricing.InfoCode == market_val.InfoCode) & (pricing.MarketDate == market_val.ValDate))
97
+ .on((securities2.PrimQtInfoCode == market_val.InfoCode) & (pricing.MarketDate == market_val.ValDate))
88
98
  # We join on _codes, which removes all instruments not in _codes - implicit where
89
99
  .join(mapping)
90
100
  .on((pricing.InfoCode == mapping.InfoCode) & (pricing.ExchIntCode == mapping.ExchIntCode))
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: wbfdm
3
- Version: 1.46.2
3
+ Version: 1.46.4
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.*
@@ -99,7 +99,7 @@ wbfdm/contrib/qa/dataloaders/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NM
99
99
  wbfdm/contrib/qa/dataloaders/adjustments.py,sha256=DQEexOLA7WyBB1dZJHQd-6zbzyEIURgSSgS7bJRvXzQ,2980
100
100
  wbfdm/contrib/qa/dataloaders/corporate_actions.py,sha256=lWT6klrTXKqxiko2HGrxHH8E2C00FJS-AOX3IhglRrI,2912
101
101
  wbfdm/contrib/qa/dataloaders/financials.py,sha256=xUHpvhUkvmdPL_RyWCrs7XgChgTklX5qemmaXMedgkY,3475
102
- wbfdm/contrib/qa/dataloaders/market_data.py,sha256=nsjLDs9JYcT0RfhzaEzTGh6GiLyHP512kHmMpwI1Dk8,5856
102
+ wbfdm/contrib/qa/dataloaders/market_data.py,sha256=QmsqAJG5EZPXwEHPLsj-Nu0ZROpA-GVq0KvyvfcuTk0,6300
103
103
  wbfdm/contrib/qa/dataloaders/officers.py,sha256=vytlQJJxmn4Y5HfNh5mHJAvuIrrsQSkNO-sONyhxftY,2940
104
104
  wbfdm/contrib/qa/dataloaders/reporting_dates.py,sha256=Wu5nWeu-opbHTnBzKkud7qaMMPiXyCUMqqLi8xDYumE,2493
105
105
  wbfdm/contrib/qa/dataloaders/statements.py,sha256=hC6YErJcvBTmaAmzscgeC4sBK3lYE2U5eIKRIE9b_cs,10094
@@ -350,6 +350,6 @@ wbfdm/viewsets/statements/__init__.py,sha256=odxtFYUDICPmz8WCE3nx93EvKZLSPBEI4d7
350
350
  wbfdm/viewsets/statements/statements.py,sha256=kmtM0uZ3f7eJJe5gVmd-iVra9dHwTB9x12p7f5qTEx8,4084
351
351
  wbfdm/viewsets/technical_analysis/__init__.py,sha256=qtCIBg0uSiZeJq_1tEQFilnorMBkMe6uCMfqar6-cLE,77
352
352
  wbfdm/viewsets/technical_analysis/monthly_performances.py,sha256=O1j8CGfOranL74LqVvcf7jERaDIboEJZiBf_AbbVDQ8,3974
353
- wbfdm-1.46.2.dist-info/METADATA,sha256=Wp4MXr41nd6GfMEaIq-nipwrPVTcnMqqoN1zH7VBm_w,737
354
- wbfdm-1.46.2.dist-info/WHEEL,sha256=tkmg4JIqwd9H8mL30xA7crRmoStyCtGp0VWshokd1Jc,105
355
- wbfdm-1.46.2.dist-info/RECORD,,
353
+ wbfdm-1.46.4.dist-info/METADATA,sha256=5QHL84TqQw5pxZUdkOAREiwMOlinELQGGbdMFAVNfpY,737
354
+ wbfdm-1.46.4.dist-info/WHEEL,sha256=tkmg4JIqwd9H8mL30xA7crRmoStyCtGp0VWshokd1Jc,105
355
+ wbfdm-1.46.4.dist-info/RECORD,,
File without changes