Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit faed23c

Browse files
authored
Merge pull request #927 from ricequant/hotfix/add_reits
Hotfix/add reits
2 parents 6de68c9 + 373c743 commit faed23c

File tree

8 files changed

+7
-3
lines changed

8 files changed

+7
-3
lines changed

rqalpha/const.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -157,6 +157,7 @@ class INSTRUMENT_TYPE(CustomEnum):
157157
CONVERTIBLE = "Convertible"
158158
SPOT = "Spot"
159159
REPO = "Repo"
160+
REITs = "REITs"
160161

161162

162163
# noinspection PyPep8Naming

rqalpha/data/base_data_source/data_source.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@
6767
class BaseDataSource(AbstractDataSource):
6868
DEFAULT_INS_TYPES = (
6969
INSTRUMENT_TYPE.CS, INSTRUMENT_TYPE.FUTURE, INSTRUMENT_TYPE.ETF, INSTRUMENT_TYPE.LOF, INSTRUMENT_TYPE.INDX,
70-
INSTRUMENT_TYPE.PUBLIC_FUND,
70+
INSTRUMENT_TYPE.PUBLIC_FUND, INSTRUMENT_TYPE.REITs
7171
)
7272

7373
def __init__(self, path: str, custom_future_info: dict, *args, **kwargs) -> None:

rqalpha/mod/rqalpha_mod_sys_accounts/mod.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,7 @@ def start_up(self, env, mod_config):
7878
env.add_frontend_validator(ins_validator, INSTRUMENT_TYPE.CONVERTIBLE)
7979
env.add_frontend_validator(ins_validator, INSTRUMENT_TYPE.INDX)
8080
env.add_frontend_validator(ins_validator, INSTRUMENT_TYPE.PUBLIC_FUND)
81+
env.add_frontend_validator(ins_validator, INSTRUMENT_TYPE.REITs)
8182
else:
8283
user_system_log.warn("rqdatac not init, not support financing stocks restriction.")
8384
except ImportError:

rqalpha/utils/__init__.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,8 @@ def account_type_str2enum(type_str):
136136
INSTRUMENT_TYPE.ETF,
137137
INSTRUMENT_TYPE.LOF,
138138
INSTRUMENT_TYPE.INDX,
139-
INSTRUMENT_TYPE.PUBLIC_FUND
139+
INSTRUMENT_TYPE.PUBLIC_FUND,
140+
INSTRUMENT_TYPE.REITs
140141
]
141142

142143

setup.cfg

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55

66
[metadata]
77
name = rqalpha
8-
version = 5.5.4
8+
version = 5.6.0
99

1010
[versioneer]
1111
VCS = git

setup.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,7 @@
8484
'Programming Language :: Python :: 3.10',
8585
'Programming Language :: Python :: 3.11',
8686
'Programming Language :: Python :: 3.12',
87+
'Programming Language :: Python :: 3.13',
8788
],
8889
python_requires=">=3.6"
8990
)
788 Bytes
Binary file not shown.

tests/outs/test_f_tick_size.pkl

-2 Bytes
Binary file not shown.

0 commit comments

Comments
 (0)