1
0
mirror of https://github.com/microsoft/qlib.git synced 2026-07-01 10:01:19 +08:00

Add REG_TW. (#955)

This commit is contained in:
Chia-hung Tai
2022-03-08 23:48:27 +08:00
committed by GitHub
parent 90be21bb40
commit 3a911bc09b
2 changed files with 7 additions and 1 deletions

View File

@@ -22,7 +22,7 @@ from pathlib import Path
from typing import Callable, Optional, Union
from typing import TYPE_CHECKING
from qlib.constant import REG_CN, REG_US
from qlib.constant import REG_CN, REG_US, REG_TW
if TYPE_CHECKING:
from qlib.utils.time import Freq
@@ -257,6 +257,11 @@ _default_region_config = {
"limit_threshold": None,
"deal_price": "close",
},
REG_TW: {
"trade_unit": 1000,
"limit_threshold": 0.1,
"deal_price": "close",
},
}

View File

@@ -4,6 +4,7 @@
# REGION CONST
REG_CN = "cn"
REG_US = "us"
REG_TW = "tw"
# Epsilon for avoiding division by zero.
EPS = 1e-12