wbportfolio 1.44.4__py2.py3-none-any.whl → 1.44.5__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.

@@ -106,9 +106,11 @@ class PMSInstrument(Instrument):
106
106
  cumshares = self.get_cumulative_shares(from_date, to_date)
107
107
  df = pd.concat([cumshares, (cumshares - cumshares.shift(1)).rename("volume")], axis=1)
108
108
  df["volume"] = df["volume"].astype(float)
109
+ df = df.fillna(0) # missing shares or volume is replaced by 0
109
110
  df["volume_50d"] = df.volume.rolling(50).mean()
110
111
  df["volume_200d"] = df.volume.rolling(50).mean()
111
112
  df = df.replace([np.inf, -np.inf, np.nan], None)
113
+
112
114
  for val_date, row in df.to_dict("index").items():
113
115
  with suppress(InstrumentPrice.DoesNotExist):
114
116
  shares = row["shares"]
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: wbportfolio
3
- Version: 1.44.4
3
+ Version: 1.44.5
4
4
  Author-email: Christopher Wittlinger <c.wittlinger@stainly.com>
5
5
  License-File: LICENSE
6
6
  Requires-Dist: cryptography==3.4.*
@@ -260,7 +260,7 @@ wbportfolio/models/roles.py,sha256=34BwZleaPMHnUqDK1nHett45xaNNsUqSHY44844itW8,7
260
260
  wbportfolio/models/utils.py,sha256=wYAqgqIfBPafDY9CZWwSCDhSt0ucdyMTrvDwnrnk6H8,393
261
261
  wbportfolio/models/llm/wbcrm/analyze_relationship.py,sha256=_y2Myc-M2hXQDkRGXvzsM0ZNC31dmxSHHz5BKMtymww,2106
262
262
  wbportfolio/models/mixins/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
263
- wbportfolio/models/mixins/instruments.py,sha256=oZoehE8gX0jquMgELZYce2C7p2GPgPC8dAuqOZgRcqY,5485
263
+ wbportfolio/models/mixins/instruments.py,sha256=51W6Znh0slArbaa1Nx8L8o04XgA9htQEl2HMjXES3HA,5561
264
264
  wbportfolio/models/mixins/liquidity_stress_test.py,sha256=whkzjtbOyl_ncNyaQBORb_Z_rDgcvfdTYPgqPolu7dA,58865
265
265
  wbportfolio/models/reconciliations/__init__.py,sha256=MXH5fZIPGDRBgJkO6wVu_NLRs8fkP1im7G6d-h36lQY,127
266
266
  wbportfolio/models/reconciliations/account_reconciliation_lines.py,sha256=1veDyk2YH82AXCtcLLtCVr-xp2lWB3W8E0X35rlAfrQ,7393
@@ -502,7 +502,7 @@ wbportfolio/viewsets/transactions/mixins.py,sha256=i9ICaUXZfryIrbgS-bdCcoBJO-pTn
502
502
  wbportfolio/viewsets/transactions/trade_proposals.py,sha256=5mgAk60cINZHd2HfTu7StFOc882FGakNcIVZpNSwBCs,3528
503
503
  wbportfolio/viewsets/transactions/trades.py,sha256=GcVwfjU4N_BKXEjoKYnrtfey9tUj0-H3vdnEZfzTJy0,15457
504
504
  wbportfolio/viewsets/transactions/transactions.py,sha256=HIQPGH5oDDGo1e2r3NbHXh68-yZcWhHmUBqOcwcjCRU,4449
505
- wbportfolio-1.44.4.dist-info/METADATA,sha256=_M-1vC2g0H1H6iHLe1OFddwOnDSvim10Xtyz98W58e4,645
506
- wbportfolio-1.44.4.dist-info/WHEEL,sha256=tkmg4JIqwd9H8mL30xA7crRmoStyCtGp0VWshokd1Jc,105
507
- wbportfolio-1.44.4.dist-info/licenses/LICENSE,sha256=jvfVH0SY8_YMHlsJHKe_OajiscQDz4lpTlqT6x24sVw,172
508
- wbportfolio-1.44.4.dist-info/RECORD,,
505
+ wbportfolio-1.44.5.dist-info/METADATA,sha256=uYDlQGOLCPtxyHj5cEeT5fFHFtLRaYHPitKM5TRCtLc,645
506
+ wbportfolio-1.44.5.dist-info/WHEEL,sha256=tkmg4JIqwd9H8mL30xA7crRmoStyCtGp0VWshokd1Jc,105
507
+ wbportfolio-1.44.5.dist-info/licenses/LICENSE,sha256=jvfVH0SY8_YMHlsJHKe_OajiscQDz4lpTlqT6x24sVw,172
508
+ wbportfolio-1.44.5.dist-info/RECORD,,