mirror of
https://github.com/microsoft/qlib.git
synced 2026-07-12 07:16:54 +08:00
Add REG_TW. (#955)
This commit is contained in:
@@ -22,7 +22,7 @@ from pathlib import Path
|
|||||||
from typing import Callable, Optional, Union
|
from typing import Callable, Optional, Union
|
||||||
from typing import TYPE_CHECKING
|
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:
|
if TYPE_CHECKING:
|
||||||
from qlib.utils.time import Freq
|
from qlib.utils.time import Freq
|
||||||
@@ -257,6 +257,11 @@ _default_region_config = {
|
|||||||
"limit_threshold": None,
|
"limit_threshold": None,
|
||||||
"deal_price": "close",
|
"deal_price": "close",
|
||||||
},
|
},
|
||||||
|
REG_TW: {
|
||||||
|
"trade_unit": 1000,
|
||||||
|
"limit_threshold": 0.1,
|
||||||
|
"deal_price": "close",
|
||||||
|
},
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -4,6 +4,7 @@
|
|||||||
# REGION CONST
|
# REGION CONST
|
||||||
REG_CN = "cn"
|
REG_CN = "cn"
|
||||||
REG_US = "us"
|
REG_US = "us"
|
||||||
|
REG_TW = "tw"
|
||||||
|
|
||||||
# Epsilon for avoiding division by zero.
|
# Epsilon for avoiding division by zero.
|
||||||
EPS = 1e-12
|
EPS = 1e-12
|
||||||
|
|||||||
Reference in New Issue
Block a user