diff --git a/qlib/config.py b/qlib/config.py index a0b4aad28b..c3683cda2a 100644 --- a/qlib/config.py +++ b/qlib/config.py @@ -22,7 +22,7 @@ from typing import Callable, Optional, Union from typing import TYPE_CHECKING -from qlib.constant import REG_CN, REG_US, REG_TW +from qlib.constant import REG_CN, REG_US, REG_TW, REG_HK if TYPE_CHECKING: from qlib.utils.time import Freq @@ -307,6 +307,11 @@ def register_from_C(config, skip_register=True): "limit_threshold": 0.1, "deal_price": "close", }, + REG_HK: { + "trade_unit": 100, + "limit_threshold": 0.1, + "deal_price": "close", + }, } diff --git a/qlib/constant.py b/qlib/constant.py index ac6c76ae22..194a3bebb4 100644 --- a/qlib/constant.py +++ b/qlib/constant.py @@ -10,6 +10,7 @@ REG_CN = "cn" REG_US = "us" REG_TW = "tw" +REG_HK = "hk" # Epsilon for avoiding division by zero. EPS = 1e-12