wbportfolio 1.46.7__py2.py3-none-any.whl → 1.46.9__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 wbportfolio might be problematic. Click here for more details.

@@ -107,9 +107,10 @@ class MarketCapitalizationRebalancing(AbstractRebalancingModel):
107
107
 
108
108
  def get_target_portfolio(self) -> Portfolio:
109
109
  positions = []
110
- total_market_cap = self.market_cap_df.sum()
110
+ market_cap_df = self.market_cap_df.dropna()
111
+ total_market_cap = market_cap_df.sum()
111
112
 
112
- for underlying_instrument, market_cap in self.market_cap_df.to_dict().items():
113
+ for underlying_instrument, market_cap in market_cap_df.to_dict().items():
113
114
  positions.append(
114
115
  Position(
115
116
  underlying_instrument=underlying_instrument,
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: wbportfolio
3
- Version: 1.46.7
3
+ Version: 1.46.9
4
4
  Author-email: Christopher Wittlinger <c.wittlinger@stainly.com>
5
5
  License-File: LICENSE
6
6
  Requires-Dist: cryptography==3.4.*
@@ -289,7 +289,7 @@ wbportfolio/rebalancing/decorators.py,sha256=JhQ2vkcIuGBTGvNmpkQerdw2-vLq-RAb0KA
289
289
  wbportfolio/rebalancing/models/__init__.py,sha256=AQjG7Tu5vlmhqncVoYOjpBKU2UIvgo9FuP2_jD2w-UI,232
290
290
  wbportfolio/rebalancing/models/composite.py,sha256=XAjJqLRNsV-MuBKrat3THEfAWs6PXQNSO0g8k8MtBXo,1157
291
291
  wbportfolio/rebalancing/models/equally_weighted.py,sha256=U29MOHJMQMIg7Y7W_8t5K3nXjaznzt4ArIxQSiv0Xok,863
292
- wbportfolio/rebalancing/models/market_capitalization_weighted.py,sha256=RTEVAwOh7ec5MqCFYd-9lSNv4eNhchD1aAyEnJeyZwQ,4825
292
+ wbportfolio/rebalancing/models/market_capitalization_weighted.py,sha256=myb7j_aJns5dfuUXzL4cPSK8R8X540h0INiXB6z-aV4,4867
293
293
  wbportfolio/rebalancing/models/model_portfolio.py,sha256=XQdvs03-0M9YUnL4DidwZC4E6k-ANCNcZ--T_aaOXTQ,1233
294
294
  wbportfolio/reports/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
295
295
  wbportfolio/reports/monthly_position_report.py,sha256=e7BzjDd6eseUOwLwQJXKvWErQ58YnCsznHU2VtR6izM,2981
@@ -517,7 +517,7 @@ wbportfolio/viewsets/transactions/rebalancing.py,sha256=6rIrdK0rtKL1afJ-tYfAGdQV
517
517
  wbportfolio/viewsets/transactions/trade_proposals.py,sha256=gXdJJ00D6UavZfBczvZQb5cYPQlU6-xOg_-TnMBzEO0,4742
518
518
  wbportfolio/viewsets/transactions/trades.py,sha256=mo5b1wFm0twvGVp-CYnzpGLYMqPcHN8GjH4G_WwFFwc,16237
519
519
  wbportfolio/viewsets/transactions/transactions.py,sha256=ixDp-nsNA8t_A06rBCT19hOMJHy0iRmdz1XKdV1OwAs,4450
520
- wbportfolio-1.46.7.dist-info/METADATA,sha256=nAZz3VADXG2Z3fYmWJ3oqXrVIQa1HAaUtMQpX3e-V68,734
521
- wbportfolio-1.46.7.dist-info/WHEEL,sha256=tkmg4JIqwd9H8mL30xA7crRmoStyCtGp0VWshokd1Jc,105
522
- wbportfolio-1.46.7.dist-info/licenses/LICENSE,sha256=jvfVH0SY8_YMHlsJHKe_OajiscQDz4lpTlqT6x24sVw,172
523
- wbportfolio-1.46.7.dist-info/RECORD,,
520
+ wbportfolio-1.46.9.dist-info/METADATA,sha256=8tU84AIx2o33fnK6DQgvVs_OXm8g54lAacgMDS3Ep38,734
521
+ wbportfolio-1.46.9.dist-info/WHEEL,sha256=tkmg4JIqwd9H8mL30xA7crRmoStyCtGp0VWshokd1Jc,105
522
+ wbportfolio-1.46.9.dist-info/licenses/LICENSE,sha256=jvfVH0SY8_YMHlsJHKe_OajiscQDz4lpTlqT6x24sVw,172
523
+ wbportfolio-1.46.9.dist-info/RECORD,,