Skip to content

Commit 3febe75

Browse files
committed
update
1 parent ff825af commit 3febe75

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

rqalpha/mod/rqalpha_mod_sys_accounts/position_model.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -263,7 +263,7 @@ def _handle_dividend_payable(self, trading_date: date) -> float:
263263
else:
264264
return payable_value
265265

266-
def _get_split_ratio(self, splits: ndarray) -> tuple[float, Decimal]:
266+
def _get_split_ratio(self, splits):
267267
# rqalpha 6.1.0 修改了 bundle 的 splits_factor 的数据格式,需要向前兼容
268268
if 'split_coefficient_to' not in splits.dtype.names:
269269
ratio = splits["split_factor"].cumprod()[-1]

0 commit comments

Comments
 (0)