Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion qlib/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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",
},
}


Expand Down
1 change: 1 addition & 0 deletions qlib/constant.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Loading