Skip to content

"Vibe-Trading: Your Personal Trading Agent"

feat(backtest): Korea equity (KRX: KOSPI/KOSDAQ) market support (#693)

Junghooneb511ad0aa55
diff --git a/agent/SKILL.md b/agent/SKILL.md
index 2941fc1f5..d3c1671c3 100644
--- a/agent/SKILL.md
+++ b/agent/SKILL.md
@@ -1,7 +1,7 @@
---
name: vibe-trading
version: 0.1.12
-description: Professional finance research toolkit — backtesting (8 engines + benchmark comparison panel), factor analysis, Alpha Zoo (462 pre-built alphas across qlib158/alpha101/gtja191/academic/fundamental), options pricing, 88 finance skills, 30 multi-agent swarm teams, Trade Journal analyzer, and Shadow Account (extract → backtest → render) across 23 market-data sources (tushare, yfinance, okx, binance, akshare, baostock, tencent, mootdx, ccxt, futu, mt5, local, eastmoney, sina, stooq, yahoo, india_broker, qveris, longbridge, plus optional-key finnhub/alphavantage/tiingo/fmp).
+description: Professional finance research toolkit — backtesting (9 engines + benchmark comparison panel), factor analysis, Alpha Zoo (462 pre-built alphas across qlib158/alpha101/gtja191/academic/fundamental), options pricing, 88 finance skills, 30 multi-agent swarm teams, Trade Journal analyzer, and Shadow Account (extract → backtest → render) across 24 market-data sources (tushare, yfinance, okx, binance, akshare, baostock, tencent, mootdx, ccxt, futu, mt5, local, eastmoney, sina, stooq, yahoo, pykrx, india_broker, qveris, longbridge, plus optional-key finnhub/alphavantage/tiingo/fmp).
dependencies:
python: ">=3.11"
pip:
@@ -23,7 +23,7 @@ mcp:
# Vibe-Trading
-Professional finance research toolkit with AI-powered backtesting (8 engines), multi-agent teams, 88 specialized skills, the **Alpha Zoo** (462 pre-built quantitative alphas across qlib158 / alpha101 / gtja191 / academic / fundamental with one-line CLI benchmarking), and the Shadow Account loop — extract your implicit trading rules from a journal, backtest them across A股/港股/美股/crypto, then see where they would have served you better.
+Professional finance research toolkit with AI-powered backtesting (9 engines), multi-agent teams, 88 specialized skills, the **Alpha Zoo** (462 pre-built quantitative alphas across qlib158 / alpha101 / gtja191 / academic / fundamental with one-line CLI benchmarking), and the Shadow Account loop — extract your implicit trading rules from a journal, backtest them across A股/港股/美股/crypto, then see where they would have served you better.
## Setup
@@ -74,9 +74,10 @@ Feed a CSV broker export (同花顺 / 东财 / 富途 / generic), and the agent
5. `scan_shadow_signals` — list today's symbols that match your shadow's entry cadence (research only).
### Backtesting
-Create and run quantitative strategies across 8 engines (ChinaA, GlobalEquity, IndiaEquity, Crypto, ChinaFutures, GlobalFutures, Forex + options) with 23 market-data sources (auto-detect + ordered fallback):
+Create and run quantitative strategies across 9 engines (ChinaA, GlobalEquity, IndiaEquity, KoreaEquity, Crypto, ChinaFutures, GlobalFutures, Forex + options) with 24 market-data sources (auto-detect + ordered fallback):
- **HK/US equities** via yfinance / stooq / yahoo (free, no API key); optionally via **Longbridge** historical OHLCV (`longbridge`, requires the optional SDK and `LONGBRIDGE_APP_KEY` / `LONGBRIDGE_APP_SECRET` / `LONGBRIDGE_ACCESS_TOKEN`). To force it for a run, set `"source": "longbridge"` in `config.json`.
- **India equities (NSE/BSE)** via yahoo / yfinance using `<SYMBOL>.NS` (NSE, e.g. `RELIANCE.NS`) or `<SCRIP>.BO` (BSE, e.g. `500325.BO`) — free, no API key. The `IndiaEquityEngine` models T+1 delivery, no overnight shorts (set `allow_short` for intraday), configurable circuit bands, 1-share lots, and the STT/stamp-duty/exchange/GST cost stack. Optionally back-fill from your live broker via the `india_broker` source (Shoonya/Dhan; requires broker login).
+- **Korea equities (KRX: KOSPI/KOSDAQ)** via pykrx using `<CODE>.KS` (KOSPI, e.g. `005930.KS`) or `<CODE>.KQ` (KOSDAQ, e.g. `247540.KQ`) — free, no API key (`pip install "vibe-trading-ai[krx]"`; yahoo/yfinance fallback needs no extra). pykrx serves **daily bars only** (an intraday request falls through to another source) and its adjusted series is Naver-backed rather than a verbatim KRX print. The `KoreaEquityEngine` models same-day round trips (no T+1), the ±30% daily price limit measured from the previous close and quantized to the KRX tick grid, tick-rounded fills, the 0.20% sell-side transaction tax (2026 rate), and 1-share lots. It is **long-only**: `allow_short` is refused, because KRX covered-short and uptick rules cannot be enforced on daily bars.
- **Cryptocurrency** via OKX or CCXT/100+ exchanges (free, no API key)
- **China A-shares** via AKShare / baostock / tencent / sina / eastmoney / mootdx (free, no API key) — `TUSHARE_TOKEN` optional for premium quality
- **Futures, forex, macro** via AKShare (free, no API key)
@@ -85,7 +86,7 @@ Create and run quantitative strategies across 8 engines (ChinaA, GlobalEquity, I
- **Premium cross-market data** via QVeris (optional API key)
- **Premium US data** via optional-key finnhub / alphavantage / tiingo / fmp (graceful fallback to free sources)
-Factors: the Alpha101 and QLib158 zoos are tagged for the `equity_in` universe, so they compute on NSE/BSE bars (the GTJA191 zoo stays China-only). Live/paper India trading uses the Shoonya / Dhan connectors (paper + read-only live; live order placement is structurally disabled because those brokers expose no paper/live switch).
+Factors: the Alpha101 and QLib158 zoos are tagged for the `equity_in` and `equity_kr` universes, so they compute on NSE/BSE and KRX bars (the GTJA191 zoo stays China-only). Live/paper India trading uses the Shoonya / Dhan connectors (paper + read-only live; live order placement is structurally disabled because those brokers expose no paper/live switch).
Example workflow:
1. Use `list_skills()` to discover strategy patterns
@@ -143,7 +144,7 @@ Use `load_skill(name)` to access full methodology docs with code templates.
| `factor_analysis` | IC/IR analysis + layered backtest | None* |
| `analyze_options` | Black-Scholes price + Greeks | None |
| `pattern_recognition` | Detect chart patterns (H&S, double top, etc.) | None |
-| `get_market_data` | Fetch OHLCV data (auto-detect + ordered fallback across 23 sources) | None* |
+| `get_market_data` | Fetch OHLCV data (auto-detect + ordered fallback across 24 sources) | None* |
| `get_fund_flow` | Capital fund-flow (main/retail net inflow) | None* |
| `get_dragon_tiger` | Dragon-tiger list (龙虎榜) top buyer/seller seats | None* |
| `get_northbound_flow` | Northbound (Stock Connect) net flow | None* |
diff --git a/agent/backtest/correlation.py b/agent/backtest/correlation.py
index ae5249f4c..06a763d2d 100644
--- a/agent/backtest/correlation.py
+++ b/agent/backtest/correlation.py
@@ -39,6 +39,8 @@ def infer_market(code: str) -> str:
return "hk_equity"
if code_upper.endswith((".SH", ".SZ", ".BJ")):
return "a_share"
+ if code_upper.endswith((".KS", ".KQ")):
+ return "kr_equity"
if code_upper.endswith(".US"):
return "us_equity"
if code_upper.isdigit():
diff --git a/agent/backtest/engines/_market_hooks.py b/agent/backtest/engines/_market_hooks.py
index 9a43fe43a..7636ed58c 100644
--- a/agent/backtest/engines/_market_hooks.py
+++ b/agent/backtest/engines/_market_hooks.py
@@ -30,6 +30,8 @@ _MARKET_PATTERNS = [
# India equities: NSE (RELIANCE.NS) / BSE (500325.BO); tickers may carry
# '&' and '-' (e.g. M&M.NS, BAJAJ-AUTO.NS).
(re.compile(r"^[A-Z0-9&.\-]+\.(NS|BO)$", re.I), "india_equity"),
+ # Korea equities: KOSPI (005930.KS) / KOSDAQ (247540.KQ), 6-digit codes.
+ (re.compile(r"^\d{6}\.(KS|KQ)$", re.I), "kr_equity"),
(re.compile(r"^[A-Z]+-USDT$", re.I), "crypto"),
(re.compile(r"^[A-Z]+/USDT$", re.I), "crypto"),
# China futures: product+delivery.exchange (e.g. IF2406.CFFEX, rb2410.SHFE)
diff --git a/agent/backtest/engines/composite.py b/agent/backtest/engines/composite.py
index 26b150e73..87ccbcdda 100644
--- a/agent/backtest/engines/composite.py
+++ b/agent/backtest/engines/composite.py
@@ -40,6 +40,9 @@ def _build_rule_engines(config: dict, codes: List[str]) -> Dict[str, BaseEngine]
elif market == "india_equity":
from backtest.engines.india_equity import IndiaEquityEngine
engines["india_equity"] = IndiaEquityEngine(config)
+ elif market == "kr_equity":
+ from backtest.engines.korea_equity import KoreaEquityEngine
+ engines["kr_equity"] = KoreaEquityEngine(config)
elif market == "crypto":
from backtest.engines.crypto import CryptoEngine
engines["crypto"] = CryptoEngine(config)
diff --git a/agent/backtest/engines/korea_equity.py b/agent/backtest/engines/korea_equity.py
new file mode 100644
index 000000000..52386fae1
--- /dev/null
+++ b/agent/backtest/engines/korea_equity.py
@@ -0,0 +1,316 @@
+"""Korea equity (KRX: KOSPI / KOSDAQ) backtest engine.
+
+Models the Korean cash-equity segment on daily bars. Prices are assumed to be
+quoted in KRW, which KRX prints as whole won on a coarse tick grid — the grid is
+modelled explicitly below because a percentage-only model produces fill prices
+that cannot exist and mis-identifies locked-limit bars.
+
+Market rules:
+ - Same-day round trips are allowed: shares bought today CAN be sold the same
+ day (unlike China A-share T+1 or India delivery), so there is no same-bar
+ sell block.
+ - **Long-only by construction.** KRX short selling is covered-only and
+ uptick-constrained (차입공매도 / 업틱룰), and neither constraint is
+ representable on daily bars, so ``allow_short=True`` is *refused* at
+ construction rather than silently mis-modelled.
+ - Price limit: ±30% daily band on both KOSPI and KOSDAQ (since June 2015),
+ measured from the base price (기준가격 — normally the previous trading
+ day's close) and quantized to the tick grid. Set ``price_limit`` to ``0`` /
+ ``None`` to disable.
+ - Lot size: 1 share (KRX abolished the 10-share odd-lot rule in 2014).
+
+Cost stack (discount-broker defaults; all config-driven):
+ - Brokerage: 0.015% per side (typical online rate) [kr_brokerage]
+ - Securities transaction tax: 0.20% on the SELL side [kr_tax_sell]
+ From transfers on/after 2026-01-01 the aggregate sell-side rate is 0.20%
+ on both boards, restored after the financial-investment-income tax was
+ scrapped: KOSPI = 0.05% 증권거래세 + 0.15% 농어촌특별세, KOSDAQ = 0.20%
+ 증권거래세 with no surtax (증권거래세법 시행령 제5조 탄력세율 as amended
+ by 대통령령 제36001호; 농어촌특별세법 제5조). KONEX stays at 0.10% — pass
+ ``kr_tax_sell=0.001`` for KONEX names. Rates are revised periodically;
+ verify ``kr_*`` against the current schedule before trusting absolute cost
+ figures.
+
+Tick grid source: KRX regulation portal (호가가격단위) —
+https://regulation.krx.co.kr/contents/RGL/03/03010100/RGL03010100T3.jsp (KOSPI)
+and https://regulation.krx.co.kr/contents/RGL/03/03020100/RGL03020100.jsp
+(KOSDAQ). The 2023-01-25 reform **unified** the two boards' tables and removed
+the old high-price divergence, so one table now serves both. Note that KRX's
+English "Guide to Trading in the Korean Stock Market" PDF still prints the
+pre-2023 bands (1,000 / 10,000 / 100,000 boundaries, KOSDAQ capped at 100 KRW)
+— it is stale; the Korean regulation portal above is authoritative.
+
+Price-limit arithmetic follows the published KRX procedure rather than a naive
+``base * 1.3``: the 30% band amount is truncated to the *base price's* tick
+unit, then added to / subtracted from the base, then truncated again to the
+resulting price's own tick unit. KRX worked example (기준가격 9,980):
+9,980 x 0.3 = 2,994 -> 2,990 -> upper 12,970 / lower 6,990.
+"""
+
+from __future__ import annotations
+
+import logging
+from typing import Optional
+
+import pandas as pd
+
+from backtest.engines.base import BaseEngine
+
+logger = logging.getLogger(__name__)
+
+# KRX quotation price units (호가가격단위): (lower bound inclusive, tick).
+# Unified across KOSPI / KOSDAQ / KONEX since 2023-01-25. Every coarser tick is
+# an exact multiple of every finer one, which is what makes the truncation
+# arithmetic below stable across band boundaries.
+KRX_TICK_TABLE: tuple[tuple[float, float], ...] = (
+ (0.0, 1.0),
+ (2_000.0, 5.0),
+ (5_000.0, 10.0),
+ (20_000.0, 50.0),
+ (50_000.0, 100.0),
+ (200_000.0, 500.0),
+ (500_000.0, 1_000.0),
+)
+
+# Tick-grid comparisons only need to survive float representation error: every
+# quantized price is a whole number of won, so 1e-9 is far below one tick.
+_PRICE_EPS = 1e-9
+
+
+def krx_tick_size(price: float) -> float:
+ """Return the KRX tick unit applicable at *price*.
+
+ Args:
+ price: Price in KRW. Non-positive input returns the finest tick.
+
+ Returns:
+ The tick unit (KRW) for the band containing *price*; bands are
+ lower-bound inclusive (``이상`` / ``미만``), so 2,000 KRW -> 5 KRW.
+ """
+ tick = KRX_TICK_TABLE[0][1]
+ for lower, unit in KRX_TICK_TABLE:
+ if price >= lower:
+ tick = unit
+ else:
+ break
+ return tick
+
+
+def krx_round_down(price: float) -> float:
+ """Truncate *price* down onto the tick grid (KRX ``절사``)."""
+ tick = krx_tick_size(price)
+ return float(int((price + _PRICE_EPS) / tick) * tick)
+
+
+def krx_round_up(price: float) -> float:
+ """Round *price* up onto the tick grid (KRX ``절상``), never below one tick."""
+ tick = krx_tick_size(price)
+ steps = int((price - _PRICE_EPS) / tick)
+ if steps * tick < price - _PRICE_EPS:
+ steps += 1
+ return float(max(steps, 1) * tick)
+
+
+def krx_price_limits(base_price: float, limit: float) -> tuple[float, float]:
+ """Return the (upper, lower) KRX limit prices for a base price.
+
+ Implements the published three-step procedure: the band amount is
+ ``base * limit`` truncated to the base price's tick unit, and each limit
+ price is then truncated to its own tick unit (the lower limit is already
+ grid-aligned because coarser ticks are multiples of finer ones, so only the
+ upper limit can move).
+
+ Args:
+ base_price: Base price (기준가격), normally the previous close, already
+ snapped onto the tick grid by the caller.
+ limit: Band width as a fraction (0.30 for the standard ±30%).
+
+ Returns:
+ ``(upper_limit, lower_limit)`` in KRW.
+ """
+ base_tick = krx_tick_size(base_price)
+ band_amount = max(int((base_price * limit + _PRICE_EPS) / base_tick), 1) * base_tick
+ return (
+ krx_round_down(base_price + band_amount),
+ krx_round_down(max(base_price - band_amount, base_tick)),
+ )
+
+
+class KoreaEquityEngine(BaseEngine):
+ """KRX (KOSPI / KOSDAQ) cash-equity engine — long-only.
+
+ Config keys (all optional; defaults shown in the module docstring):
+ - price_limit: float fraction or None, default 0.30
+ - slippage: default 0.001
+ - kr_brokerage / kr_tax_sell
+
+ Raises:
+ ValueError: When ``allow_short`` is truthy. KRX covered-short and
+ uptick rules are not modelled, so shorting is refused instead of
+ being simulated incorrectly. A cross-market composite run shares one
+ config across its sub-engines, so pairing ``allow_short`` with a KRX
+ symbol fails the whole run — deliberately, since the alternative is
+ a KRX leg that silently never shorts while the rest of the book
+ does.
+ """
+
+ def __init__(self, config: dict):
+ config = {**config, "leverage": 1.0} # cash equity: no leverage
+ super().__init__(config)
+ if config.get("allow_short"):
+ raise ValueError(
+ "KoreaEquityEngine is long-only: KRX short selling is "
+ "covered-only (차입공매도) and uptick-constrained, and neither "
+ "rule can be enforced on daily bars. Remove 'allow_short' "
+ "instead of running a mis-modelled short book."
+ )
+ self.price_limit = config.get("price_limit", 0.30)
+ self.slippage_rate: float = config.get("slippage", 0.001)
+ # Cost stack
+ self.kr_brokerage: float = config.get("kr_brokerage", 0.00015)
+ self.kr_tax_sell: float = config.get("kr_tax_sell", 0.0020)
+ # One warning per engine when no base price is derivable (see _base_price).
+ self._limit_base_warned = False
+
+ def can_execute(self, symbol: str, direction: int, bar: pd.Series) -> bool:
+ """KRX execution rules.
+
+ The price-limit test compares the *prospective fill price* — this bar's
+ open plus slippage, which is what :class:`BaseEngine` fills at — against
+ limit prices derived from the previous bar's close. Deriving the move
+ from the current bar's close instead (the china_a/india pattern) would
+ be lookahead: ``BaseEngine`` calls this hook before the fill, and the
+ decision bar's close is not known then.
+
+ Args:
+ symbol: KRX symbol (e.g. ``005930.KS``, ``247540.KQ``).
+ direction: 1 (buy), -1 (short), 0 (sell/close).
+ bar: Current bar (needs ``open``; the base price comes from
+ ``pre_close`` when the source supplies it, else from the prior
+ bar of the run's own close panel).
+
+ Returns:
+ True if the trade is allowed.
+ """
+ # 1. Short selling: structurally unavailable (see class docstring).
+ if direction == -1:
+ return False
+
+ # 2. Same-day sell is allowed on KRX — no T+1 interception.
+
+ # 3. Daily price limit ±30% (disabled when falsy).
+ if not self.price_limit:
+ return True
+
+ base_price = self._base_price(symbol, bar)
+ if base_price is None:
+ if not self._limit_base_warned:
+ self._limit_base_warned = True
+ logger.warning(
+ "%s: no base price available (no 'pre_close' column and no "
+ "prior close panel row) — the KRX ±%.0f%% limit check is "
+ "inactive for this run",
+ symbol,
+ float(self.price_limit) * 100,
+ )
+ return True
+
+ open_price = float(bar.get("open", bar.get("close", 0.0)) or 0.0)
+ if open_price <= 0:
+ return True # order sizing rejects non-positive prices downstream
+
+ upper, lower = krx_price_limits(base_price, float(self.price_limit))
+ fill_price = self.apply_slippage(open_price, direction if direction else -1)
+ if direction == 1 and fill_price >= upper - _PRICE_EPS:
+ return False # limit-up (상한가): no ask to buy from
+ if direction == 0 and fill_price <= lower + _PRICE_EPS:
+ return False # limit-down (하한가): no bid to sell into
+ return True
+
+ def _base_price(self, symbol: str, bar: pd.Series) -> Optional[float]:
+ """Resolve the KRX base price (기준가격) for *symbol* on this bar.
+
+ Both sources are strictly historical, so neither leaks the decision
+ bar's own close into the pre-fill check:
+ 1. ``pre_close`` on the bar, when the data source supplies one.
+ 2. The previous row of the close panel that :class:`BaseEngine`
+ pre-extracts for the run (unavailable in a cross-market composite
+ run, whose sub-engines are stateless rule books).
+
+ An off-grid close (pykrx's adjusted series is Naver-rebased and need not
+ land on a tick) is rounded up onto the grid, which is KRX's own rule for
+ a base price that falls between ticks (``절상``).
+
+ Args:
+ symbol: Symbol whose base price is wanted.
+ bar: Current bar.
+
+ Returns:
+ The base price in KRW, or ``None`` when no historical close is
+ reachable (first bar of a run, or a composite sub-engine).
+ """
+ candidate: Optional[float] = None
+ if "pre_close" in bar.index:
+ raw = bar["pre_close"]
+ if pd.notna(raw) and float(raw) > 0:
+ candidate = float(raw)
+
+ if candidate is None:
+ close_arr = getattr(self, "_close_arr", None)
+ col = getattr(self, "_code_to_col", {}).get(symbol)
+ row = getattr(self, "_bar_idx", 0) - 1
+ if close_arr is not None and col is not None and row >= 0:
+ raw = close_arr[row, col]
+ if pd.notna(raw) and float(raw) > 0:
+ candidate = float(raw)
+
+ return None if candidate is None else krx_round_up(candidate)
+
+ def round_size(self, raw_size: float, price: float) -> float:
+ """Cash equity trades in 1-share lots."""
+ return float(max(int(raw_size), 0))
+
+ def calc_commission(self, size: float, price: float, direction: int, is_open: bool) -> float:
+ """Korea cost stack: bilateral brokerage + transaction tax on sells.
+
+ The tax follows the actual trade side rather than open/close: a closing
+ trade on a long book is a sell (taxable), while an opening short would
+ be the taxable leg and its buy-to-cover would not be. ``BaseEngine``
+ passes the position direction on both hooks, so the side is derivable
+ even though this engine is long-only today.
+
+ Args:
+ size: Share count.
+ price: Fill price in KRW.
+ direction: 1 for a long book, -1 for a short book.
+ is_open: True for the opening leg, False for the closing leg.
+
+ Returns:
+ Total cost in KRW for this leg.
+ """
+ notional = size * price
+ comm = notional * self.kr_brokerage
+ is_sell = (direction < 0) if is_open else (direction > 0)
+ if is_sell:
+ comm += notional * self.kr_tax_sell
+ return comm
+
+ def apply_slippage(self, price: float, direction: int) -> float:
+ """Korea slippage (configurable), quantized onto the KRX tick grid.
+
+ A slipped price is snapped away from the trader — buys up to the next
+ valid ask, sells down to the next valid bid — because no fill can land
+ between ticks. The residual rounding is bounded by one tick unit
+ (<= 0.25% of price across the whole table).
+
+ Args:
+ price: Reference price in KRW.
+ direction: 1 to buy, -1 to sell.
+
+ Returns:
+ A valid KRX price, never below one tick.
+ """
+ slipped = price * (1 + direction * self.slippage_rate)
+ if direction > 0:
+ return krx_round_up(slipped)
+ return max(krx_round_down(slipped), krx_tick_size(slipped))
diff --git a/agent/backtest/loaders/pykrx_loader.py b/agent/backtest/loaders/pykrx_loader.py
new file mode 100644
index 000000000..06e3ecc85
--- /dev/null
+++ b/agent/backtest/loaders/pykrx_loader.py
@@ -0,0 +1,193 @@
+"""pykrx loader: free, no-auth KRX (KOSPI/KOSDAQ) EOD OHLCV.
+
+Fetches Korean equity **daily** bars through the `pykrx
+<https://github.com/sharebook-kr/pykrx>`_ package. No API key.
+
+Provenance caveat (be precise about what this data is): ``pykrx`` exposes both
+a raw KRX path and an adjusted-price path, and
+``stock.get_market_ohlcv_by_date`` defaults to ``adjusted=True``. The adjusted
+path is served by Naver rather than by KRX's own endpoint (upstream discussion:
+https://github.com/sharebook-kr/pykrx/issues/270). This loader passes
+``adjusted=True`` **explicitly** — split/consolidation-adjusted bars are what a
+backtest needs — so be clear that the series is *Naver-backed adjusted* data,
+not a verbatim KRX print. Nothing here silently inherits that choice.
+
+Symbol convention (Vibe-Trading -> pykrx):
+ * ``005930.KS`` (KOSPI) / ``247540.KQ`` (KOSDAQ) -> bare 6-digit ticker
+ ``005930``. The ``.KS``/``.KQ`` suffix follows the Yahoo convention already
+ used for market inference elsewhere; pykrx itself takes the bare code and
+ does not care which board it trades on.
+
+pykrx returns a DataFrame indexed by date with Korean column names
+(시가/고가/저가/종가/거래량), renamed here to the project's canonical
+``open/high/low/close/volume``.
+
+Politeness: pykrx's README asks callers to keep at least ~1 second between
+bulk requests, so spacing defaults to 1.0s and runs through the shared,
+lock-protected :class:`~backtest.loaders._http.HostThrottle` rather than a
+module-global timestamp (which raced under concurrent fetches). Override with
+``VIBE_TRADING_PYKRX_MIN_INTERVAL``.
+"""
+
+from __future__ import annotations
+
+import logging
+from typing import Dict, List, Optional
+
+import pandas as pd
+
+from backtest.loaders._http import HostThrottle, resolve_min_interval
+from backtest.loaders.base import cached_loader_fetch, validate_date_range
+from backtest.loaders.registry import register
+
+logger = logging.getLogger(__name__)
+
+_COLUMN_MAP = {
+ "시가": "open",
+ "고가": "high",
+ "저가": "low",
+ "종가": "close",
+ "거래량": "volume",
+}
+_OUTPUT_COLUMNS = ["open", "high", "low", "close", "volume"]
+
+# Daily-only upstream API. Accepting anything else would cache day bars under an
+# intraday key and run a 1m/1H/4H backtest on daily data.
+_DAILY_INTERVALS = frozenset({"1d", "d", "day", "daily"})
+
+# pykrx owns its own HTTP session, so requests cannot route through
+# ``throttled_get``; the spacing gate is reused on its own.
+_HOST_KEY = "pykrx"
+_MIN_INTERVAL_ENV = "VIBE_TRADING_PYKRX_MIN_INTERVAL"
+_DEFAULT_MIN_INTERVAL_S = 1.0
+_THROTTLE = HostThrottle()
+
+
+def map_symbol(symbol: str) -> str:
+ """``005930.KS`` / ``247540.KQ`` -> pykrx's bare 6-digit ticker."""
+ return symbol.strip().upper().removesuffix(".KS").removesuffix(".KQ")
+
+
+def _min_interval() -> float:
+ """Resolve the per-call minimum spacing, honoring the env override."""
+ return resolve_min_interval(_MIN_INTERVAL_ENV, _DEFAULT_MIN_INTERVAL_S)
+
+
+@register
+class DataLoader:
+ """KRX (KOSPI/KOSDAQ) EOD OHLCV loader via pykrx (free, no auth)."""
+
+ name = "pykrx"
+ markets = {"kr_equity"}
+ requires_auth = False
+
+ def is_available(self) -> bool:
+ """Available when the optional ``pykrx`` package is importable."""
+ try:
+ import pykrx # noqa: F401
+ except ImportError:
+ return False
+ return True
+
+ def fetch(
+ self,
+ codes: List[str],
+ start_date: str,
+ end_date: str,
+ *,
+ interval: str = "1D",
+ fields: Optional[List[str]] = None,
+ ) -> Dict[str, pd.DataFrame]:
+ """Fetch daily OHLCV bars for ``codes`` over ``[start_date, end_date]``.
+
+ Args:
+ codes: Project-side symbols (e.g. ``["005930.KS", "247540.KQ"]``).
+ start_date: Inclusive start date (``YYYY-MM-DD``).
+ end_date: Inclusive end date (``YYYY-MM-DD``).
+ interval: Only daily (``"1D"``) is supported. Any other value is
+ rejected with an empty result so the runner's fallback chain can
+ reach a source that actually serves that bar size.
+ fields: Unused — pykrx always returns the full OHLCV set.
+
+ Returns:
+ Mapping ``{symbol: DataFrame}`` for symbols that returned data,
+ each indexed by ``trade_date`` with float OHLCV columns ascending.
+ A failing or empty symbol is omitted, never aborting the batch.
+ Empty when ``interval`` is not daily.
+ """
+ validate_date_range(start_date, end_date)
+
+ # Daily-only API; do not silently return day bars for runner ``1H``/``4H``.
+ if str(interval).strip().lower() not in _DAILY_INTERVALS:
+ logger.warning(
+ "pykrx supports daily bars only; rejecting interval=%r",
+ interval,
+ )
+ return {}
+
+ result: Dict[str, pd.DataFrame] = {}
+ for code in codes:
+ try:
+ df = cached_loader_fetch(
+ source=self.name,
+ symbol=code,
+ timeframe=interval,
+ start_date=start_date,
+ end_date=end_date,
+ fields=None,
+ fetch=lambda code=code: self._fetch_one(code, start_date, end_date),
+ )
+ if df is not None and not df.empty:
+ result[code] = df
+ except Exception as exc: # noqa: BLE001 - one bad symbol must not abort the batch
+ logger.warning("pykrx failed for %s: %s", code, exc)
+ return result
+
+ def _fetch_one(
+ self, code: str, start_date: str, end_date: str,
+ ) -> Optional[pd.DataFrame]:
+ """Fetch and normalize one symbol; ``None`` when KRX has no data.
+
+ ``adjusted=True`` is passed explicitly: it is pykrx's own default, but
+ stating it keeps the Naver-backed adjusted-price provenance (see the
+ module docstring) visible at the call site instead of implied.
+ """
+ from pykrx import stock
+
+ _THROTTLE.wait(_HOST_KEY, _min_interval())
+ frame = stock.get_market_ohlcv_by_date(
+ pd.Timestamp(start_date).strftime("%Y%m%d"),
+ pd.Timestamp(end_date).strftime("%Y%m%d"),
+ map_symbol(code),
+ adjusted=True,
+ )
+ return _normalize(frame)
+
+
+def _normalize(frame: Optional[pd.DataFrame]) -> Optional[pd.DataFrame]:
+ """Convert a raw pykrx OHLCV frame into the project's canonical shape.
+
+ Args:
+ frame: pykrx output — date-indexed with Korean column names
+ (시가/고가/저가/종가/거래량) — or ``None``/empty when KRX has no
+ data for the symbol/window.
+
+ Returns:
+ A frame indexed by ``trade_date`` with float OHLCV columns sorted
+ ascending, or ``None`` when the input carries no usable rows.
+ """
+ if frame is None or frame.empty:
+ return None
+
+ frame = frame.rename(columns=_COLUMN_MAP)
+ if not all(col in frame.columns for col in _OUTPUT_COLUMNS):
+ return None
+ frame.index = pd.to_datetime(frame.index)
+ frame.index.name = "trade_date"
+ frame = frame[_OUTPUT_COLUMNS].sort_index()
+ for col in _OUTPUT_COLUMNS:
+ frame[col] = pd.to_numeric(frame[col], errors="coerce")
+ frame = frame.dropna(subset=["open", "high", "low", "close"])
+ if frame.empty:
+ return None
+ return frame.astype(float)
diff --git a/agent/backtest/loaders/registry.py b/agent/backtest/loaders/registry.py
index 4cb97d9ed..8887eaec4 100644
--- a/agent/backtest/loaders/registry.py
+++ b/agent/backtest/loaders/registry.py
@@ -51,6 +51,7 @@ VALID_SOURCES: set[str] = {
"fmp",
"qveris", # QVERIS-INTEGRATION
"india_broker",
+ "pykrx",
"longbridge",
"mt5",
"local",
@@ -100,6 +101,7 @@ def _ensure_registered() -> None:
"backtest.loaders.fmp_loader",
"backtest.loaders.qveris_loader", # QVERIS-INTEGRATION
"backtest.loaders.india_broker_loader",
+ "backtest.loaders.pykrx_loader",
"backtest.loaders.longbridge",
"backtest.loaders.mt5_loader",
"backtest.loaders.local_loader",
@@ -136,6 +138,7 @@ FALLBACK_CHAINS: dict[str, list[str]] = {
"us_equity": ["yahoo", "stooq", "sina", "eastmoney", "yfinance", "tiingo", "fmp", "finnhub", "alphavantage", "longbridge", "akshare", "local"],
"hk_equity": ["eastmoney", "yahoo", "futu", "yfinance", "akshare", "longbridge", "local"],
"india_equity": ["yahoo", "yfinance", "india_broker", "local"],
+ "kr_equity": ["pykrx", "yahoo", "yfinance", "local"],
# OKX first (native), then dedicated Binance, then generic CCXT / Yahoo.
"crypto": ["okx", "binance", "ccxt", "yfinance", "local"],
"futures": ["tushare", "akshare", "local"],
diff --git a/agent/backtest/loaders/yahoo_loader.py b/agent/backtest/loaders/yahoo_loader.py
index febce52a5..95bd27376 100644
--- a/agent/backtest/loaders/yahoo_loader.py
+++ b/agent/backtest/loaders/yahoo_loader.py
@@ -43,12 +43,13 @@ _INTERVAL_MAP = {
def _is_supported(code: str) -> bool:
"""Return whether *code* is a symbol this loader handles.
- Covers US/HK/India equities plus Yahoo's own futures (``GC=F``) and forex
- (``EURUSD=X``) suffix conventions, which the public chart endpoint serves
- verbatim (the code is used as-is in the request URL, no conversion) (#718).
+ Covers US/HK/India/Korea equities plus Yahoo's own futures (``GC=F``) and
+ forex (``EURUSD=X``) suffix conventions, which the public chart endpoint
+ serves verbatim (the code is used as-is in the request URL, no
+ conversion) (#718).
"""
upper = code.strip().upper()
- return upper.endswith((".US", ".HK", ".NS", ".BO", "=F", "=X"))
+ return upper.endswith((".US", ".HK", ".NS", ".BO", ".KS", ".KQ", "=F", "=X"))
def _to_yahoo_interval(interval: str) -> str:
@@ -171,7 +172,7 @@ class DataLoader:
"""Yahoo Finance US/HK equity OHLCV loader (free, direct HTTP, no auth)."""
name = "yahoo"
- markets = {"us_equity", "hk_equity", "india_equity"}
+ markets = {"us_equity", "hk_equity", "india_equity", "kr_equity"}
requires_auth = False
def is_available(self) -> bool:
diff --git a/agent/backtest/loaders/yfinance_loader.py b/agent/backtest/loaders/yfinance_loader.py
index 735fc4ae1..4c924e613 100644
--- a/agent/backtest/loaders/yfinance_loader.py
+++ b/agent/backtest/loaders/yfinance_loader.py
@@ -69,7 +69,8 @@ def _to_yfinance_symbol(code: str) -> str:
return upper[:-5] + "-USD"
if upper.endswith("-USDC"):
return upper[:-5] + "-USD"
- # India NSE/BSE (RELIANCE.NS, 500325.BO): yfinance carries the suffix as-is.
+ # India NSE/BSE (RELIANCE.NS, 500325.BO) and Korea KRX (005930.KS,
+ # 247540.KQ): yfinance carries these suffixes as-is.
return upper
@@ -223,7 +224,7 @@ class DataLoader:
"""Fetch HK/US equity bars from Yahoo Finance via yfinance."""
name = "yfinance"
- markets = {"us_equity", "hk_equity", "india_equity", "crypto"}
+ markets = {"us_equity", "hk_equity", "india_equity", "kr_equity", "crypto"}
requires_auth = False
def is_available(self) -> bool:
diff --git a/agent/backtest/metrics.py b/agent/backtest/metrics.py
index ee3b146a4..ba4e0cf43 100644
--- a/agent/backtest/metrics.py
+++ b/agent/backtest/metrics.py
@@ -36,12 +36,18 @@ _TRADING_DAYS = {
"local": 252, "qveris": 252,
# Indian equity
"india_broker": 252,
+ # Korean equity (KRX)
+ "pykrx": 252,
}
# mt5 is a forex/CFD feed: 24x5 sessions → 260 trading days, 24h intraday bars.
# US equity (yfinance-style): 6.5h sessions → 390 1m bars/day.
# A-share equity (tushare-style): 4.0h sessions → 240 1m bars/day.
# Crypto (okx/ccxt-style): 24h sessions → 1440 1m bars/day.
# Indian equity: 6.25h sessions → 375 1m bars/day.
+# Korean equity (pykrx): 6.5h sessions → 390 1m bars/day. The loader itself
+# serves daily bars only, so the intraday rows exist to keep the table complete
+# (and correct if KRX intraday ever arrives under this key), not because pykrx
+# can return them.
_BARS_PER_DAY = {
# --- US/international equity (6.5h session) ---
"1m": {"yfinance": 390, "yahoo": 390, "finnhub": 390, "alphavantage": 390,
@@ -56,6 +62,8 @@ _BARS_PER_DAY = {
"mt5": 1440,
# Indian equity (6.25h session)
"india_broker": 375,
+ # Korean equity (6.5h session, 09:00-15:30 KST)
+ "pykrx": 390,
},
"5m": {"yfinance": 78, "yahoo": 78, "finnhub": 78, "alphavantage": 78,
"tiingo": 78, "fmp": 78, "stooq": 78, "longbridge": 78,
@@ -65,6 +73,7 @@ _BARS_PER_DAY = {
"okx": 288, "ccxt": 288, "binance": 288,
"mt5": 288,
"india_broker": 75,
+ "pykrx": 78,
},
"15m": {"yfinance": 26, "yahoo": 26, "finnhub": 26, "alphavantage": 26,
"tiingo": 26, "fmp": 26, "stooq": 26, "longbridge": 26,
@@ -74,6 +83,7 @@ _BARS_PER_DAY = {
"okx": 96, "ccxt": 96, "binance": 96,
"mt5": 96,
"india_broker": 25,
+ "pykrx": 26,
},
"30m": {"yfinance": 13, "yahoo": 13, "finnhub": 13, "alphavantage": 13,
"tiingo": 13, "fmp": 13, "stooq": 13, "longbridge": 13,
@@ -83,6 +93,7 @@ _BARS_PER_DAY = {
"okx": 48, "ccxt": 48, "binance": 48,
"mt5": 48,
"india_broker": 13,
+ "pykrx": 13,
},
"1H": {"yfinance": 7, "yahoo": 7, "finnhub": 7, "alphavantage": 7,
"tiingo": 7, "fmp": 7, "stooq": 7, "longbridge": 7,
@@ -92,6 +103,7 @@ _BARS_PER_DAY = {
"okx": 24, "ccxt": 24, "binance": 24,
"mt5": 24,
"india_broker": 7,
+ "pykrx": 7,
},
"4H": {"yfinance": 2, "yahoo": 2, "finnhub": 2, "alphavantage": 2,
"tiingo": 2, "fmp": 2, "stooq": 2, "longbridge": 2,
@@ -101,6 +113,7 @@ _BARS_PER_DAY = {
"okx": 6, "ccxt": 6, "binance": 6,
"mt5": 6,
"india_broker": 2,
+ "pykrx": 2,
},
"1D": {"yfinance": 1, "yahoo": 1, "finnhub": 1, "alphavantage": 1,
"tiingo": 1, "fmp": 1, "stooq": 1, "longbridge": 1,
@@ -110,6 +123,7 @@ _BARS_PER_DAY = {
"okx": 1, "ccxt": 1, "binance": 1,
"mt5": 1,
"india_broker": 1,
+ "pykrx": 1,
},
}
diff --git a/agent/backtest/runner.py b/agent/backtest/runner.py
index c1d88f7b2..d5c7b7b4d 100644
--- a/agent/backtest/runner.py
+++ b/agent/backtest/runner.py
@@ -532,6 +532,7 @@ _MARKET_TO_SOURCE = {
"us_equity": "yfinance",
"hk_equity": "yfinance",
"india_equity": "yahoo",
+ "kr_equity": "pykrx",
"crypto": "okx",
"futures": "tushare",
"fund": "tushare",
@@ -1020,6 +1021,12 @@ def _create_market_engine(source: str, config: dict, codes: List[str]):
from backtest.engines.india_equity import IndiaEquityEngine
return IndiaEquityEngine(config)
+ # Korea equity routing — same reason as India: its effective source
+ # (``pykrx``) has no Wave-1 branch and would fall through to the default.
+ if "kr_equity" in markets:
+ from backtest.engines.korea_equity import KoreaEquityEngine
+ return KoreaEquityEngine(config)
+
# Original routing (Wave 1)
if source in ("okx", "ccxt"):
from backtest.engines.crypto import CryptoEngine
@@ -1071,7 +1078,12 @@ def _fetch_auto(codes: List[str], config: dict, interval: str = "1D") -> dict:
Args:
codes: All symbols.
- config: Backtest config dict.
+ config: Backtest config dict. On success the loaders that actually
+ returned rows are recorded under the private key
+ ``_actual_sources`` so the caller can report true provenance
+ instead of the symbol-pattern guess (``_group_codes_by_source``
+ names the *head* of each chain, which lies whenever that head is an
+ optional package that is not installed).
interval: Bar interval string.
Returns:
@@ -1079,6 +1091,7 @@ def _fetch_auto(codes: List[str], config: dict, interval: str = "1D") -> dict:
"""
market_groups = _group_codes_by_market(codes)
merged = {}
+ served_by: set[str] = set()
start_date = config.get("start_date", "")
end_date = config.get("end_date", "")
@@ -1105,6 +1118,8 @@ def _fetch_auto(codes: List[str], config: dict, interval: str = "1D") -> dict:
market_result = _restore_original_codes(
result, market_codes, normalized_codes
)
+ if market_result:
+ served_by.add(src_name)
missing = [code for code in market_codes if code not in market_result]
# Retry only missing symbols so a partial primary response does not
@@ -1125,6 +1140,7 @@ def _fetch_auto(codes: List[str], config: dict, interval: str = "1D") -> dict:
if mapped:
market_result.update(mapped)
missing = [code for code in missing if code not in mapped]
+ served_by.add(str(getattr(fb_loader, "name", fb_name) or fb_name))
logger.info(
"Runtime fallback: %s -> %s for %s", src_name, fb_name, market
)
@@ -1135,6 +1151,7 @@ def _fetch_auto(codes: List[str], config: dict, interval: str = "1D") -> dict:
)
merged.update(market_result)
+ config["_actual_sources"] = sorted(served_by)
return merged
@@ -1158,11 +1175,28 @@ def fetch_data_map(config: dict) -> DataFetchResult:
if source == "auto":
data_map = _fetch_auto(codes, config, interval)
loader: Any = _AutoLoader(data_map)
- used_sources: list[str] = []
+ # Prefer the loaders that actually served rows; the symbol-pattern guess
+ # is only a fallback for a stubbed/patched fetcher that recorded nothing.
+ recorded = config.pop("_actual_sources", None)
+ used_sources: list[str] = [
+ str(name) for name in recorded or [] if str(name).strip()
+ ] or sorted(_group_codes_by_source(codes))
else:
codes = _normalize_codes(codes, source)
primary_source = source
loader = _get_loader(source)()
+ # ``_get_loader`` may hand back a *different* loader when the requested
+ # one is unavailable (e.g. an optional package like pykrx is missing, so
+ # the kr_equity chain resolves to yahoo). Record who actually served the
+ # bars, never the name that was asked for — a run card that claims
+ # ``pykrx`` while Yahoo supplied the data is a provenance lie.
+ served_by = str(getattr(loader, "name", source) or source)
+ if served_by != source:
+ logger.warning(
+ "source=%s is unavailable; %s served this request",
+ source,
+ served_by,
+ )
data_map = loader.fetch(
codes,
config.get("start_date", ""),
@@ -1170,7 +1204,7 @@ def fetch_data_map(config: dict) -> DataFetchResult:
fields=config.get("extra_fields") or None,
interval=interval,
)
- used_sources = [source] if data_map else []
+ used_sources = [served_by] if data_map else []
missing = [code for code in codes if code not in data_map]
if missing:
logger.warning(
@@ -1206,12 +1240,16 @@ def fetch_data_map(config: dict) -> DataFetchResult:
if mapped:
data_map.update(mapped)
missing = [code for code in missing if code not in mapped]
+ fb_served_by = str(
+ getattr(fallback_loader, "name", fallback_source)
+ or fallback_source
+ )
if not used_sources:
- source = fallback_source
+ source = fb_served_by
loader = fallback_loader
- used_sources.append(fallback_source)
+ used_sources.append(fb_served_by)
logger.info(
- "Runtime fallback: %s -> %s", primary_source, fallback_source
+ "Runtime fallback: %s -> %s", primary_source, fb_served_by
)
if missing:
@@ -1220,15 +1258,12 @@ def fetch_data_map(config: dict) -> DataFetchResult:
)
data_map = _sanitize_data_map(data_map)
- effective_sources = (
- sorted(_group_codes_by_source(codes)) if source == "auto" else used_sources
- )
return DataFetchResult(
data_map=data_map,
codes=codes,
source=source,
loader=loader,
- effective_sources=effective_sources,
+ effective_sources=used_sources,
)
diff --git a/agent/src/api/alpha_routes.py b/agent/src/api/alpha_routes.py
index 9ad56125e..d8c4d153d 100644
--- a/agent/src/api/alpha_routes.py
+++ b/agent/src/api/alpha_routes.py
@@ -106,7 +106,10 @@ _VALID_THEMES = {
"momentum", "reversal", "volume", "volatility", "quality", "value",
"liquidity", "microstructure", "sentiment", "growth", "leverage",
}
-_VALID_UNIVERSES = {"equity_us", "equity_cn", "equity_hk", "crypto", "futures"}
+_VALID_UNIVERSES = {
+ "equity_us", "equity_cn", "equity_hk", "equity_in", "equity_kr",
+ "crypto", "futures",
+}
# Ranking metrics for /alpha/compare — keep in sync with
# ``src.factors.compare_runner.SORT_KEYS`` (kept local to avoid a heavy import).
_VALID_SORTS = {"ir", "ic_mean", "ic_positive_ratio", "ic_count"}
diff --git a/agent/src/factors/base.py b/agent/src/factors/base.py
index 9fe8f2bdb..fa807aa98 100644
--- a/agent/src/factors/base.py
+++ b/agent/src/factors/base.py
@@ -31,6 +31,7 @@ class Market(str, Enum):
EQUITY_CN = "equity_cn"
EQUITY_HK = "equity_hk"
EQUITY_IN = "equity_in"
+ EQUITY_KR = "equity_kr"
CRYPTO = "crypto"
FUTURES = "futures"
@@ -327,9 +328,10 @@ def vwap(panel: dict[str, pd.DataFrame], market: Market | str) -> pd.DataFrame:
scale. We multiply ``amount`` by 1000 (CNY) and divide by
``volume * 100`` (shares); ``+1`` keeps the denominator positive on
suspended bars.
- - ``equity_us`` / ``equity_hk`` / ``equity_in`` / ``futures``: typical price
- ``(H + L + C + O) / 4`` when ``panel["vwap"]`` is absent. India (NSE/BSE)
- bars from Yahoo carry raw price/volume (no Tushare 千元/手 scaling), so the
+ - ``equity_us`` / ``equity_hk`` / ``equity_in`` / ``equity_kr`` /
+ ``futures``: typical price ``(H + L + C + O) / 4`` when ``panel["vwap"]``
+ is absent. India (NSE/BSE) bars from Yahoo and Korea (KRX) bars from
+ pykrx carry raw price/volume (no Tushare 千元/手 scaling), so the
typical-price form applies unchanged.
- ``crypto``: prefer ``panel["vwap"]`` if provided, else typical price.
diff --git a/agent/src/factors/cli_handlers.py b/agent/src/factors/cli_handlers.py
index 9207fa296..f0b0afc5d 100644
--- a/agent/src/factors/cli_handlers.py
+++ b/agent/src/factors/cli_handlers.py
@@ -74,8 +74,30 @@ from src.factors.registry import Registry, RegistryError
# We treat ``<repo>`` (and any subdirectory thereof) as the write-allow root.
_REPO_ROOT = Path(__file__).resolve().parents[3]
+# Benchmarkable data universes: every name here must have a panel loader in
+# ``src.tools.alpha_bench_tool._UNIVERSE_TAG``. There is no KRX (or NSE/BSE)
+# panel yet, so Korea/India are deliberately absent — ``alpha bench`` would
+# fail at universe load, not produce a Korean benchmark.
_UNIVERSE_CHOICES = ["csi300", "sp500", "btc-usdt"]
+# Factor-metadata universes accepted by ``alpha list --universe`` — these are
+# the values carried in each alpha's ``universe`` metadata, which is what
+# ``Registry.list`` filters on. Keep in sync with
+# ``src.factors.registry.Universe`` and the REST allowlist in
+# ``src.api.alpha_routes._VALID_UNIVERSES``.
+_LIST_UNIVERSE_CHOICES = [
+ "equity_us", "equity_cn", "equity_hk", "equity_in", "equity_kr",
+ "crypto", "futures",
+]
+# Benchmark universe -> the metadata universe its panel represents, so
+# ``alpha list --universe csi300`` keeps working (it used to filter on a name no
+# alpha carries and silently listed nothing). Mirrors the REST alias map.
+_LIST_UNIVERSE_ALIASES = {
+ "csi300": "equity_cn",
+ "sp500": "equity_us",
+ "btc-usdt": "crypto",
+}
+
def _print(msg: str) -> None:
if _console is not None:
@@ -145,7 +167,10 @@ def cmd_alpha_list(args: argparse.Namespace) -> int:
"""
try:
reg = Registry()
- ids = reg.list(zoo=args.zoo, theme=args.theme, universe=args.universe)
+ universe = args.universe
+ if universe is not None:
+ universe = _LIST_UNIVERSE_ALIASES.get(universe, universe)
+ ids = reg.list(zoo=args.zoo, theme=args.theme, universe=universe)
limit = getattr(args, "limit", None)
total = len(ids)
@@ -905,8 +930,12 @@ def add_subparser(subparsers: Any) -> argparse.ArgumentParser:
p_list.add_argument(
"--universe",
default=None,
- choices=_UNIVERSE_CHOICES,
- help=f"Filter by universe ({', '.join(_UNIVERSE_CHOICES)})",
+ choices=_LIST_UNIVERSE_CHOICES + _UNIVERSE_CHOICES,
+ help=(
+ "Filter by factor universe "
+ f"({', '.join(_LIST_UNIVERSE_CHOICES)}); the benchmark names "
+ f"({', '.join(_UNIVERSE_CHOICES)}) are accepted as aliases"
+ ),
)
p_list.add_argument(
"--limit",
diff --git a/agent/src/factors/registry.py b/agent/src/factors/registry.py
index 1896bba7f..271a4e2dd 100644
--- a/agent/src/factors/registry.py
+++ b/agent/src/factors/registry.py
@@ -63,7 +63,7 @@ _PRICE_COLS = {"open", "high", "low", "close", "volume", "vwap", "amount"}
PanelColumn = str
-Universe = Literal["equity_us", "equity_cn", "equity_hk", "equity_in", "crypto", "futures"]
+Universe = Literal["equity_us", "equity_cn", "equity_hk", "equity_in", "equity_kr", "crypto", "futures"]
def validate_columns_required(cols: list[str]) -> None:
diff --git a/agent/src/factors/zoo/alpha101/alpha_001.py b/agent/src/factors/zoo/alpha101/alpha_001.py
index 0039eaf6a..d1a80e4bb 100644
--- a/agent/src/factors/zoo/alpha101/alpha_001.py
+++ b/agent/src/factors/zoo/alpha101/alpha_001.py
@@ -43,7 +43,7 @@ __alpha_meta__ = {
'columns_required': ['close'],
'extras_required': [],
'requires_sector': False,
- 'universe': ['equity_us', 'equity_in'],
+ 'universe': ['equity_us', 'equity_in', 'equity_kr'],
'frequency': ['1D'],
'decay_horizon': 5,
'min_warmup_bars': 25,
diff --git a/agent/src/factors/zoo/alpha101/alpha_002.py b/agent/src/factors/zoo/alpha101/alpha_002.py
index ea8e653a1..40a139fcd 100644
--- a/agent/src/factors/zoo/alpha101/alpha_002.py
+++ b/agent/src/factors/zoo/alpha101/alpha_002.py
@@ -43,7 +43,7 @@ __alpha_meta__ = {
'columns_required': ['open', 'close', 'volume'],
'extras_required': [],
'requires_sector': False,
- 'universe': ['equity_us', 'equity_in'],
+ 'universe': ['equity_us', 'equity_in', 'equity_kr'],
'frequency': ['1D'],
'decay_horizon': 5,
'min_warmup_bars': 10,
diff --git a/agent/src/factors/zoo/alpha101/alpha_003.py b/agent/src/factors/zoo/alpha101/alpha_003.py
index 88ee070a2..63a167afe 100644
--- a/agent/src/factors/zoo/alpha101/alpha_003.py
+++ b/agent/src/factors/zoo/alpha101/alpha_003.py
@@ -43,7 +43,7 @@ __alpha_meta__ = {
'columns_required': ['open', 'volume', 'close'],
'extras_required': [],
'requires_sector': False,
- 'universe': ['equity_us', 'equity_in'],
+ 'universe': ['equity_us', 'equity_in', 'equity_kr'],
'frequency': ['1D'],
'decay_horizon': 5,
'min_warmup_bars': 10,
diff --git a/agent/src/factors/zoo/alpha101/alpha_004.py b/agent/src/factors/zoo/alpha101/alpha_004.py
index 90126c60f..1ddb1a32e 100644
--- a/agent/src/factors/zoo/alpha101/alpha_004.py
+++ b/agent/src/factors/zoo/alpha101/alpha_004.py
@@ -43,7 +43,7 @@ __alpha_meta__ = {
'columns_required': ['low', 'close'],
'extras_required': [],
'requires_sector': False,
- 'universe': ['equity_us', 'equity_in'],
+ 'universe': ['equity_us', 'equity_in', 'equity_kr'],
'frequency': ['1D'],
'decay_horizon': 5,
'min_warmup_bars': 9,
diff --git a/agent/src/factors/zoo/alpha101/alpha_005.py b/agent/src/factors/zoo/alpha101/alpha_005.py
index 476d83593..2cb7908ab 100644
--- a/agent/src/factors/zoo/alpha101/alpha_005.py
+++ b/agent/src/factors/zoo/alpha101/alpha_005.py
@@ -43,7 +43,7 @@ __alpha_meta__ = {
'columns_required': ['open', 'close', 'vwap'],
'extras_required': [],
'requires_sector': False,
- 'universe': ['equity_us', 'equity_in'],
+ 'universe': ['equity_us', 'equity_in', 'equity_kr'],
'frequency': ['1D'],
'decay_horizon': 5,
'min_warmup_bars': 10,
diff --git a/agent/src/factors/zoo/alpha101/alpha_006.py b/agent/src/factors/zoo/alpha101/alpha_006.py
index cced2f707..6a9c698b2 100644
--- a/agent/src/factors/zoo/alpha101/alpha_006.py
+++ b/agent/src/factors/zoo/alpha101/alpha_006.py
@@ -43,7 +43,7 @@ __alpha_meta__ = {
'columns_required': ['open', 'volume', 'close'],
'extras_required': [],
'requires_sector': False,
- 'universe': ['equity_us', 'equity_in'],
+ 'universe': ['equity_us', 'equity_in', 'equity_kr'],
'frequency': ['1D'],
'decay_horizon': 5,
'min_warmup_bars': 10,
diff --git a/agent/src/factors/zoo/alpha101/alpha_007.py b/agent/src/factors/zoo/alpha101/alpha_007.py
index 873f9ec5f..24e958125 100644
--- a/agent/src/factors/zoo/alpha101/alpha_007.py
+++ b/agent/src/factors/zoo/alpha101/alpha_007.py
@@ -43,7 +43,7 @@ __alpha_meta__ = {
'columns_required': ['close', 'volume'],
'extras_required': [],
'requires_sector': False,
- 'universe': ['equity_us', 'equity_in'],
+ 'universe': ['equity_us', 'equity_in', 'equity_kr'],
'frequency': ['1D'],
'decay_horizon': 5,
'min_warmup_bars': 67,
diff --git a/agent/src/factors/zoo/alpha101/alpha_008.py b/agent/src/factors/zoo/alpha101/alpha_008.py
index 02043b5e0..b1fb64f68 100644
--- a/agent/src/factors/zoo/alpha101/alpha_008.py
+++ b/agent/src/factors/zoo/alpha101/alpha_008.py
@@ -43,7 +43,7 @@ __alpha_meta__ = {
'columns_required': ['open', 'close'],
'extras_required': [],
'requires_sector': False,
- 'universe': ['equity_us', 'equity_in'],
+ 'universe': ['equity_us', 'equity_in', 'equity_kr'],
'frequency': ['1D'],
'decay_horizon': 5,
'min_warmup_bars': 15,
diff --git a/agent/src/factors/zoo/alpha101/alpha_009.py b/agent/src/factors/zoo/alpha101/alpha_009.py
index 8ff44d110..6856e16c4 100644
--- a/agent/src/factors/zoo/alpha101/alpha_009.py
+++ b/agent/src/factors/zoo/alpha101/alpha_009.py
@@ -43,7 +43,7 @@ __alpha_meta__ = {
'columns_required': ['close'],
'extras_required': [],
'requires_sector': False,
- 'universe': ['equity_us', 'equity_in'],
+ 'universe': ['equity_us', 'equity_in', 'equity_kr'],
'frequency': ['1D'],
'decay_horizon': 5,
'min_warmup_bars': 6,
diff --git a/agent/src/factors/zoo/alpha101/alpha_010.py b/agent/src/factors/zoo/alpha101/alpha_010.py
index 4c05b5e71..b685a310a 100644
--- a/agent/src/factors/zoo/alpha101/alpha_010.py
+++ b/agent/src/factors/zoo/alpha101/alpha_010.py
@@ -43,7 +43,7 @@ __alpha_meta__ = {
'columns_required': ['close'],
'extras_required': [],
'requires_sector': False,
- 'universe': ['equity_us', 'equity_in'],
+ 'universe': ['equity_us', 'equity_in', 'equity_kr'],
'frequency': ['1D'],
'decay_horizon': 5,
'min_warmup_bars': 5,
diff --git a/agent/src/factors/zoo/alpha101/alpha_011.py b/agent/src/factors/zoo/alpha101/alpha_011.py
index e7b49ac11..b18ea51bb 100644
--- a/agent/src/factors/zoo/alpha101/alpha_011.py
+++ b/agent/src/factors/zoo/alpha101/alpha_011.py
@@ -43,7 +43,7 @@ __alpha_meta__ = {
'columns_required': ['close', 'volume', 'vwap'],
'extras_required': [],
'requires_sector': False,
- 'universe': ['equity_us', 'equity_in'],
+ 'universe': ['equity_us', 'equity_in', 'equity_kr'],
'frequency': ['1D'],
'decay_horizon': 5,
'min_warmup_bars': 5,
diff --git a/agent/src/factors/zoo/alpha101/alpha_012.py b/agent/src/factors/zoo/alpha101/alpha_012.py
index cf3044828..141edc074 100644
--- a/agent/src/factors/zoo/alpha101/alpha_012.py
+++ b/agent/src/factors/zoo/alpha101/alpha_012.py
@@ -43,7 +43,7 @@ __alpha_meta__ = {
'columns_required': ['close', 'volume'],
'extras_required': [],
'requires_sector': False,
- 'universe': ['equity_us', 'equity_in'],
+ 'universe': ['equity_us', 'equity_in', 'equity_kr'],
'frequency': ['1D'],
'decay_horizon': 5,
'min_warmup_bars': 2,
diff --git a/agent/src/factors/zoo/alpha101/alpha_013.py b/agent/src/factors/zoo/alpha101/alpha_013.py
index 67584a0fe..3956cc6e2 100644
--- a/agent/src/factors/zoo/alpha101/alpha_013.py
+++ b/agent/src/factors/zoo/alpha101/alpha_013.py
@@ -43,7 +43,7 @@ __alpha_meta__ = {
'columns_required': ['close', 'volume'],
'extras_required': [],
'requires_sector': False,
- 'universe': ['equity_us', 'equity_in'],
+ 'universe': ['equity_us', 'equity_in', 'equity_kr'],
'frequency': ['1D'],
'decay_horizon': 5,
'min_warmup_bars': 5,
diff --git a/agent/src/factors/zoo/alpha101/alpha_014.py b/agent/src/factors/zoo/alpha101/alpha_014.py
index b7546d5f2..832c9ffaa 100644
--- a/agent/src/factors/zoo/alpha101/alpha_014.py
+++ b/agent/src/factors/zoo/alpha101/alpha_014.py
@@ -43,7 +43,7 @@ __alpha_meta__ = {
'columns_required': ['open', 'close', 'volume'],
'extras_required': [],
'requires_sector': False,
- 'universe': ['equity_us', 'equity_in'],
+ 'universe': ['equity_us', 'equity_in', 'equity_kr'],
'frequency': ['1D'],
'decay_horizon': 5,
'min_warmup_bars': 10,
diff --git a/agent/src/factors/zoo/alpha101/alpha_015.py b/agent/src/factors/zoo/alpha101/alpha_015.py
index d4e67eab0..370cdb8e0 100644
--- a/agent/src/factors/zoo/alpha101/alpha_015.py
+++ b/agent/src/factors/zoo/alpha101/alpha_015.py
@@ -43,7 +43,7 @@ __alpha_meta__ = {
'columns_required': ['high', 'volume', 'close'],
'extras_required': [],
'requires_sector': False,
- 'universe': ['equity_us', 'equity_in'],
+ 'universe': ['equity_us', 'equity_in', 'equity_kr'],
'frequency': ['1D'],
'decay_horizon': 5,
'min_warmup_bars': 6,
diff --git a/agent/src/factors/zoo/alpha101/alpha_016.py b/agent/src/factors/zoo/alpha101/alpha_016.py
index a48f895b0..8606d3f75 100644
--- a/agent/src/factors/zoo/alpha101/alpha_016.py
+++ b/agent/src/factors/zoo/alpha101/alpha_016.py
@@ -43,7 +43,7 @@ __alpha_meta__ = {
'columns_required': ['high', 'volume', 'close'],
'extras_required': [],
'requires_sector': False,
- 'universe': ['equity_us', 'equity_in'],
+ 'universe': ['equity_us', 'equity_in', 'equity_kr'],
'frequency': ['1D'],
'decay_horizon': 5,
'min_warmup_bars': 5,
diff --git a/agent/src/factors/zoo/alpha101/alpha_017.py b/agent/src/factors/zoo/alpha101/alpha_017.py
index d541fca70..c59b1affe 100644
--- a/agent/src/factors/zoo/alpha101/alpha_017.py
+++ b/agent/src/factors/zoo/alpha101/alpha_017.py
@@ -43,7 +43,7 @@ __alpha_meta__ = {
'columns_required': ['close', 'volume'],
'extras_required': [],
'requires_sector': False,
- 'universe': ['equity_us', 'equity_in'],
+ 'universe': ['equity_us', 'equity_in', 'equity_kr'],
'frequency': ['1D'],
'decay_horizon': 5,
'min_warmup_bars': 25,
diff --git a/agent/src/factors/zoo/alpha101/alpha_018.py b/agent/src/factors/zoo/alpha101/alpha_018.py
index d695bce01..f0984350e 100644
--- a/agent/src/factors/zoo/alpha101/alpha_018.py
+++ b/agent/src/factors/zoo/alpha101/alpha_018.py
@@ -43,7 +43,7 @@ __alpha_meta__ = {
'columns_required': ['open', 'close'],
'extras_required': [],
'requires_sector': False,
- 'universe': ['equity_us', 'equity_in'],
+ 'universe': ['equity_us', 'equity_in', 'equity_kr'],
'frequency': ['1D'],
'decay_horizon': 5,
'min_warmup_bars': 10,
diff --git a/agent/src/factors/zoo/alpha101/alpha_019.py b/agent/src/factors/zoo/alpha101/alpha_019.py
index 684e93059..1bb0cd196 100644
--- a/agent/src/factors/zoo/alpha101/alpha_019.py
+++ b/agent/src/factors/zoo/alpha101/alpha_019.py
@@ -43,7 +43,7 @@ __alpha_meta__ = {
'columns_required': ['close'],
'extras_required': [],
'requires_sector': False,
- 'universe': ['equity_us', 'equity_in'],
+ 'universe': ['equity_us', 'equity_in', 'equity_kr'],
'frequency': ['1D'],
'decay_horizon': 5,
'min_warmup_bars': 250,
diff --git a/agent/src/factors/zoo/alpha101/alpha_020.py b/agent/src/factors/zoo/alpha101/alpha_020.py
index 81ab4a627..6e80df2c6 100644
--- a/agent/src/factors/zoo/alpha101/alpha_020.py
+++ b/agent/src/factors/zoo/alpha101/alpha_020.py
@@ -43,7 +43,7 @@ __alpha_meta__ = {
'columns_required': ['open', 'high', 'low', 'close'],
'extras_required': [],
'requires_sector': False,
- 'universe': ['equity_us', 'equity_in'],
+ 'universe': ['equity_us', 'equity_in', 'equity_kr'],
'frequency': ['1D'],
'decay_horizon': 5,
'min_warmup_bars': 2,
diff --git a/agent/src/factors/zoo/alpha101/alpha_021.py b/agent/src/factors/zoo/alpha101/alpha_021.py
index 684b4321b..392b069f1 100644
--- a/agent/src/factors/zoo/alpha101/alpha_021.py
+++ b/agent/src/factors/zoo/alpha101/alpha_021.py
@@ -43,7 +43,7 @@ __alpha_meta__ = {
'columns_required': ['close', 'volume'],
'extras_required': [],
'requires_sector': False,
- 'universe': ['equity_us', 'equity_in'],
+ 'universe': ['equity_us', 'equity_in', 'equity_kr'],
'frequency': ['1D'],
'decay_horizon': 5,
'min_warmup_bars': 20,
diff --git a/agent/src/factors/zoo/alpha101/alpha_022.py b/agent/src/factors/zoo/alpha101/alpha_022.py
index 5d509d605..0cff9c08e 100644
--- a/agent/src/factors/zoo/alpha101/alpha_022.py
+++ b/agent/src/factors/zoo/alpha101/alpha_022.py
@@ -43,7 +43,7 @@ __alpha_meta__ = {
'columns_required': ['high', 'close', 'volume'],
'extras_required': [],
'requires_sector': False,
- 'universe': ['equity_us', 'equity_in'],
+ 'universe': ['equity_us', 'equity_in', 'equity_kr'],
'frequency': ['1D'],
'decay_horizon': 5,
'min_warmup_bars': 25,
diff --git a/agent/src/factors/zoo/alpha101/alpha_023.py b/agent/src/factors/zoo/alpha101/alpha_023.py
index 7ba50ca86..79b236688 100644
--- a/agent/src/factors/zoo/alpha101/alpha_023.py
+++ b/agent/src/factors/zoo/alpha101/alpha_023.py
@@ -43,7 +43,7 @@ __alpha_meta__ = {
'columns_required': ['high', 'close'],
'extras_required': [],
'requires_sector': False,
- 'universe': ['equity_us', 'equity_in'],
+ 'universe': ['equity_us', 'equity_in', 'equity_kr'],
'frequency': ['1D'],
'decay_horizon': 5,
'min_warmup_bars': 20,
diff --git a/agent/src/factors/zoo/alpha101/alpha_024.py b/agent/src/factors/zoo/alpha101/alpha_024.py
index 149b6d6ff..fb3025006 100644
--- a/agent/src/factors/zoo/alpha101/alpha_024.py
+++ b/agent/src/factors/zoo/alpha101/alpha_024.py
@@ -43,7 +43,7 @@ __alpha_meta__ = {
'columns_required': ['close'],
'extras_required': [],
'requires_sector': False,
- 'universe': ['equity_us', 'equity_in'],
+ 'universe': ['equity_us', 'equity_in', 'equity_kr'],
'frequency': ['1D'],
'decay_horizon': 5,
'min_warmup_bars': 200,
diff --git a/agent/src/factors/zoo/alpha101/alpha_025.py b/agent/src/factors/zoo/alpha101/alpha_025.py
index 7cf8c527c..153f46ba9 100644
--- a/agent/src/factors/zoo/alpha101/alpha_025.py
+++ b/agent/src/factors/zoo/alpha101/alpha_025.py
@@ -43,7 +43,7 @@ __alpha_meta__ = {
'columns_required': ['high', 'close', 'volume', 'vwap'],
'extras_required': [],
'requires_sector': False,
- 'universe': ['equity_us', 'equity_in'],
+ 'universe': ['equity_us', 'equity_in', 'equity_kr'],
'frequency': ['1D'],
'decay_horizon': 5,
'min_warmup_bars': 21,
diff --git a/agent/src/factors/zoo/alpha101/alpha_026.py b/agent/src/factors/zoo/alpha101/alpha_026.py
index 4ab2451a1..0e49cb812 100644
--- a/agent/src/factors/zoo/alpha101/alpha_026.py
+++ b/agent/src/factors/zoo/alpha101/alpha_026.py
@@ -43,7 +43,7 @@ __alpha_meta__ = {
'columns_required': ['high', 'volume', 'close'],
'extras_required': [],
'requires_sector': False,
- 'universe': ['equity_us', 'equity_in'],
+ 'universe': ['equity_us', 'equity_in', 'equity_kr'],
'frequency': ['1D'],
'decay_horizon': 5,
'min_warmup_bars': 13,
diff --git a/agent/src/factors/zoo/alpha101/alpha_027.py b/agent/src/factors/zoo/alpha101/alpha_027.py
index ca9804644..f5b68d725 100644
--- a/agent/src/factors/zoo/alpha101/alpha_027.py
+++ b/agent/src/factors/zoo/alpha101/alpha_027.py
@@ -43,7 +43,7 @@ __alpha_meta__ = {
'columns_required': ['volume', 'vwap', 'close'],
'extras_required': [],
'requires_sector': False,
- 'universe': ['equity_us', 'equity_in'],
+ 'universe': ['equity_us', 'equity_in', 'equity_kr'],
'frequency': ['1D'],
'decay_horizon': 5,
'min_warmup_bars': 10,
diff --git a/agent/src/factors/zoo/alpha101/alpha_028.py b/agent/src/factors/zoo/alpha101/alpha_028.py
index 38371ca48..943772b19 100644
--- a/agent/src/factors/zoo/alpha101/alpha_028.py
+++ b/agent/src/factors/zoo/alpha101/alpha_028.py
@@ -43,7 +43,7 @@ __alpha_meta__ = {
'columns_required': ['high', 'low', 'close', 'volume'],
'extras_required': [],
'requires_sector': False,
- 'universe': ['equity_us', 'equity_in'],
+ 'universe': ['equity_us', 'equity_in', 'equity_kr'],
'frequency': ['1D'],
'decay_horizon': 5,
'min_warmup_bars': 25,
diff --git a/agent/src/factors/zoo/alpha101/alpha_029.py b/agent/src/factors/zoo/alpha101/alpha_029.py
index 25d9ec46e..276f7e7e3 100644
--- a/agent/src/factors/zoo/alpha101/alpha_029.py
+++ b/agent/src/factors/zoo/alpha101/alpha_029.py
@@ -43,7 +43,7 @@ __alpha_meta__ = {
'columns_required': ['close', 'volume'],
'extras_required': [],
'requires_sector': False,
- 'universe': ['equity_us', 'equity_in'],
+ 'universe': ['equity_us', 'equity_in', 'equity_kr'],
'frequency': ['1D'],
'decay_horizon': 5,
'min_warmup_bars': 12,
diff --git a/agent/src/factors/zoo/alpha101/alpha_030.py b/agent/src/factors/zoo/alpha101/alpha_030.py
index fb8d25a67..04faab045 100644
--- a/agent/src/factors/zoo/alpha101/alpha_030.py
+++ b/agent/src/factors/zoo/alpha101/alpha_030.py
@@ -43,7 +43,7 @@ __alpha_meta__ = {
'columns_required': ['close', 'volume'],
'extras_required': [],
'requires_sector': False,
- 'universe': ['equity_us', 'equity_in'],
+ 'universe': ['equity_us', 'equity_in', 'equity_kr'],
'frequency': ['1D'],
'decay_horizon': 5,
'min_warmup_bars': 20,
diff --git a/agent/src/factors/zoo/alpha101/alpha_031.py b/agent/src/factors/zoo/alpha101/alpha_031.py
index 12d97a8b9..d9e29f9e1 100644
--- a/agent/src/factors/zoo/alpha101/alpha_031.py
+++ b/agent/src/factors/zoo/alpha101/alpha_031.py
@@ -43,7 +43,7 @@ __alpha_meta__ = {
'columns_required': ['low', 'close', 'volume'],
'extras_required': [],
'requires_sector': False,
- 'universe': ['equity_us', 'equity_in'],
+ 'universe': ['equity_us', 'equity_in', 'equity_kr'],
'frequency': ['1D'],
'decay_horizon': 5,
'min_warmup_bars': 25,
diff --git a/agent/src/factors/zoo/alpha101/alpha_032.py b/agent/src/factors/zoo/alpha101/alpha_032.py
index 07a035728..91c2c2cf2 100644
--- a/agent/src/factors/zoo/alpha101/alpha_032.py
+++ b/agent/src/factors/zoo/alpha101/alpha_032.py
@@ -43,7 +43,7 @@ __alpha_meta__ = {
'columns_required': ['close', 'vwap'],
'extras_required': [],
'requires_sector': False,
- 'universe': ['equity_us', 'equity_in'],
+ 'universe': ['equity_us', 'equity_in', 'equity_kr'],
'frequency': ['1D'],
'decay_horizon': 5,
'min_warmup_bars': 235,
diff --git a/agent/src/factors/zoo/alpha101/alpha_033.py b/agent/src/factors/zoo/alpha101/alpha_033.py
index 6ddb0039a..7900c52c6 100644
--- a/agent/src/factors/zoo/alpha101/alpha_033.py
+++ b/agent/src/factors/zoo/alpha101/alpha_033.py
@@ -43,7 +43,7 @@ __alpha_meta__ = {
'columns_required': ['open', 'close'],
'extras_required': [],
'requires_sector': False,
- 'universe': ['equity_us', 'equity_in'],
+ 'universe': ['equity_us', 'equity_in', 'equity_kr'],
'frequency': ['1D'],
'decay_horizon': 5,
'min_warmup_bars': 1,
diff --git a/agent/src/factors/zoo/alpha101/alpha_034.py b/agent/src/factors/zoo/alpha101/alpha_034.py
index a1263f23b..6b3db4e5a 100644
--- a/agent/src/factors/zoo/alpha101/alpha_034.py
+++ b/agent/src/factors/zoo/alpha101/alpha_034.py
@@ -43,7 +43,7 @@ __alpha_meta__ = {
'columns_required': ['close'],
'extras_required': [],
'requires_sector': False,
- 'universe': ['equity_us', 'equity_in'],
+ 'universe': ['equity_us', 'equity_in', 'equity_kr'],
'frequency': ['1D'],
'decay_horizon': 5,
'min_warmup_bars': 6,
diff --git a/agent/src/factors/zoo/alpha101/alpha_035.py b/agent/src/factors/zoo/alpha101/alpha_035.py
index 91924cb7e..690293e11 100644
--- a/agent/src/factors/zoo/alpha101/alpha_035.py
+++ b/agent/src/factors/zoo/alpha101/alpha_035.py
@@ -43,7 +43,7 @@ __alpha_meta__ = {
'columns_required': ['high', 'low', 'close', 'volume'],
'extras_required': [],
'requires_sector': False,
- 'universe': ['equity_us', 'equity_in'],
+ 'universe': ['equity_us', 'equity_in', 'equity_kr'],
'frequency': ['1D'],
'decay_horizon': 5,
'min_warmup_bars': 33,
diff --git a/agent/src/factors/zoo/alpha101/alpha_036.py b/agent/src/factors/zoo/alpha101/alpha_036.py
index 7d94de484..2db02dc4a 100644
--- a/agent/src/factors/zoo/alpha101/alpha_036.py
+++ b/agent/src/factors/zoo/alpha101/alpha_036.py
@@ -43,7 +43,7 @@ __alpha_meta__ = {
'columns_required': ['open', 'close', 'volume', 'vwap'],
'extras_required': [],
'requires_sector': False,
- 'universe': ['equity_us', 'equity_in'],
+ 'universe': ['equity_us', 'equity_in', 'equity_kr'],
'frequency': ['1D'],
'decay_horizon': 5,
'min_warmup_bars': 200,
diff --git a/agent/src/factors/zoo/alpha101/alpha_037.py b/agent/src/factors/zoo/alpha101/alpha_037.py
index e5385d46f..deff90620 100644
--- a/agent/src/factors/zoo/alpha101/alpha_037.py
+++ b/agent/src/factors/zoo/alpha101/alpha_037.py
@@ -43,7 +43,7 @@ __alpha_meta__ = {
'columns_required': ['open', 'close'],
'extras_required': [],
'requires_sector': False,
- 'universe': ['equity_us', 'equity_in'],
+ 'universe': ['equity_us', 'equity_in', 'equity_kr'],
'frequency': ['1D'],
'decay_horizon': 5,
'min_warmup_bars': 201,
diff --git a/agent/src/factors/zoo/alpha101/alpha_038.py b/agent/src/factors/zoo/alpha101/alpha_038.py
index 43d37f022..680c97954 100644
--- a/agent/src/factors/zoo/alpha101/alpha_038.py
+++ b/agent/src/factors/zoo/alpha101/alpha_038.py
@@ -43,7 +43,7 @@ __alpha_meta__ = {
'columns_required': ['open', 'close'],
'extras_required': [],
'requires_sector': False,
- 'universe': ['equity_us', 'equity_in'],
+ 'universe': ['equity_us', 'equity_in', 'equity_kr'],
'frequency': ['1D'],
'decay_horizon': 5,
'min_warmup_bars': 10,
diff --git a/agent/src/factors/zoo/alpha101/alpha_039.py b/agent/src/factors/zoo/alpha101/alpha_039.py
index 61f29e138..d9af02c46 100644
--- a/agent/src/factors/zoo/alpha101/alpha_039.py
+++ b/agent/src/factors/zoo/alpha101/alpha_039.py
@@ -43,7 +43,7 @@ __alpha_meta__ = {
'columns_required': ['close', 'volume'],
'extras_required': [],
'requires_sector': False,
- 'universe': ['equity_us', 'equity_in'],
+ 'universe': ['equity_us', 'equity_in', 'equity_kr'],
'frequency': ['1D'],
'decay_horizon': 5,
'min_warmup_bars': 250,
diff --git a/agent/src/factors/zoo/alpha101/alpha_040.py b/agent/src/factors/zoo/alpha101/alpha_040.py
index d4ba55b5d..9e02e20b7 100644
--- a/agent/src/factors/zoo/alpha101/alpha_040.py
+++ b/agent/src/factors/zoo/alpha101/alpha_040.py
@@ -43,7 +43,7 @@ __alpha_meta__ = {
'columns_required': ['high', 'volume', 'close'],
'extras_required': [],
'requires_sector': False,
- 'universe': ['equity_us', 'equity_in'],
+ 'universe': ['equity_us', 'equity_in', 'equity_kr'],
'frequency': ['1D'],
'decay_horizon': 5,
'min_warmup_bars': 10,
diff --git a/agent/src/factors/zoo/alpha101/alpha_041.py b/agent/src/factors/zoo/alpha101/alpha_041.py
index fc9fdee19..c6d75dd8c 100644
--- a/agent/src/factors/zoo/alpha101/alpha_041.py
+++ b/agent/src/factors/zoo/alpha101/alpha_041.py
@@ -43,7 +43,7 @@ __alpha_meta__ = {
'columns_required': ['high', 'low', 'vwap', 'close'],
'extras_required': [],
'requires_sector': False,
- 'universe': ['equity_us', 'equity_in'],
+ 'universe': ['equity_us', 'equity_in', 'equity_kr'],
'frequency': ['1D'],
'decay_horizon': 5,
'min_warmup_bars': 1,
diff --git a/agent/src/factors/zoo/alpha101/alpha_042.py b/agent/src/factors/zoo/alpha101/alpha_042.py
index d4095f479..be0c66717 100644
--- a/agent/src/factors/zoo/alpha101/alpha_042.py
+++ b/agent/src/factors/zoo/alpha101/alpha_042.py
@@ -43,7 +43,7 @@ __alpha_meta__ = {
'columns_required': ['close', 'vwap'],
'extras_required': [],
'requires_sector': False,
- 'universe': ['equity_us', 'equity_in'],
+ 'universe': ['equity_us', 'equity_in', 'equity_kr'],
'frequency': ['1D'],
'decay_horizon': 5,
'min_warmup_bars': 1,
diff --git a/agent/src/factors/zoo/alpha101/alpha_043.py b/agent/src/factors/zoo/alpha101/alpha_043.py
index 868b5a4a6..10143ca43 100644
--- a/agent/src/factors/zoo/alpha101/alpha_043.py
+++ b/agent/src/factors/zoo/alpha101/alpha_043.py
@@ -43,7 +43,7 @@ __alpha_meta__ = {
'columns_required': ['close', 'volume'],
'extras_required': [],
'requires_sector': False,
- 'universe': ['equity_us', 'equity_in'],
+ 'universe': ['equity_us', 'equity_in', 'equity_kr'],
'frequency': ['1D'],
'decay_horizon': 5,
'min_warmup_bars': 39,
diff --git a/agent/src/factors/zoo/alpha101/alpha_044.py b/agent/src/factors/zoo/alpha101/alpha_044.py
index d8fa34d8a..f5519f698 100644
--- a/agent/src/factors/zoo/alpha101/alpha_044.py
+++ b/agent/src/factors/zoo/alpha101/alpha_044.py
@@ -43,7 +43,7 @@ __alpha_meta__ = {
'columns_required': ['high', 'volume', 'close'],
'extras_required': [],
'requires_sector': False,
- 'universe': ['equity_us', 'equity_in'],
+ 'universe': ['equity_us', 'equity_in', 'equity_kr'],
'frequency': ['1D'],
'decay_horizon': 5,
'min_warmup_bars': 5,
diff --git a/agent/src/factors/zoo/alpha101/alpha_045.py b/agent/src/factors/zoo/alpha101/alpha_045.py
index bf73636b5..98e285926 100644
--- a/agent/src/factors/zoo/alpha101/alpha_045.py
+++ b/agent/src/factors/zoo/alpha101/alpha_045.py
@@ -43,7 +43,7 @@ __alpha_meta__ = {
'columns_required': ['close', 'volume'],
'extras_required': [],
'requires_sector': False,
- 'universe': ['equity_us', 'equity_in'],
+ 'universe': ['equity_us', 'equity_in', 'equity_kr'],
'frequency': ['1D'],
'decay_horizon': 5,
'min_warmup_bars': 25,
diff --git a/agent/src/factors/zoo/alpha101/alpha_046.py b/agent/src/factors/zoo/alpha101/alpha_046.py
index df81dd8fd..8ebd94bee 100644
--- a/agent/src/factors/zoo/alpha101/alpha_046.py
+++ b/agent/src/factors/zoo/alpha101/alpha_046.py
@@ -43,7 +43,7 @@ __alpha_meta__ = {
'columns_required': ['close'],
'extras_required': [],
'requires_sector': False,
- 'universe': ['equity_us', 'equity_in'],
+ 'universe': ['equity_us', 'equity_in', 'equity_kr'],
'frequency': ['1D'],
'decay_horizon': 5,
'min_warmup_bars': 21,
diff --git a/agent/src/factors/zoo/alpha101/alpha_047.py b/agent/src/factors/zoo/alpha101/alpha_047.py
index 3f876e994..04514df74 100644
--- a/agent/src/factors/zoo/alpha101/alpha_047.py
+++ b/agent/src/factors/zoo/alpha101/alpha_047.py
@@ -43,7 +43,7 @@ __alpha_meta__ = {
'columns_required': ['high', 'close', 'volume', 'vwap'],
'extras_required': [],
'requires_sector': False,
- 'universe': ['equity_us', 'equity_in'],
+ 'universe': ['equity_us', 'equity_in', 'equity_kr'],
'frequency': ['1D'],
'decay_horizon': 5,
'min_warmup_bars': 25,
diff --git a/agent/src/factors/zoo/alpha101/alpha_048.py b/agent/src/factors/zoo/alpha101/alpha_048.py
index d6d9f5e2d..1d9c193da 100644
--- a/agent/src/factors/zoo/alpha101/alpha_048.py
+++ b/agent/src/factors/zoo/alpha101/alpha_048.py
@@ -43,7 +43,7 @@ __alpha_meta__ = {
'columns_required': ['close'],
'extras_required': [],
'requires_sector': True,
- 'universe': ['equity_us', 'equity_in'],
+ 'universe': ['equity_us', 'equity_in', 'equity_kr'],
'frequency': ['1D'],
'decay_horizon': 5,
'min_warmup_bars': 251,
diff --git a/agent/src/factors/zoo/alpha101/alpha_049.py b/agent/src/factors/zoo/alpha101/alpha_049.py
index eab43dd11..17e8ed202 100644
--- a/agent/src/factors/zoo/alpha101/alpha_049.py
+++ b/agent/src/factors/zoo/alpha101/alpha_049.py
@@ -43,7 +43,7 @@ __alpha_meta__ = {
'columns_required': ['close'],
'extras_required': [],
'requires_sector': False,
- 'universe': ['equity_us', 'equity_in'],
+ 'universe': ['equity_us', 'equity_in', 'equity_kr'],
'frequency': ['1D'],
'decay_horizon': 5,
'min_warmup_bars': 21,
diff --git a/agent/src/factors/zoo/alpha101/alpha_050.py b/agent/src/factors/zoo/alpha101/alpha_050.py
index 21fffcec3..d3b68cefd 100644
--- a/agent/src/factors/zoo/alpha101/alpha_050.py
+++ b/agent/src/factors/zoo/alpha101/alpha_050.py
@@ -43,7 +43,7 @@ __alpha_meta__ = {
'columns_required': ['volume', 'vwap', 'close'],
'extras_required': [],
'requires_sector': False,
- 'universe': ['equity_us', 'equity_in'],
+ 'universe': ['equity_us', 'equity_in', 'equity_kr'],
'frequency': ['1D'],
'decay_horizon': 5,
'min_warmup_bars': 10,
diff --git a/agent/src/factors/zoo/alpha101/alpha_051.py b/agent/src/factors/zoo/alpha101/alpha_051.py
index 1451a2c71..ccec40642 100644
--- a/agent/src/factors/zoo/alpha101/alpha_051.py
+++ b/agent/src/factors/zoo/alpha101/alpha_051.py
@@ -43,7 +43,7 @@ __alpha_meta__ = {
'columns_required': ['close'],
'extras_required': [],
'requires_sector': False,
- 'universe': ['equity_us', 'equity_in'],
+ 'universe': ['equity_us', 'equity_in', 'equity_kr'],
'frequency': ['1D'],
'decay_horizon': 5,
'min_warmup_bars': 21,
diff --git a/agent/src/factors/zoo/alpha101/alpha_052.py b/agent/src/factors/zoo/alpha101/alpha_052.py
index 073001f89..6c5a6f16d 100644
--- a/agent/src/factors/zoo/alpha101/alpha_052.py
+++ b/agent/src/factors/zoo/alpha101/alpha_052.py
@@ -43,7 +43,7 @@ __alpha_meta__ = {
'columns_required': ['low', 'close', 'volume'],
'extras_required': [],
'requires_sector': False,
- 'universe': ['equity_us', 'equity_in'],
+ 'universe': ['equity_us', 'equity_in', 'equity_kr'],
'frequency': ['1D'],
'decay_horizon': 5,
'min_warmup_bars': 240,
diff --git a/agent/src/factors/zoo/alpha101/alpha_053.py b/agent/src/factors/zoo/alpha101/alpha_053.py
index d295f1b23..68df9af16 100644
--- a/agent/src/factors/zoo/alpha101/alpha_053.py
+++ b/agent/src/factors/zoo/alpha101/alpha_053.py
@@ -43,7 +43,7 @@ __alpha_meta__ = {
'columns_required': ['high', 'low', 'close'],
'extras_required': [],
'requires_sector': False,
- 'universe': ['equity_us', 'equity_in'],
+ 'universe': ['equity_us', 'equity_in', 'equity_kr'],
'frequency': ['1D'],
'decay_horizon': 5,
'min_warmup_bars': 10,
diff --git a/agent/src/factors/zoo/alpha101/alpha_054.py b/agent/src/factors/zoo/alpha101/alpha_054.py
index d8797106c..e17eeadfe 100644
--- a/agent/src/factors/zoo/alpha101/alpha_054.py
+++ b/agent/src/factors/zoo/alpha101/alpha_054.py
@@ -43,7 +43,7 @@ __alpha_meta__ = {
'columns_required': ['open', 'high', 'low', 'close'],
'extras_required': [],
'requires_sector': False,
- 'universe': ['equity_us', 'equity_in'],
+ 'universe': ['equity_us', 'equity_in', 'equity_kr'],
'frequency': ['1D'],
'decay_horizon': 5,
'min_warmup_bars': 1,
diff --git a/agent/src/factors/zoo/alpha101/alpha_055.py b/agent/src/factors/zoo/alpha101/alpha_055.py
index 4641a0e74..bfb3c7a10 100644
--- a/agent/src/factors/zoo/alpha101/alpha_055.py
+++ b/agent/src/factors/zoo/alpha101/alpha_055.py
@@ -43,7 +43,7 @@ __alpha_meta__ = {
'columns_required': ['high', 'low', 'close', 'volume'],
'extras_required': [],
'requires_sector': False,
- 'universe': ['equity_us', 'equity_in'],
+ 'universe': ['equity_us', 'equity_in', 'equity_kr'],
'frequency': ['1D'],
'decay_horizon': 5,
'min_warmup_bars': 17,
diff --git a/agent/src/factors/zoo/alpha101/alpha_056.py b/agent/src/factors/zoo/alpha101/alpha_056.py
index 25c9e568e..45c4ebab8 100644
--- a/agent/src/factors/zoo/alpha101/alpha_056.py
+++ b/agent/src/factors/zoo/alpha101/alpha_056.py
@@ -43,7 +43,7 @@ __alpha_meta__ = {
'columns_required': ['close'],
'extras_required': [],
'requires_sector': True,
- 'universe': ['equity_us', 'equity_in'],
+ 'universe': ['equity_us', 'equity_in', 'equity_kr'],
'frequency': ['1D'],
'decay_horizon': 5,
'min_warmup_bars': 10,
diff --git a/agent/src/factors/zoo/alpha101/alpha_057.py b/agent/src/factors/zoo/alpha101/alpha_057.py
index 596b901f7..7b4713dc3 100644
--- a/agent/src/factors/zoo/alpha101/alpha_057.py
+++ b/agent/src/factors/zoo/alpha101/alpha_057.py
@@ -43,7 +43,7 @@ __alpha_meta__ = {
'columns_required': ['close', 'vwap'],
'extras_required': [],
'requires_sector': False,
- 'universe': ['equity_us', 'equity_in'],
+ 'universe': ['equity_us', 'equity_in', 'equity_kr'],
'frequency': ['1D'],
'decay_horizon': 5,
'min_warmup_bars': 32,
diff --git a/agent/src/factors/zoo/alpha101/alpha_058.py b/agent/src/factors/zoo/alpha101/alpha_058.py
index 95df438d3..bb53c9076 100644
--- a/agent/src/factors/zoo/alpha101/alpha_058.py
+++ b/agent/src/factors/zoo/alpha101/alpha_058.py
@@ -43,7 +43,7 @@ __alpha_meta__ = {
'columns_required': ['volume', 'vwap', 'close'],
'extras_required': [],
'requires_sector': True,
- 'universe': ['equity_us', 'equity_in'],
+ 'universe': ['equity_us', 'equity_in', 'equity_kr'],
'frequency': ['1D'],
'decay_horizon': 5,
'min_warmup_bars': 25,
diff --git a/agent/src/factors/zoo/alpha101/alpha_059.py b/agent/src/factors/zoo/alpha101/alpha_059.py
index 2c9e54194..dee2106f6 100644
--- a/agent/src/factors/zoo/alpha101/alpha_059.py
+++ b/agent/src/factors/zoo/alpha101/alpha_059.py
@@ -43,7 +43,7 @@ __alpha_meta__ = {
'columns_required': ['volume', 'vwap', 'close'],
'extras_required': [],
'requires_sector': True,
- 'universe': ['equity_us', 'equity_in'],
+ 'universe': ['equity_us', 'equity_in', 'equity_kr'],
'frequency': ['1D'],
'decay_horizon': 5,
'min_warmup_bars': 30,
diff --git a/agent/src/factors/zoo/alpha101/alpha_060.py b/agent/src/factors/zoo/alpha101/alpha_060.py
index c5e31c08d..c8f0438b2 100644
--- a/agent/src/factors/zoo/alpha101/alpha_060.py
+++ b/agent/src/factors/zoo/alpha101/alpha_060.py
@@ -43,7 +43,7 @@ __alpha_meta__ = {
'columns_required': ['high', 'low', 'close', 'volume'],
'extras_required': [],
'requires_sector': False,
- 'universe': ['equity_us', 'equity_in'],
+ 'universe': ['equity_us', 'equity_in', 'equity_kr'],
'frequency': ['1D'],
'decay_horizon': 5,
'min_warmup_bars': 10,
diff --git a/agent/src/factors/zoo/alpha101/alpha_061.py b/agent/src/factors/zoo/alpha101/alpha_061.py
index 59d1ddca6..b32d0fb8a 100644
--- a/agent/src/factors/zoo/alpha101/alpha_061.py
+++ b/agent/src/factors/zoo/alpha101/alpha_061.py
@@ -43,7 +43,7 @@ __alpha_meta__ = {
'columns_required': ['volume', 'vwap', 'close'],
'extras_required': [],
'requires_sector': False,
- 'universe': ['equity_us', 'equity_in'],
+ 'universe': ['equity_us', 'equity_in', 'equity_kr'],
'frequency': ['1D'],
'decay_horizon': 5,
'min_warmup_bars': 197,
diff --git a/agent/src/factors/zoo/alpha101/alpha_062.py b/agent/src/factors/zoo/alpha101/alpha_062.py
index ed0880b13..ded826da5 100644
--- a/agent/src/factors/zoo/alpha101/alpha_062.py
+++ b/agent/src/factors/zoo/alpha101/alpha_062.py
@@ -43,7 +43,7 @@ __alpha_meta__ = {
'columns_required': ['open', 'high', 'low', 'volume', 'vwap', 'close'],
'extras_required': [],
'requires_sector': False,
- 'universe': ['equity_us', 'equity_in'],
+ 'universe': ['equity_us', 'equity_in', 'equity_kr'],
'frequency': ['1D'],
'decay_horizon': 5,
'min_warmup_bars': 35,
diff --git a/agent/src/factors/zoo/alpha101/alpha_063.py b/agent/src/factors/zoo/alpha101/alpha_063.py
index bad3e671c..2529a9bef 100644
--- a/agent/src/factors/zoo/alpha101/alpha_063.py
+++ b/agent/src/factors/zoo/alpha101/alpha_063.py
@@ -43,7 +43,7 @@ __alpha_meta__ = {
'columns_required': ['open', 'close', 'volume', 'vwap'],
'extras_required': [],
'requires_sector': True,
- 'universe': ['equity_us', 'equity_in'],
+ 'universe': ['equity_us', 'equity_in', 'equity_kr'],
'frequency': ['1D'],
'decay_horizon': 5,
'min_warmup_bars': 204,
diff --git a/agent/src/factors/zoo/alpha101/alpha_064.py b/agent/src/factors/zoo/alpha101/alpha_064.py
index 0449e562d..34447d098 100644
--- a/agent/src/factors/zoo/alpha101/alpha_064.py
+++ b/agent/src/factors/zoo/alpha101/alpha_064.py
@@ -43,7 +43,7 @@ __alpha_meta__ = {
'columns_required': ['open', 'high', 'low', 'volume', 'vwap', 'close'],
'extras_required': [],
'requires_sector': False,
- 'universe': ['equity_us', 'equity_in'],
+ 'universe': ['equity_us', 'equity_in', 'equity_kr'],
'frequency': ['1D'],
'decay_horizon': 5,
'min_warmup_bars': 136,
diff --git a/agent/src/factors/zoo/alpha101/alpha_065.py b/agent/src/factors/zoo/alpha101/alpha_065.py
index 1c6ab2e19..b72820183 100644
--- a/agent/src/factors/zoo/alpha101/alpha_065.py
+++ b/agent/src/factors/zoo/alpha101/alpha_065.py
@@ -43,7 +43,7 @@ __alpha_meta__ = {
'columns_required': ['open', 'volume', 'vwap', 'close'],
'extras_required': [],
'requires_sector': False,
- 'universe': ['equity_us', 'equity_in'],
+ 'universe': ['equity_us', 'equity_in', 'equity_kr'],
'frequency': ['1D'],
'decay_horizon': 5,
'min_warmup_bars': 65,
diff --git a/agent/src/factors/zoo/alpha101/alpha_066.py b/agent/src/factors/zoo/alpha101/alpha_066.py
index 154db717c..94c1c3d4a 100644
--- a/agent/src/factors/zoo/alpha101/alpha_066.py
+++ b/agent/src/factors/zoo/alpha101/alpha_066.py
@@ -43,7 +43,7 @@ __alpha_meta__ = {
'columns_required': ['open', 'high', 'low', 'vwap', 'close'],
'extras_required': [],
'requires_sector': False,
- 'universe': ['equity_us', 'equity_in'],
+ 'universe': ['equity_us', 'equity_in', 'equity_kr'],
'frequency': ['1D'],
'decay_horizon': 5,
'min_warmup_bars': 18,
diff --git a/agent/src/factors/zoo/alpha101/alpha_067.py b/agent/src/factors/zoo/alpha101/alpha_067.py
index 131881b50..687469c84 100644
--- a/agent/src/factors/zoo/alpha101/alpha_067.py
+++ b/agent/src/factors/zoo/alpha101/alpha_067.py
@@ -43,7 +43,7 @@ __alpha_meta__ = {
'columns_required': ['high', 'volume', 'vwap', 'close'],
'extras_required': [],
'requires_sector': True,
- 'universe': ['equity_us', 'equity_in'],
+ 'universe': ['equity_us', 'equity_in', 'equity_kr'],
'frequency': ['1D'],
'decay_horizon': 5,
'min_warmup_bars': 25,
diff --git a/agent/src/factors/zoo/alpha101/alpha_068.py b/agent/src/factors/zoo/alpha101/alpha_068.py
index 458e3ecd1..0056350ac 100644
--- a/agent/src/factors/zoo/alpha101/alpha_068.py
+++ b/agent/src/factors/zoo/alpha101/alpha_068.py
@@ -43,7 +43,7 @@ __alpha_meta__ = {
'columns_required': ['high', 'low', 'close', 'volume'],
'extras_required': [],
'requires_sector': False,
- 'universe': ['equity_us', 'equity_in'],
+ 'universe': ['equity_us', 'equity_in', 'equity_kr'],
'frequency': ['1D'],
'decay_horizon': 5,
'min_warmup_bars': 36,
diff --git a/agent/src/factors/zoo/alpha101/alpha_069.py b/agent/src/factors/zoo/alpha101/alpha_069.py
index c4c9a7abc..c8357d09c 100644
--- a/agent/src/factors/zoo/alpha101/alpha_069.py
+++ b/agent/src/factors/zoo/alpha101/alpha_069.py
@@ -43,7 +43,7 @@ __alpha_meta__ = {
'columns_required': ['close', 'volume', 'vwap'],
'extras_required': [],
'requires_sector': True,
- 'universe': ['equity_us', 'equity_in'],
+ 'universe': ['equity_us', 'equity_in', 'equity_kr'],
'frequency': ['1D'],
'decay_horizon': 5,
'min_warmup_bars': 32,
diff --git a/agent/src/factors/zoo/alpha101/alpha_070.py b/agent/src/factors/zoo/alpha101/alpha_070.py
index aae377032..bc3f9f4a4 100644
--- a/agent/src/factors/zoo/alpha101/alpha_070.py
+++ b/agent/src/factors/zoo/alpha101/alpha_070.py
@@ -43,7 +43,7 @@ __alpha_meta__ = {
'columns_required': ['close', 'volume', 'vwap'],
'extras_required': [],
'requires_sector': True,
- 'universe': ['equity_us', 'equity_in'],
+ 'universe': ['equity_us', 'equity_in', 'equity_kr'],
'frequency': ['1D'],
'decay_horizon': 5,
'min_warmup_bars': 84,
diff --git a/agent/src/factors/zoo/alpha101/alpha_071.py b/agent/src/factors/zoo/alpha101/alpha_071.py
index f62f3af91..f43c02713 100644
--- a/agent/src/factors/zoo/alpha101/alpha_071.py
+++ b/agent/src/factors/zoo/alpha101/alpha_071.py
@@ -43,7 +43,7 @@ __alpha_meta__ = {
'columns_required': ['open', 'low', 'close', 'volume', 'vwap'],
'extras_required': [],
'requires_sector': False,
- 'universe': ['equity_us', 'equity_in'],
+ 'universe': ['equity_us', 'equity_in', 'equity_kr'],
'frequency': ['1D'],
'decay_horizon': 5,
'min_warmup_bars': 226,
diff --git a/agent/src/factors/zoo/alpha101/alpha_072.py b/agent/src/factors/zoo/alpha101/alpha_072.py
index 2655f5b13..8e8b61119 100644
--- a/agent/src/factors/zoo/alpha101/alpha_072.py
+++ b/agent/src/factors/zoo/alpha101/alpha_072.py
@@ -43,7 +43,7 @@ __alpha_meta__ = {
'columns_required': ['high', 'low', 'volume', 'vwap', 'close'],
'extras_required': [],
'requires_sector': False,
- 'universe': ['equity_us', 'equity_in'],
+ 'universe': ['equity_us', 'equity_in', 'equity_kr'],
'frequency': ['1D'],
'decay_horizon': 5,
'min_warmup_bars': 57,
diff --git a/agent/src/factors/zoo/alpha101/alpha_073.py b/agent/src/factors/zoo/alpha101/alpha_073.py
index bee46088e..dcc8a9f1f 100644
--- a/agent/src/factors/zoo/alpha101/alpha_073.py
+++ b/agent/src/factors/zoo/alpha101/alpha_073.py
@@ -43,7 +43,7 @@ __alpha_meta__ = {
'columns_required': ['open', 'low', 'vwap', 'close'],
'extras_required': [],
'requires_sector': False,
- 'universe': ['equity_us', 'equity_in'],
+ 'universe': ['equity_us', 'equity_in', 'equity_kr'],
'frequency': ['1D'],
'decay_horizon': 5,
'min_warmup_bars': 21,
diff --git a/agent/src/factors/zoo/alpha101/alpha_074.py b/agent/src/factors/zoo/alpha101/alpha_074.py
index df37fabb2..923bd40e6 100644
--- a/agent/src/factors/zoo/alpha101/alpha_074.py
+++ b/agent/src/factors/zoo/alpha101/alpha_074.py
@@ -43,7 +43,7 @@ __alpha_meta__ = {
'columns_required': ['high', 'close', 'volume', 'vwap'],
'extras_required': [],
'requires_sector': False,
- 'universe': ['equity_us', 'equity_in'],
+ 'universe': ['equity_us', 'equity_in', 'equity_kr'],
'frequency': ['1D'],
'decay_horizon': 5,
'min_warmup_bars': 60,
diff --git a/agent/src/factors/zoo/alpha101/alpha_075.py b/agent/src/factors/zoo/alpha101/alpha_075.py
index 4711a67ff..c59203aaf 100644
--- a/agent/src/factors/zoo/alpha101/alpha_075.py
+++ b/agent/src/factors/zoo/alpha101/alpha_075.py
@@ -43,7 +43,7 @@ __alpha_meta__ = {
'columns_required': ['low', 'volume', 'vwap', 'close'],
'extras_required': [],
'requires_sector': False,
- 'universe': ['equity_us', 'equity_in'],
+ 'universe': ['equity_us', 'equity_in', 'equity_kr'],
'frequency': ['1D'],
'decay_horizon': 5,
'min_warmup_bars': 61,
diff --git a/agent/src/factors/zoo/alpha101/alpha_076.py b/agent/src/factors/zoo/alpha101/alpha_076.py
index 029693b12..b6ffecd27 100644
--- a/agent/src/factors/zoo/alpha101/alpha_076.py
+++ b/agent/src/factors/zoo/alpha101/alpha_076.py
@@ -43,7 +43,7 @@ __alpha_meta__ = {
'columns_required': ['low', 'volume', 'vwap', 'close'],
'extras_required': [],
'requires_sector': True,
- 'universe': ['equity_us', 'equity_in'],
+ 'universe': ['equity_us', 'equity_in', 'equity_kr'],
'frequency': ['1D'],
'decay_horizon': 5,
'min_warmup_bars': 141,
diff --git a/agent/src/factors/zoo/alpha101/alpha_077.py b/agent/src/factors/zoo/alpha101/alpha_077.py
index a6b537141..5ea3a0bdd 100644
--- a/agent/src/factors/zoo/alpha101/alpha_077.py
+++ b/agent/src/factors/zoo/alpha101/alpha_077.py
@@ -43,7 +43,7 @@ __alpha_meta__ = {
'columns_required': ['high', 'low', 'volume', 'vwap', 'close'],
'extras_required': [],
'requires_sector': False,
- 'universe': ['equity_us', 'equity_in'],
+ 'universe': ['equity_us', 'equity_in', 'equity_kr'],
'frequency': ['1D'],
'decay_horizon': 5,
'min_warmup_bars': 47,
diff --git a/agent/src/factors/zoo/alpha101/alpha_078.py b/agent/src/factors/zoo/alpha101/alpha_078.py
index cdd144c69..c94aaa7c7 100644
--- a/agent/src/factors/zoo/alpha101/alpha_078.py
+++ b/agent/src/factors/zoo/alpha101/alpha_078.py
@@ -43,7 +43,7 @@ __alpha_meta__ = {
'columns_required': ['low', 'volume', 'vwap', 'close'],
'extras_required': [],
'requires_sector': False,
- 'universe': ['equity_us', 'equity_in'],
+ 'universe': ['equity_us', 'equity_in', 'equity_kr'],
'frequency': ['1D'],
'decay_horizon': 5,
'min_warmup_bars': 46,
diff --git a/agent/src/factors/zoo/alpha101/alpha_079.py b/agent/src/factors/zoo/alpha101/alpha_079.py
index 34e9707e9..0eb71af95 100644
--- a/agent/src/factors/zoo/alpha101/alpha_079.py
+++ b/agent/src/factors/zoo/alpha101/alpha_079.py
@@ -43,7 +43,7 @@ __alpha_meta__ = {
'columns_required': ['open', 'close', 'volume', 'vwap'],
'extras_required': [],
'requires_sector': True,
- 'universe': ['equity_us', 'equity_in'],
+ 'universe': ['equity_us', 'equity_in', 'equity_kr'],
'frequency': ['1D'],
'decay_horizon': 5,
'min_warmup_bars': 172,
diff --git a/agent/src/factors/zoo/alpha101/alpha_080.py b/agent/src/factors/zoo/alpha101/alpha_080.py
index 9836d3346..6471055e1 100644
--- a/agent/src/factors/zoo/alpha101/alpha_080.py
+++ b/agent/src/factors/zoo/alpha101/alpha_080.py
@@ -43,7 +43,7 @@ __alpha_meta__ = {
'columns_required': ['open', 'high', 'volume', 'close'],
'extras_required': [],
'requires_sector': True,
- 'universe': ['equity_us', 'equity_in'],
+ 'universe': ['equity_us', 'equity_in', 'equity_kr'],
'frequency': ['1D'],
'decay_horizon': 5,
'min_warmup_bars': 19,
diff --git a/agent/src/factors/zoo/alpha101/alpha_081.py b/agent/src/factors/zoo/alpha101/alpha_081.py
index 5c2dd41a2..ecb257ce0 100644
--- a/agent/src/factors/zoo/alpha101/alpha_081.py
+++ b/agent/src/factors/zoo/alpha101/alpha_081.py
@@ -43,7 +43,7 @@ __alpha_meta__ = {
'columns_required': ['volume', 'vwap', 'close'],
'extras_required': [],
'requires_sector': False,
- 'universe': ['equity_us', 'equity_in'],
+ 'universe': ['equity_us', 'equity_in', 'equity_kr'],
'frequency': ['1D'],
'decay_horizon': 5,
'min_warmup_bars': 70,
diff --git a/agent/src/factors/zoo/alpha101/alpha_082.py b/agent/src/factors/zoo/alpha101/alpha_082.py
index 2cf7621dd..9cd56b086 100644
--- a/agent/src/factors/zoo/alpha101/alpha_082.py
+++ b/agent/src/factors/zoo/alpha101/alpha_082.py
@@ -43,7 +43,7 @@ __alpha_meta__ = {
'columns_required': ['open', 'volume', 'close'],
'extras_required': [],
'requires_sector': True,
- 'universe': ['equity_us', 'equity_in'],
+ 'universe': ['equity_us', 'equity_in', 'equity_kr'],
'frequency': ['1D'],
'decay_horizon': 5,
'min_warmup_bars': 35,
diff --git a/agent/src/factors/zoo/alpha101/alpha_083.py b/agent/src/factors/zoo/alpha101/alpha_083.py
index 9f7ad740a..a2aba4038 100644
--- a/agent/src/factors/zoo/alpha101/alpha_083.py
+++ b/agent/src/factors/zoo/alpha101/alpha_083.py
@@ -43,7 +43,7 @@ __alpha_meta__ = {
'columns_required': ['high', 'low', 'close', 'volume', 'vwap'],
'extras_required': [],
'requires_sector': False,
- 'universe': ['equity_us', 'equity_in'],
+ 'universe': ['equity_us', 'equity_in', 'equity_kr'],
'frequency': ['1D'],
'decay_horizon': 5,
'min_warmup_bars': 7,
diff --git a/agent/src/factors/zoo/alpha101/alpha_084.py b/agent/src/factors/zoo/alpha101/alpha_084.py
index 6db456926..f12371461 100644
--- a/agent/src/factors/zoo/alpha101/alpha_084.py
+++ b/agent/src/factors/zoo/alpha101/alpha_084.py
@@ -43,7 +43,7 @@ __alpha_meta__ = {
'columns_required': ['close', 'vwap'],
'extras_required': [],
'requires_sector': False,
- 'universe': ['equity_us', 'equity_in'],
+ 'universe': ['equity_us', 'equity_in', 'equity_kr'],
'frequency': ['1D'],
'decay_horizon': 5,
'min_warmup_bars': 35,
diff --git a/agent/src/factors/zoo/alpha101/alpha_085.py b/agent/src/factors/zoo/alpha101/alpha_085.py
index fa94dd1c7..a7d84806f 100644
--- a/agent/src/factors/zoo/alpha101/alpha_085.py
+++ b/agent/src/factors/zoo/alpha101/alpha_085.py
@@ -43,7 +43,7 @@ __alpha_meta__ = {
'columns_required': ['high', 'low', 'close', 'volume'],
'extras_required': [],
'requires_sector': False,
- 'universe': ['equity_us', 'equity_in'],
+ 'universe': ['equity_us', 'equity_in', 'equity_kr'],
'frequency': ['1D'],
'decay_horizon': 5,
'min_warmup_bars': 39,
diff --git a/agent/src/factors/zoo/alpha101/alpha_086.py b/agent/src/factors/zoo/alpha101/alpha_086.py
index 9880783ee..424650f0a 100644
--- a/agent/src/factors/zoo/alpha101/alpha_086.py
+++ b/agent/src/factors/zoo/alpha101/alpha_086.py
@@ -43,7 +43,7 @@ __alpha_meta__ = {
'columns_required': ['open', 'close', 'volume', 'vwap'],
'extras_required': [],
'requires_sector': False,
- 'universe': ['equity_us', 'equity_in'],
+ 'universe': ['equity_us', 'equity_in', 'equity_kr'],
'frequency': ['1D'],
'decay_horizon': 5,
'min_warmup_bars': 44,
diff --git a/agent/src/factors/zoo/alpha101/alpha_087.py b/agent/src/factors/zoo/alpha101/alpha_087.py
index 6bfaba617..433f95664 100644
--- a/agent/src/factors/zoo/alpha101/alpha_087.py
+++ b/agent/src/factors/zoo/alpha101/alpha_087.py
@@ -43,7 +43,7 @@ __alpha_meta__ = {
'columns_required': ['close', 'vwap', 'volume'],
'extras_required': [],
'requires_sector': True,
- 'universe': ['equity_us', 'equity_in'],
+ 'universe': ['equity_us', 'equity_in', 'equity_kr'],
'frequency': ['1D'],
'decay_horizon': 5,
'min_warmup_bars': 110,
diff --git a/agent/src/factors/zoo/alpha101/alpha_088.py b/agent/src/factors/zoo/alpha101/alpha_088.py
index 0fd255796..05b76d1ec 100644
--- a/agent/src/factors/zoo/alpha101/alpha_088.py
+++ b/agent/src/factors/zoo/alpha101/alpha_088.py
@@ -43,7 +43,7 @@ __alpha_meta__ = {
'columns_required': ['open', 'high', 'low', 'close', 'volume'],
'extras_required': [],
'requires_sector': False,
- 'universe': ['equity_us', 'equity_in'],
+ 'universe': ['equity_us', 'equity_in', 'equity_kr'],
'frequency': ['1D'],
'decay_horizon': 5,
'min_warmup_bars': 94,
diff --git a/agent/src/factors/zoo/alpha101/alpha_089.py b/agent/src/factors/zoo/alpha101/alpha_089.py
index dda33a4af..ffe77ef65 100644
--- a/agent/src/factors/zoo/alpha101/alpha_089.py
+++ b/agent/src/factors/zoo/alpha101/alpha_089.py
@@ -43,7 +43,7 @@ __alpha_meta__ = {
'columns_required': ['low', 'volume', 'vwap', 'close'],
'extras_required': [],
'requires_sector': True,
- 'universe': ['equity_us', 'equity_in'],
+ 'universe': ['equity_us', 'equity_in', 'equity_kr'],
'frequency': ['1D'],
'decay_horizon': 5,
'min_warmup_bars': 30,
diff --git a/agent/src/factors/zoo/alpha101/alpha_090.py b/agent/src/factors/zoo/alpha101/alpha_090.py
index 6925d4856..fc1ed402d 100644
--- a/agent/src/factors/zoo/alpha101/alpha_090.py
+++ b/agent/src/factors/zoo/alpha101/alpha_090.py
@@ -43,7 +43,7 @@ __alpha_meta__ = {
'columns_required': ['low', 'close', 'volume'],
'extras_required': [],
'requires_sector': True,
- 'universe': ['equity_us', 'equity_in'],
+ 'universe': ['equity_us', 'equity_in', 'equity_kr'],
'frequency': ['1D'],
'decay_horizon': 5,
'min_warmup_bars': 46,
diff --git a/agent/src/factors/zoo/alpha101/alpha_091.py b/agent/src/factors/zoo/alpha101/alpha_091.py
index d7aedbdd0..c6d3d3376 100644
--- a/agent/src/factors/zoo/alpha101/alpha_091.py
+++ b/agent/src/factors/zoo/alpha101/alpha_091.py
@@ -43,7 +43,7 @@ __alpha_meta__ = {
'columns_required': ['close', 'volume', 'vwap'],
'extras_required': [],
'requires_sector': True,
- 'universe': ['equity_us', 'equity_in'],
+ 'universe': ['equity_us', 'equity_in', 'equity_kr'],
'frequency': ['1D'],
'decay_horizon': 5,
'min_warmup_bars': 35,
diff --git a/agent/src/factors/zoo/alpha101/alpha_092.py b/agent/src/factors/zoo/alpha101/alpha_092.py
index 19e734eae..be9e8e2be 100644
--- a/agent/src/factors/zoo/alpha101/alpha_092.py
+++ b/agent/src/factors/zoo/alpha101/alpha_092.py
@@ -43,7 +43,7 @@ __alpha_meta__ = {
'columns_required': ['open', 'high', 'low', 'close', 'volume'],
'extras_required': [],
'requires_sector': False,
- 'universe': ['equity_us', 'equity_in'],
+ 'universe': ['equity_us', 'equity_in', 'equity_kr'],
'frequency': ['1D'],
'decay_horizon': 5,
'min_warmup_bars': 49,
diff --git a/agent/src/factors/zoo/alpha101/alpha_093.py b/agent/src/factors/zoo/alpha101/alpha_093.py
index 316de2b88..34eda0ca8 100644
--- a/agent/src/factors/zoo/alpha101/alpha_093.py
+++ b/agent/src/factors/zoo/alpha101/alpha_093.py
@@ -43,7 +43,7 @@ __alpha_meta__ = {
'columns_required': ['close', 'volume', 'vwap'],
'extras_required': [],
'requires_sector': True,
- 'universe': ['equity_us', 'equity_in'],
+ 'universe': ['equity_us', 'equity_in', 'equity_kr'],
'frequency': ['1D'],
'decay_horizon': 5,
'min_warmup_bars': 123,
diff --git a/agent/src/factors/zoo/alpha101/alpha_094.py b/agent/src/factors/zoo/alpha101/alpha_094.py
index acddb4305..254435a1b 100644
--- a/agent/src/factors/zoo/alpha101/alpha_094.py
+++ b/agent/src/factors/zoo/alpha101/alpha_094.py
@@ -43,7 +43,7 @@ __alpha_meta__ = {
'columns_required': ['volume', 'vwap', 'close'],
'extras_required': [],
'requires_sector': False,
- 'universe': ['equity_us', 'equity_in'],
+ 'universe': ['equity_us', 'equity_in', 'equity_kr'],
'frequency': ['1D'],
'decay_horizon': 5,
'min_warmup_bars': 82,
diff --git a/agent/src/factors/zoo/alpha101/alpha_095.py b/agent/src/factors/zoo/alpha101/alpha_095.py
index 275b80b69..790e70dc9 100644
--- a/agent/src/factors/zoo/alpha101/alpha_095.py
+++ b/agent/src/factors/zoo/alpha101/alpha_095.py
@@ -43,7 +43,7 @@ __alpha_meta__ = {
'columns_required': ['open', 'high', 'low', 'volume', 'close'],
'extras_required': [],
'requires_sector': False,
- 'universe': ['equity_us', 'equity_in'],
+ 'universe': ['equity_us', 'equity_in', 'equity_kr'],
'frequency': ['1D'],
'decay_horizon': 5,
'min_warmup_bars': 63,
diff --git a/agent/src/factors/zoo/alpha101/alpha_096.py b/agent/src/factors/zoo/alpha101/alpha_096.py
index 14c580e2a..736b47e26 100644
--- a/agent/src/factors/zoo/alpha101/alpha_096.py
+++ b/agent/src/factors/zoo/alpha101/alpha_096.py
@@ -43,7 +43,7 @@ __alpha_meta__ = {
'columns_required': ['close', 'volume', 'vwap'],
'extras_required': [],
'requires_sector': False,
- 'universe': ['equity_us', 'equity_in'],
+ 'universe': ['equity_us', 'equity_in', 'equity_kr'],
'frequency': ['1D'],
'decay_horizon': 5,
'min_warmup_bars': 103,
diff --git a/agent/src/factors/zoo/alpha101/alpha_097.py b/agent/src/factors/zoo/alpha101/alpha_097.py
index 442ca5209..1dd0278d8 100644
--- a/agent/src/factors/zoo/alpha101/alpha_097.py
+++ b/agent/src/factors/zoo/alpha101/alpha_097.py
@@ -43,7 +43,7 @@ __alpha_meta__ = {
'columns_required': ['low', 'volume', 'vwap', 'close'],
'extras_required': [],
'requires_sector': True,
- 'universe': ['equity_us', 'equity_in'],
+ 'universe': ['equity_us', 'equity_in', 'equity_kr'],
'frequency': ['1D'],
'decay_horizon': 5,
'min_warmup_bars': 128,
diff --git a/agent/src/factors/zoo/alpha101/alpha_098.py b/agent/src/factors/zoo/alpha101/alpha_098.py
index aa0bb301f..853c0c377 100644
--- a/agent/src/factors/zoo/alpha101/alpha_098.py
+++ b/agent/src/factors/zoo/alpha101/alpha_098.py
@@ -43,7 +43,7 @@ __alpha_meta__ = {
'columns_required': ['open', 'volume', 'vwap', 'close'],
'extras_required': [],
'requires_sector': False,
- 'universe': ['equity_us', 'equity_in'],
+ 'universe': ['equity_us', 'equity_in', 'equity_kr'],
'frequency': ['1D'],
'decay_horizon': 5,
'min_warmup_bars': 56,
diff --git a/agent/src/factors/zoo/alpha101/alpha_099.py b/agent/src/factors/zoo/alpha101/alpha_099.py
index 29e2f05c3..65b3b81cc 100644
--- a/agent/src/factors/zoo/alpha101/alpha_099.py
+++ b/agent/src/factors/zoo/alpha101/alpha_099.py
@@ -43,7 +43,7 @@ __alpha_meta__ = {
'columns_required': ['high', 'low', 'volume', 'close'],
'extras_required': [],
'requires_sector': False,
- 'universe': ['equity_us', 'equity_in'],
+ 'universe': ['equity_us', 'equity_in', 'equity_kr'],
'frequency': ['1D'],
'decay_horizon': 5,
'min_warmup_bars': 68,
diff --git a/agent/src/factors/zoo/alpha101/alpha_100.py b/agent/src/factors/zoo/alpha101/alpha_100.py
index 39fdd2f07..53ecace16 100644
--- a/agent/src/factors/zoo/alpha101/alpha_100.py
+++ b/agent/src/factors/zoo/alpha101/alpha_100.py
@@ -43,7 +43,7 @@ __alpha_meta__ = {
'columns_required': ['high', 'low', 'close', 'volume'],
'extras_required': [],
'requires_sector': True,
- 'universe': ['equity_us', 'equity_in'],
+ 'universe': ['equity_us', 'equity_in', 'equity_kr'],
'frequency': ['1D'],
'decay_horizon': 5,
'min_warmup_bars': 30,
diff --git a/agent/src/factors/zoo/alpha101/alpha_101.py b/agent/src/factors/zoo/alpha101/alpha_101.py
index 229600849..696ebbc3d 100644
--- a/agent/src/factors/zoo/alpha101/alpha_101.py
+++ b/agent/src/factors/zoo/alpha101/alpha_101.py
@@ -43,7 +43,7 @@ __alpha_meta__ = {
'columns_required': ['open', 'high', 'low', 'close'],
'extras_required': [],
'requires_sector': False,
- 'universe': ['equity_us', 'equity_in'],
+ 'universe': ['equity_us', 'equity_in', 'equity_kr'],
'frequency': ['1D'],
'decay_horizon': 5,
'min_warmup_bars': 1,
diff --git a/agent/src/factors/zoo/qlib158/beta10.py b/agent/src/factors/zoo/qlib158/beta10.py
index 321219127..eee7817b0 100644
--- a/agent/src/factors/zoo/qlib158/beta10.py
+++ b/agent/src/factors/zoo/qlib158/beta10.py
@@ -16,7 +16,7 @@ __alpha_meta__ = {
'theme': ['momentum'],
'formula_latex': '(\\\\mathrm{close}_t - \\\\mathrm{close}_{{t-10}}) / (10\\\\,\\\\mathrm{close})',
'columns_required': ['close'],
- 'universe': ['equity_us', 'equity_cn', 'equity_hk', 'equity_in'],
+ 'universe': ['equity_us', 'equity_cn', 'equity_hk', 'equity_in', 'equity_kr'],
'frequency': ['1d'],
'decay_horizon': 10,
'min_warmup_bars': 10,
diff --git a/agent/src/factors/zoo/qlib158/beta20.py b/agent/src/factors/zoo/qlib158/beta20.py
index b2ee4352a..ccdcbc476 100644
--- a/agent/src/factors/zoo/qlib158/beta20.py
+++ b/agent/src/factors/zoo/qlib158/beta20.py
@@ -16,7 +16,7 @@ __alpha_meta__ = {
'theme': ['momentum'],
'formula_latex': '(\\\\mathrm{close}_t - \\\\mathrm{close}_{{t-20}}) / (20\\\\,\\\\mathrm{close})',
'columns_required': ['close'],
- 'universe': ['equity_us', 'equity_cn', 'equity_hk', 'equity_in'],
+ 'universe': ['equity_us', 'equity_cn', 'equity_hk', 'equity_in', 'equity_kr'],
'frequency': ['1d'],
'decay_horizon': 20,
'min_warmup_bars': 20,
diff --git a/agent/src/factors/zoo/qlib158/beta30.py b/agent/src/factors/zoo/qlib158/beta30.py
index bea74c7c8..c7636c793 100644
--- a/agent/src/factors/zoo/qlib158/beta30.py
+++ b/agent/src/factors/zoo/qlib158/beta30.py
@@ -16,7 +16,7 @@ __alpha_meta__ = {
'theme': ['momentum'],
'formula_latex': '(\\\\mathrm{close}_t - \\\\mathrm{close}_{{t-30}}) / (30\\\\,\\\\mathrm{close})',
'columns_required': ['close'],
- 'universe': ['equity_us', 'equity_cn', 'equity_hk', 'equity_in'],
+ 'universe': ['equity_us', 'equity_cn', 'equity_hk', 'equity_in', 'equity_kr'],
'frequency': ['1d'],
'decay_horizon': 30,
'min_warmup_bars': 30,
diff --git a/agent/src/factors/zoo/qlib158/beta5.py b/agent/src/factors/zoo/qlib158/beta5.py
index d8b2576af..d9e2dbbf7 100644
--- a/agent/src/factors/zoo/qlib158/beta5.py
+++ b/agent/src/factors/zoo/qlib158/beta5.py
@@ -16,7 +16,7 @@ __alpha_meta__ = {
'theme': ['momentum'],
'formula_latex': '(\\\\mathrm{close}_t - \\\\mathrm{close}_{{t-5}}) / (5\\\\,\\\\mathrm{close})',
'columns_required': ['close'],
- 'universe': ['equity_us', 'equity_cn', 'equity_hk', 'equity_in'],
+ 'universe': ['equity_us', 'equity_cn', 'equity_hk', 'equity_in', 'equity_kr'],
'frequency': ['1d'],
'decay_horizon': 5,
'min_warmup_bars': 5,
diff --git a/agent/src/factors/zoo/qlib158/beta60.py b/agent/src/factors/zoo/qlib158/beta60.py
index a1f5ccf01..0ee970eb0 100644
--- a/agent/src/factors/zoo/qlib158/beta60.py
+++ b/agent/src/factors/zoo/qlib158/beta60.py
@@ -16,7 +16,7 @@ __alpha_meta__ = {
'theme': ['momentum'],
'formula_latex': '(\\\\mathrm{close}_t - \\\\mathrm{close}_{{t-60}}) / (60\\\\,\\\\mathrm{close})',
'columns_required': ['close'],
- 'universe': ['equity_us', 'equity_cn', 'equity_hk', 'equity_in'],
+ 'universe': ['equity_us', 'equity_cn', 'equity_hk', 'equity_in', 'equity_kr'],
'frequency': ['1d'],
'decay_horizon': 60,
'min_warmup_bars': 60,
diff --git a/agent/src/factors/zoo/qlib158/cntd10.py b/agent/src/factors/zoo/qlib158/cntd10.py
index 23a2317ba..e4d3f98da 100644
--- a/agent/src/factors/zoo/qlib158/cntd10.py
+++ b/agent/src/factors/zoo/qlib158/cntd10.py
@@ -15,7 +15,7 @@ __alpha_meta__ = {
'theme': ['reversal'],
'formula_latex': '\\\\mathrm{CNTP}_10 - \\\\mathrm{CNTN}_10',
'columns_required': ['close'],
- 'universe': ['equity_us', 'equity_cn', 'equity_hk', 'equity_in'],
+ 'universe': ['equity_us', 'equity_cn', 'equity_hk', 'equity_in', 'equity_kr'],
'frequency': ['1d'],
'decay_horizon': 10,
'min_warmup_bars': 10,
diff --git a/agent/src/factors/zoo/qlib158/cntd20.py b/agent/src/factors/zoo/qlib158/cntd20.py
index c6d3d8f1a..094bc5f75 100644
--- a/agent/src/factors/zoo/qlib158/cntd20.py
+++ b/agent/src/factors/zoo/qlib158/cntd20.py
@@ -15,7 +15,7 @@ __alpha_meta__ = {
'theme': ['reversal'],
'formula_latex': '\\\\mathrm{CNTP}_20 - \\\\mathrm{CNTN}_20',
'columns_required': ['close'],
- 'universe': ['equity_us', 'equity_cn', 'equity_hk', 'equity_in'],
+ 'universe': ['equity_us', 'equity_cn', 'equity_hk', 'equity_in', 'equity_kr'],
'frequency': ['1d'],
'decay_horizon': 20,
'min_warmup_bars': 20,
diff --git a/agent/src/factors/zoo/qlib158/cntd30.py b/agent/src/factors/zoo/qlib158/cntd30.py
index fe577e69b..9041183ef 100644
--- a/agent/src/factors/zoo/qlib158/cntd30.py
+++ b/agent/src/factors/zoo/qlib158/cntd30.py
@@ -15,7 +15,7 @@ __alpha_meta__ = {
'theme': ['reversal'],
'formula_latex': '\\\\mathrm{CNTP}_30 - \\\\mathrm{CNTN}_30',
'columns_required': ['close'],
- 'universe': ['equity_us', 'equity_cn', 'equity_hk', 'equity_in'],
+ 'universe': ['equity_us', 'equity_cn', 'equity_hk', 'equity_in', 'equity_kr'],
'frequency': ['1d'],
'decay_horizon': 30,
'min_warmup_bars': 30,
diff --git a/agent/src/factors/zoo/qlib158/cntd5.py b/agent/src/factors/zoo/qlib158/cntd5.py
index 9c844255b..41bcc8d9e 100644
--- a/agent/src/factors/zoo/qlib158/cntd5.py
+++ b/agent/src/factors/zoo/qlib158/cntd5.py
@@ -15,7 +15,7 @@ __alpha_meta__ = {
'theme': ['reversal'],
'formula_latex': '\\\\mathrm{CNTP}_5 - \\\\mathrm{CNTN}_5',
'columns_required': ['close'],
- 'universe': ['equity_us', 'equity_cn', 'equity_hk', 'equity_in'],
+ 'universe': ['equity_us', 'equity_cn', 'equity_hk', 'equity_in', 'equity_kr'],
'frequency': ['1d'],
'decay_horizon': 5,
'min_warmup_bars': 5,
diff --git a/agent/src/factors/zoo/qlib158/cntd60.py b/agent/src/factors/zoo/qlib158/cntd60.py
index 3411132d4..74980d022 100644
--- a/agent/src/factors/zoo/qlib158/cntd60.py
+++ b/agent/src/factors/zoo/qlib158/cntd60.py
@@ -15,7 +15,7 @@ __alpha_meta__ = {
'theme': ['reversal'],
'formula_latex': '\\\\mathrm{CNTP}_60 - \\\\mathrm{CNTN}_60',
'columns_required': ['close'],
- 'universe': ['equity_us', 'equity_cn', 'equity_hk', 'equity_in'],
+ 'universe': ['equity_us', 'equity_cn', 'equity_hk', 'equity_in', 'equity_kr'],
'frequency': ['1d'],
'decay_horizon': 60,
'min_warmup_bars': 60,
diff --git a/agent/src/factors/zoo/qlib158/cntn10.py b/agent/src/factors/zoo/qlib158/cntn10.py
index 7ff1cea4b..92d01540e 100644
--- a/agent/src/factors/zoo/qlib158/cntn10.py
+++ b/agent/src/factors/zoo/qlib158/cntn10.py
@@ -15,7 +15,7 @@ __alpha_meta__ = {
'theme': ['reversal'],
'formula_latex': '\\\\mathrm{rolling\\\\_mean}(\\\\mathrm{1}[\\\\mathrm{close}<\\\\mathrm{close}_{{-1}}], 10)',
'columns_required': ['close'],
- 'universe': ['equity_us', 'equity_cn', 'equity_hk', 'equity_in'],
+ 'universe': ['equity_us', 'equity_cn', 'equity_hk', 'equity_in', 'equity_kr'],
'frequency': ['1d'],
'decay_horizon': 10,
'min_warmup_bars': 10,
diff --git a/agent/src/factors/zoo/qlib158/cntn20.py b/agent/src/factors/zoo/qlib158/cntn20.py
index de168183c..bd334d0d9 100644
--- a/agent/src/factors/zoo/qlib158/cntn20.py
+++ b/agent/src/factors/zoo/qlib158/cntn20.py
@@ -15,7 +15,7 @@ __alpha_meta__ = {
'theme': ['reversal'],
'formula_latex': '\\\\mathrm{rolling\\\\_mean}(\\\\mathrm{1}[\\\\mathrm{close}<\\\\mathrm{close}_{{-1}}], 20)',
'columns_required': ['close'],
- 'universe': ['equity_us', 'equity_cn', 'equity_hk', 'equity_in'],
+ 'universe': ['equity_us', 'equity_cn', 'equity_hk', 'equity_in', 'equity_kr'],
'frequency': ['1d'],
'decay_horizon': 20,
'min_warmup_bars': 20,
diff --git a/agent/src/factors/zoo/qlib158/cntn30.py b/agent/src/factors/zoo/qlib158/cntn30.py
index 7200b5983..40b0ffd3f 100644
--- a/agent/src/factors/zoo/qlib158/cntn30.py
+++ b/agent/src/factors/zoo/qlib158/cntn30.py
@@ -15,7 +15,7 @@ __alpha_meta__ = {
'theme': ['reversal'],
'formula_latex': '\\\\mathrm{rolling\\\\_mean}(\\\\mathrm{1}[\\\\mathrm{close}<\\\\mathrm{close}_{{-1}}], 30)',
'columns_required': ['close'],
- 'universe': ['equity_us', 'equity_cn', 'equity_hk', 'equity_in'],
+ 'universe': ['equity_us', 'equity_cn', 'equity_hk', 'equity_in', 'equity_kr'],
'frequency': ['1d'],
'decay_horizon': 30,
'min_warmup_bars': 30,
diff --git a/agent/src/factors/zoo/qlib158/cntn5.py b/agent/src/factors/zoo/qlib158/cntn5.py
index b14c0e256..841172b64 100644
--- a/agent/src/factors/zoo/qlib158/cntn5.py
+++ b/agent/src/factors/zoo/qlib158/cntn5.py
@@ -15,7 +15,7 @@ __alpha_meta__ = {
'theme': ['reversal'],
'formula_latex': '\\\\mathrm{rolling\\\\_mean}(\\\\mathrm{1}[\\\\mathrm{close}<\\\\mathrm{close}_{{-1}}], 5)',
'columns_required': ['close'],
- 'universe': ['equity_us', 'equity_cn', 'equity_hk', 'equity_in'],
+ 'universe': ['equity_us', 'equity_cn', 'equity_hk', 'equity_in', 'equity_kr'],
'frequency': ['1d'],
'decay_horizon': 5,
'min_warmup_bars': 5,
diff --git a/agent/src/factors/zoo/qlib158/cntn60.py b/agent/src/factors/zoo/qlib158/cntn60.py
index 78c71d93f..22bc8dbb9 100644
--- a/agent/src/factors/zoo/qlib158/cntn60.py
+++ b/agent/src/factors/zoo/qlib158/cntn60.py
@@ -15,7 +15,7 @@ __alpha_meta__ = {
'theme': ['reversal'],
'formula_latex': '\\\\mathrm{rolling\\\\_mean}(\\\\mathrm{1}[\\\\mathrm{close}<\\\\mathrm{close}_{{-1}}], 60)',
'columns_required': ['close'],
- 'universe': ['equity_us', 'equity_cn', 'equity_hk', 'equity_in'],
+ 'universe': ['equity_us', 'equity_cn', 'equity_hk', 'equity_in', 'equity_kr'],
'frequency': ['1d'],
'decay_horizon': 60,
'min_warmup_bars': 60,
diff --git a/agent/src/factors/zoo/qlib158/cntp10.py b/agent/src/factors/zoo/qlib158/cntp10.py
index c3807978b..fa4c6da3b 100644
--- a/agent/src/factors/zoo/qlib158/cntp10.py
+++ b/agent/src/factors/zoo/qlib158/cntp10.py
@@ -15,7 +15,7 @@ __alpha_meta__ = {
'theme': ['reversal'],
'formula_latex': '\\\\mathrm{rolling\\\\_mean}(\\\\mathrm{1}[\\\\mathrm{close}>\\\\mathrm{close}_{{-1}}], 10)',
'columns_required': ['close'],
- 'universe': ['equity_us', 'equity_cn', 'equity_hk', 'equity_in'],
+ 'universe': ['equity_us', 'equity_cn', 'equity_hk', 'equity_in', 'equity_kr'],
'frequency': ['1d'],
'decay_horizon': 10,
'min_warmup_bars': 10,
diff --git a/agent/src/factors/zoo/qlib158/cntp20.py b/agent/src/factors/zoo/qlib158/cntp20.py
index c991bb823..3a480b4b6 100644
--- a/agent/src/factors/zoo/qlib158/cntp20.py
+++ b/agent/src/factors/zoo/qlib158/cntp20.py
@@ -15,7 +15,7 @@ __alpha_meta__ = {
'theme': ['reversal'],
'formula_latex': '\\\\mathrm{rolling\\\\_mean}(\\\\mathrm{1}[\\\\mathrm{close}>\\\\mathrm{close}_{{-1}}], 20)',
'columns_required': ['close'],
- 'universe': ['equity_us', 'equity_cn', 'equity_hk', 'equity_in'],
+ 'universe': ['equity_us', 'equity_cn', 'equity_hk', 'equity_in', 'equity_kr'],
'frequency': ['1d'],
'decay_horizon': 20,
'min_warmup_bars': 20,
diff --git a/agent/src/factors/zoo/qlib158/cntp30.py b/agent/src/factors/zoo/qlib158/cntp30.py
index e35002d42..a5cf9fd40 100644
--- a/agent/src/factors/zoo/qlib158/cntp30.py
+++ b/agent/src/factors/zoo/qlib158/cntp30.py
@@ -15,7 +15,7 @@ __alpha_meta__ = {
'theme': ['reversal'],
'formula_latex': '\\\\mathrm{rolling\\\\_mean}(\\\\mathrm{1}[\\\\mathrm{close}>\\\\mathrm{close}_{{-1}}], 30)',
'columns_required': ['close'],
- 'universe': ['equity_us', 'equity_cn', 'equity_hk', 'equity_in'],
+ 'universe': ['equity_us', 'equity_cn', 'equity_hk', 'equity_in', 'equity_kr'],
'frequency': ['1d'],
'decay_horizon': 30,
'min_warmup_bars': 30,
diff --git a/agent/src/factors/zoo/qlib158/cntp5.py b/agent/src/factors/zoo/qlib158/cntp5.py
index 3fbece635..0a99796aa 100644
--- a/agent/src/factors/zoo/qlib158/cntp5.py
+++ b/agent/src/factors/zoo/qlib158/cntp5.py
@@ -15,7 +15,7 @@ __alpha_meta__ = {
'theme': ['reversal'],
'formula_latex': '\\\\mathrm{rolling\\\\_mean}(\\\\mathrm{1}[\\\\mathrm{close}>\\\\mathrm{close}_{{-1}}], 5)',
'columns_required': ['close'],
- 'universe': ['equity_us', 'equity_cn', 'equity_hk', 'equity_in'],
+ 'universe': ['equity_us', 'equity_cn', 'equity_hk', 'equity_in', 'equity_kr'],
'frequency': ['1d'],
'decay_horizon': 5,
'min_warmup_bars': 5,
diff --git a/agent/src/factors/zoo/qlib158/cntp60.py b/agent/src/factors/zoo/qlib158/cntp60.py
index f4de78d4d..3445c2fff 100644
--- a/agent/src/factors/zoo/qlib158/cntp60.py
+++ b/agent/src/factors/zoo/qlib158/cntp60.py
@@ -15,7 +15,7 @@ __alpha_meta__ = {
'theme': ['reversal'],
'formula_latex': '\\\\mathrm{rolling\\\\_mean}(\\\\mathrm{1}[\\\\mathrm{close}>\\\\mathrm{close}_{{-1}}], 60)',
'columns_required': ['close'],
- 'universe': ['equity_us', 'equity_cn', 'equity_hk', 'equity_in'],
+ 'universe': ['equity_us', 'equity_cn', 'equity_hk', 'equity_in', 'equity_kr'],
'frequency': ['1d'],
'decay_horizon': 60,
'min_warmup_bars': 60,
diff --git a/agent/src/factors/zoo/qlib158/cord10.py b/agent/src/factors/zoo/qlib158/cord10.py
index 76bca5250..3e2be53d1 100644
--- a/agent/src/factors/zoo/qlib158/cord10.py
+++ b/agent/src/factors/zoo/qlib158/cord10.py
@@ -17,7 +17,7 @@ __alpha_meta__ = {
'theme': ['volume', 'microstructure'],
'formula_latex': '\\\\mathrm{ts\\\\_corr}(\\\\mathrm{close}/\\\\mathrm{close}_{{-1}}, \\\\log((\\\\mathrm{volume}+1)/(\\\\mathrm{volume}_{{-1}}+1)), 10)',
'columns_required': ['close', 'volume'],
- 'universe': ['equity_us', 'equity_cn', 'equity_hk', 'equity_in'],
+ 'universe': ['equity_us', 'equity_cn', 'equity_hk', 'equity_in', 'equity_kr'],
'frequency': ['1d'],
'decay_horizon': 10,
'min_warmup_bars': 10,
diff --git a/agent/src/factors/zoo/qlib158/cord20.py b/agent/src/factors/zoo/qlib158/cord20.py
index 998317edb..0a4133cd1 100644
--- a/agent/src/factors/zoo/qlib158/cord20.py
+++ b/agent/src/factors/zoo/qlib158/cord20.py
@@ -17,7 +17,7 @@ __alpha_meta__ = {
'theme': ['volume', 'microstructure'],
'formula_latex': '\\\\mathrm{ts\\\\_corr}(\\\\mathrm{close}/\\\\mathrm{close}_{{-1}}, \\\\log((\\\\mathrm{volume}+1)/(\\\\mathrm{volume}_{{-1}}+1)), 20)',
'columns_required': ['close', 'volume'],
- 'universe': ['equity_us', 'equity_cn', 'equity_hk', 'equity_in'],
+ 'universe': ['equity_us', 'equity_cn', 'equity_hk', 'equity_in', 'equity_kr'],
'frequency': ['1d'],
'decay_horizon': 20,
'min_warmup_bars': 20,
diff --git a/agent/src/factors/zoo/qlib158/cord30.py b/agent/src/factors/zoo/qlib158/cord30.py
index 90e04e26f..8696bf125 100644
--- a/agent/src/factors/zoo/qlib158/cord30.py
+++ b/agent/src/factors/zoo/qlib158/cord30.py
@@ -17,7 +17,7 @@ __alpha_meta__ = {
'theme': ['volume', 'microstructure'],
'formula_latex': '\\\\mathrm{ts\\\\_corr}(\\\\mathrm{close}/\\\\mathrm{close}_{{-1}}, \\\\log((\\\\mathrm{volume}+1)/(\\\\mathrm{volume}_{{-1}}+1)), 30)',
'columns_required': ['close', 'volume'],
- 'universe': ['equity_us', 'equity_cn', 'equity_hk', 'equity_in'],
+ 'universe': ['equity_us', 'equity_cn', 'equity_hk', 'equity_in', 'equity_kr'],
'frequency': ['1d'],
'decay_horizon': 30,
'min_warmup_bars': 30,
diff --git a/agent/src/factors/zoo/qlib158/cord5.py b/agent/src/factors/zoo/qlib158/cord5.py
index 4393d1529..f7a47cfb1 100644
--- a/agent/src/factors/zoo/qlib158/cord5.py
+++ b/agent/src/factors/zoo/qlib158/cord5.py
@@ -17,7 +17,7 @@ __alpha_meta__ = {
'theme': ['volume', 'microstructure'],
'formula_latex': '\\\\mathrm{ts\\\\_corr}(\\\\mathrm{close}/\\\\mathrm{close}_{{-1}}, \\\\log((\\\\mathrm{volume}+1)/(\\\\mathrm{volume}_{{-1}}+1)), 5)',
'columns_required': ['close', 'volume'],
- 'universe': ['equity_us', 'equity_cn', 'equity_hk', 'equity_in'],
+ 'universe': ['equity_us', 'equity_cn', 'equity_hk', 'equity_in', 'equity_kr'],
'frequency': ['1d'],
'decay_horizon': 5,
'min_warmup_bars': 5,
diff --git a/agent/src/factors/zoo/qlib158/cord60.py b/agent/src/factors/zoo/qlib158/cord60.py
index 4f22f54e6..70f0f048d 100644
--- a/agent/src/factors/zoo/qlib158/cord60.py
+++ b/agent/src/factors/zoo/qlib158/cord60.py
@@ -17,7 +17,7 @@ __alpha_meta__ = {
'theme': ['volume', 'microstructure'],
'formula_latex': '\\\\mathrm{ts\\\\_corr}(\\\\mathrm{close}/\\\\mathrm{close}_{{-1}}, \\\\log((\\\\mathrm{volume}+1)/(\\\\mathrm{volume}_{{-1}}+1)), 60)',
'columns_required': ['close', 'volume'],
- 'universe': ['equity_us', 'equity_cn', 'equity_hk', 'equity_in'],
+ 'universe': ['equity_us', 'equity_cn', 'equity_hk', 'equity_in', 'equity_kr'],
'frequency': ['1d'],
'decay_horizon': 60,
'min_warmup_bars': 60,
diff --git a/agent/src/factors/zoo/qlib158/corr10.py b/agent/src/factors/zoo/qlib158/corr10.py
index c060f9719..4dcf2ee42 100644
--- a/agent/src/factors/zoo/qlib158/corr10.py
+++ b/agent/src/factors/zoo/qlib158/corr10.py
@@ -17,7 +17,7 @@ __alpha_meta__ = {
'theme': ['volume', 'microstructure'],
'formula_latex': '\\\\mathrm{ts\\\\_corr}(\\\\mathrm{close}, \\\\log(\\\\mathrm{volume}+1), 10)',
'columns_required': ['close', 'volume'],
- 'universe': ['equity_us', 'equity_cn', 'equity_hk', 'equity_in'],
+ 'universe': ['equity_us', 'equity_cn', 'equity_hk', 'equity_in', 'equity_kr'],
'frequency': ['1d'],
'decay_horizon': 10,
'min_warmup_bars': 10,
diff --git a/agent/src/factors/zoo/qlib158/corr20.py b/agent/src/factors/zoo/qlib158/corr20.py
index 7bb860469..cd5a22bad 100644
--- a/agent/src/factors/zoo/qlib158/corr20.py
+++ b/agent/src/factors/zoo/qlib158/corr20.py
@@ -17,7 +17,7 @@ __alpha_meta__ = {
'theme': ['volume', 'microstructure'],
'formula_latex': '\\\\mathrm{ts\\\\_corr}(\\\\mathrm{close}, \\\\log(\\\\mathrm{volume}+1), 20)',
'columns_required': ['close', 'volume'],
- 'universe': ['equity_us', 'equity_cn', 'equity_hk', 'equity_in'],
+ 'universe': ['equity_us', 'equity_cn', 'equity_hk', 'equity_in', 'equity_kr'],
'frequency': ['1d'],
'decay_horizon': 20,
'min_warmup_bars': 20,
diff --git a/agent/src/factors/zoo/qlib158/corr30.py b/agent/src/factors/zoo/qlib158/corr30.py
index 0557cb1f8..5d1b4e1d3 100644
--- a/agent/src/factors/zoo/qlib158/corr30.py
+++ b/agent/src/factors/zoo/qlib158/corr30.py
@@ -17,7 +17,7 @@ __alpha_meta__ = {
'theme': ['volume', 'microstructure'],
'formula_latex': '\\\\mathrm{ts\\\\_corr}(\\\\mathrm{close}, \\\\log(\\\\mathrm{volume}+1), 30)',
'columns_required': ['close', 'volume'],
- 'universe': ['equity_us', 'equity_cn', 'equity_hk', 'equity_in'],
+ 'universe': ['equity_us', 'equity_cn', 'equity_hk', 'equity_in', 'equity_kr'],
'frequency': ['1d'],
'decay_horizon': 30,
'min_warmup_bars': 30,
diff --git a/agent/src/factors/zoo/qlib158/corr5.py b/agent/src/factors/zoo/qlib158/corr5.py
index 68d98a8a9..17f3cf306 100644
--- a/agent/src/factors/zoo/qlib158/corr5.py
+++ b/agent/src/factors/zoo/qlib158/corr5.py
@@ -17,7 +17,7 @@ __alpha_meta__ = {
'theme': ['volume', 'microstructure'],
'formula_latex': '\\\\mathrm{ts\\\\_corr}(\\\\mathrm{close}, \\\\log(\\\\mathrm{volume}+1), 5)',
'columns_required': ['close', 'volume'],
- 'universe': ['equity_us', 'equity_cn', 'equity_hk', 'equity_in'],
+ 'universe': ['equity_us', 'equity_cn', 'equity_hk', 'equity_in', 'equity_kr'],
'frequency': ['1d'],
'decay_horizon': 5,
'min_warmup_bars': 5,
diff --git a/agent/src/factors/zoo/qlib158/corr60.py b/agent/src/factors/zoo/qlib158/corr60.py
index 57c545352..864ece623 100644
--- a/agent/src/factors/zoo/qlib158/corr60.py
+++ b/agent/src/factors/zoo/qlib158/corr60.py
@@ -17,7 +17,7 @@ __alpha_meta__ = {
'theme': ['volume', 'microstructure'],
'formula_latex': '\\\\mathrm{ts\\\\_corr}(\\\\mathrm{close}, \\\\log(\\\\mathrm{volume}+1), 60)',
'columns_required': ['close', 'volume'],
- 'universe': ['equity_us', 'equity_cn', 'equity_hk', 'equity_in'],
+ 'universe': ['equity_us', 'equity_cn', 'equity_hk', 'equity_in', 'equity_kr'],
'frequency': ['1d'],
'decay_horizon': 60,
'min_warmup_bars': 60,
diff --git a/agent/src/factors/zoo/qlib158/imax10.py b/agent/src/factors/zoo/qlib158/imax10.py
index 7cd689853..bb0890e7b 100644
--- a/agent/src/factors/zoo/qlib158/imax10.py
+++ b/agent/src/factors/zoo/qlib158/imax10.py
@@ -16,7 +16,7 @@ __alpha_meta__ = {
'theme': ['momentum'],
'formula_latex': '\\\\mathrm{ts\\\\_argmax}(\\\\mathrm{high}, 10) / 10',
'columns_required': ['high'],
- 'universe': ['equity_us', 'equity_cn', 'equity_hk', 'equity_in'],
+ 'universe': ['equity_us', 'equity_cn', 'equity_hk', 'equity_in', 'equity_kr'],
'frequency': ['1d'],
'decay_horizon': 10,
'min_warmup_bars': 10,
diff --git a/agent/src/factors/zoo/qlib158/imax20.py b/agent/src/factors/zoo/qlib158/imax20.py
index c8c59656b..2d4eb855d 100644
--- a/agent/src/factors/zoo/qlib158/imax20.py
+++ b/agent/src/factors/zoo/qlib158/imax20.py
@@ -16,7 +16,7 @@ __alpha_meta__ = {
'theme': ['momentum'],
'formula_latex': '\\\\mathrm{ts\\\\_argmax}(\\\\mathrm{high}, 20) / 20',
'columns_required': ['high'],
- 'universe': ['equity_us', 'equity_cn', 'equity_hk', 'equity_in'],
+ 'universe': ['equity_us', 'equity_cn', 'equity_hk', 'equity_in', 'equity_kr'],
'frequency': ['1d'],
'decay_horizon': 20,
'min_warmup_bars': 20,
diff --git a/agent/src/factors/zoo/qlib158/imax30.py b/agent/src/factors/zoo/qlib158/imax30.py
index fc59d038b..5bcbef4a4 100644
--- a/agent/src/factors/zoo/qlib158/imax30.py
+++ b/agent/src/factors/zoo/qlib158/imax30.py
@@ -16,7 +16,7 @@ __alpha_meta__ = {
'theme': ['momentum'],
'formula_latex': '\\\\mathrm{ts\\\\_argmax}(\\\\mathrm{high}, 30) / 30',
'columns_required': ['high'],
- 'universe': ['equity_us', 'equity_cn', 'equity_hk', 'equity_in'],
+ 'universe': ['equity_us', 'equity_cn', 'equity_hk', 'equity_in', 'equity_kr'],
'frequency': ['1d'],
'decay_horizon': 30,
'min_warmup_bars': 30,
diff --git a/agent/src/factors/zoo/qlib158/imax5.py b/agent/src/factors/zoo/qlib158/imax5.py
index e25406271..5b4b7e54f 100644
--- a/agent/src/factors/zoo/qlib158/imax5.py
+++ b/agent/src/factors/zoo/qlib158/imax5.py
@@ -16,7 +16,7 @@ __alpha_meta__ = {
'theme': ['momentum'],
'formula_latex': '\\\\mathrm{ts\\\\_argmax}(\\\\mathrm{high}, 5) / 5',
'columns_required': ['high'],
- 'universe': ['equity_us', 'equity_cn', 'equity_hk', 'equity_in'],
+ 'universe': ['equity_us', 'equity_cn', 'equity_hk', 'equity_in', 'equity_kr'],
'frequency': ['1d'],
'decay_horizon': 5,
'min_warmup_bars': 5,
diff --git a/agent/src/factors/zoo/qlib158/imax60.py b/agent/src/factors/zoo/qlib158/imax60.py
index e73dbbced..123afb089 100644
--- a/agent/src/factors/zoo/qlib158/imax60.py
+++ b/agent/src/factors/zoo/qlib158/imax60.py
@@ -16,7 +16,7 @@ __alpha_meta__ = {
'theme': ['momentum'],
'formula_latex': '\\\\mathrm{ts\\\\_argmax}(\\\\mathrm{high}, 60) / 60',
'columns_required': ['high'],
- 'universe': ['equity_us', 'equity_cn', 'equity_hk', 'equity_in'],
+ 'universe': ['equity_us', 'equity_cn', 'equity_hk', 'equity_in', 'equity_kr'],
'frequency': ['1d'],
'decay_horizon': 60,
'min_warmup_bars': 60,
diff --git a/agent/src/factors/zoo/qlib158/imin10.py b/agent/src/factors/zoo/qlib158/imin10.py
index 270f92052..5abbf3cdb 100644
--- a/agent/src/factors/zoo/qlib158/imin10.py
+++ b/agent/src/factors/zoo/qlib158/imin10.py
@@ -16,7 +16,7 @@ __alpha_meta__ = {
'theme': ['momentum'],
'formula_latex': '\\\\mathrm{ts\\\\_argmin}(\\\\mathrm{low}, 10) / 10',
'columns_required': ['low'],
- 'universe': ['equity_us', 'equity_cn', 'equity_hk', 'equity_in'],
+ 'universe': ['equity_us', 'equity_cn', 'equity_hk', 'equity_in', 'equity_kr'],
'frequency': ['1d'],
'decay_horizon': 10,
'min_warmup_bars': 10,
diff --git a/agent/src/factors/zoo/qlib158/imin20.py b/agent/src/factors/zoo/qlib158/imin20.py
index 0d0335578..0b5749ed4 100644
--- a/agent/src/factors/zoo/qlib158/imin20.py
+++ b/agent/src/factors/zoo/qlib158/imin20.py
@@ -16,7 +16,7 @@ __alpha_meta__ = {
'theme': ['momentum'],
'formula_latex': '\\\\mathrm{ts\\\\_argmin}(\\\\mathrm{low}, 20) / 20',
'columns_required': ['low'],
- 'universe': ['equity_us', 'equity_cn', 'equity_hk', 'equity_in'],
+ 'universe': ['equity_us', 'equity_cn', 'equity_hk', 'equity_in', 'equity_kr'],
'frequency': ['1d'],
'decay_horizon': 20,
'min_warmup_bars': 20,
diff --git a/agent/src/factors/zoo/qlib158/imin30.py b/agent/src/factors/zoo/qlib158/imin30.py
index 620ea5353..dfab9b25f 100644
--- a/agent/src/factors/zoo/qlib158/imin30.py
+++ b/agent/src/factors/zoo/qlib158/imin30.py
@@ -16,7 +16,7 @@ __alpha_meta__ = {
'theme': ['momentum'],
'formula_latex': '\\\\mathrm{ts\\\\_argmin}(\\\\mathrm{low}, 30) / 30',
'columns_required': ['low'],
- 'universe': ['equity_us', 'equity_cn', 'equity_hk', 'equity_in'],
+ 'universe': ['equity_us', 'equity_cn', 'equity_hk', 'equity_in', 'equity_kr'],
'frequency': ['1d'],
'decay_horizon': 30,
'min_warmup_bars': 30,
diff --git a/agent/src/factors/zoo/qlib158/imin5.py b/agent/src/factors/zoo/qlib158/imin5.py
index b6f09649f..0961ee9aa 100644
--- a/agent/src/factors/zoo/qlib158/imin5.py
+++ b/agent/src/factors/zoo/qlib158/imin5.py
@@ -16,7 +16,7 @@ __alpha_meta__ = {
'theme': ['momentum'],
'formula_latex': '\\\\mathrm{ts\\\\_argmin}(\\\\mathrm{low}, 5) / 5',
'columns_required': ['low'],
- 'universe': ['equity_us', 'equity_cn', 'equity_hk', 'equity_in'],
+ 'universe': ['equity_us', 'equity_cn', 'equity_hk', 'equity_in', 'equity_kr'],
'frequency': ['1d'],
'decay_horizon': 5,
'min_warmup_bars': 5,
diff --git a/agent/src/factors/zoo/qlib158/imin60.py b/agent/src/factors/zoo/qlib158/imin60.py
index ba2184715..ea8fce64d 100644
--- a/agent/src/factors/zoo/qlib158/imin60.py
+++ b/agent/src/factors/zoo/qlib158/imin60.py
@@ -16,7 +16,7 @@ __alpha_meta__ = {
'theme': ['momentum'],
'formula_latex': '\\\\mathrm{ts\\\\_argmin}(\\\\mathrm{low}, 60) / 60',
'columns_required': ['low'],
- 'universe': ['equity_us', 'equity_cn', 'equity_hk', 'equity_in'],
+ 'universe': ['equity_us', 'equity_cn', 'equity_hk', 'equity_in', 'equity_kr'],
'frequency': ['1d'],
'decay_horizon': 60,
'min_warmup_bars': 60,
diff --git a/agent/src/factors/zoo/qlib158/imxd10.py b/agent/src/factors/zoo/qlib158/imxd10.py
index 980a309e3..51c6282c8 100644
--- a/agent/src/factors/zoo/qlib158/imxd10.py
+++ b/agent/src/factors/zoo/qlib158/imxd10.py
@@ -16,7 +16,7 @@ __alpha_meta__ = {
'theme': ['momentum'],
'formula_latex': '(\\\\mathrm{ts\\\\_argmax}(\\\\mathrm{high}, 10) - \\\\mathrm{ts\\\\_argmin}(\\\\mathrm{low}, 10)) / 10',
'columns_required': ['high', 'low'],
- 'universe': ['equity_us', 'equity_cn', 'equity_hk', 'equity_in'],
+ 'universe': ['equity_us', 'equity_cn', 'equity_hk', 'equity_in', 'equity_kr'],
'frequency': ['1d'],
'decay_horizon': 10,
'min_warmup_bars': 10,
diff --git a/agent/src/factors/zoo/qlib158/imxd20.py b/agent/src/factors/zoo/qlib158/imxd20.py
index 0d37dfe77..30a7d646a 100644
--- a/agent/src/factors/zoo/qlib158/imxd20.py
+++ b/agent/src/factors/zoo/qlib158/imxd20.py
@@ -16,7 +16,7 @@ __alpha_meta__ = {
'theme': ['momentum'],
'formula_latex': '(\\\\mathrm{ts\\\\_argmax}(\\\\mathrm{high}, 20) - \\\\mathrm{ts\\\\_argmin}(\\\\mathrm{low}, 20)) / 20',
'columns_required': ['high', 'low'],
- 'universe': ['equity_us', 'equity_cn', 'equity_hk', 'equity_in'],
+ 'universe': ['equity_us', 'equity_cn', 'equity_hk', 'equity_in', 'equity_kr'],
'frequency': ['1d'],
'decay_horizon': 20,
'min_warmup_bars': 20,
diff --git a/agent/src/factors/zoo/qlib158/imxd30.py b/agent/src/factors/zoo/qlib158/imxd30.py
index b1817def6..bf2190ebd 100644
--- a/agent/src/factors/zoo/qlib158/imxd30.py
+++ b/agent/src/factors/zoo/qlib158/imxd30.py
@@ -16,7 +16,7 @@ __alpha_meta__ = {
'theme': ['momentum'],
'formula_latex': '(\\\\mathrm{ts\\\\_argmax}(\\\\mathrm{high}, 30) - \\\\mathrm{ts\\\\_argmin}(\\\\mathrm{low}, 30)) / 30',
'columns_required': ['high', 'low'],
- 'universe': ['equity_us', 'equity_cn', 'equity_hk', 'equity_in'],
+ 'universe': ['equity_us', 'equity_cn', 'equity_hk', 'equity_in', 'equity_kr'],
'frequency': ['1d'],
'decay_horizon': 30,
'min_warmup_bars': 30,
diff --git a/agent/src/factors/zoo/qlib158/imxd5.py b/agent/src/factors/zoo/qlib158/imxd5.py
index 8fd896ca0..4dd6c004c 100644
--- a/agent/src/factors/zoo/qlib158/imxd5.py
+++ b/agent/src/factors/zoo/qlib158/imxd5.py
@@ -16,7 +16,7 @@ __alpha_meta__ = {
'theme': ['momentum'],
'formula_latex': '(\\\\mathrm{ts\\\\_argmax}(\\\\mathrm{high}, 5) - \\\\mathrm{ts\\\\_argmin}(\\\\mathrm{low}, 5)) / 5',
'columns_required': ['high', 'low'],
- 'universe': ['equity_us', 'equity_cn', 'equity_hk', 'equity_in'],
+ 'universe': ['equity_us', 'equity_cn', 'equity_hk', 'equity_in', 'equity_kr'],
'frequency': ['1d'],
'decay_horizon': 5,
'min_warmup_bars': 5,
diff --git a/agent/src/factors/zoo/qlib158/imxd60.py b/agent/src/factors/zoo/qlib158/imxd60.py
index 2e2955ca4..b5577c894 100644
--- a/agent/src/factors/zoo/qlib158/imxd60.py
+++ b/agent/src/factors/zoo/qlib158/imxd60.py
@@ -16,7 +16,7 @@ __alpha_meta__ = {
'theme': ['momentum'],
'formula_latex': '(\\\\mathrm{ts\\\\_argmax}(\\\\mathrm{high}, 60) - \\\\mathrm{ts\\\\_argmin}(\\\\mathrm{low}, 60)) / 60',
'columns_required': ['high', 'low'],
- 'universe': ['equity_us', 'equity_cn', 'equity_hk', 'equity_in'],
+ 'universe': ['equity_us', 'equity_cn', 'equity_hk', 'equity_in', 'equity_kr'],
'frequency': ['1d'],
'decay_horizon': 60,
'min_warmup_bars': 60,
diff --git a/agent/src/factors/zoo/qlib158/klen.py b/agent/src/factors/zoo/qlib158/klen.py
index 29ede4c32..caec47127 100644
--- a/agent/src/factors/zoo/qlib158/klen.py
+++ b/agent/src/factors/zoo/qlib158/klen.py
@@ -16,7 +16,7 @@ __alpha_meta__ = {
'theme': ['microstructure'],
'formula_latex': '(\\\\mathrm{high} - \\\\mathrm{low}) / \\\\mathrm{open}',
'columns_required': ['open', 'high', 'low'],
- 'universe': ['equity_us', 'equity_cn', 'equity_hk', 'equity_in'],
+ 'universe': ['equity_us', 'equity_cn', 'equity_hk', 'equity_in', 'equity_kr'],
'frequency': ['1d'],
'decay_horizon': 1,
'min_warmup_bars': 1,
diff --git a/agent/src/factors/zoo/qlib158/klow.py b/agent/src/factors/zoo/qlib158/klow.py
index a91e0c6cc..5259e766a 100644
--- a/agent/src/factors/zoo/qlib158/klow.py
+++ b/agent/src/factors/zoo/qlib158/klow.py
@@ -16,7 +16,7 @@ __alpha_meta__ = {
'theme': ['microstructure'],
'formula_latex': '(\\\\min(\\\\mathrm{open}, \\\\mathrm{close}) - \\\\mathrm{low}) / \\\\mathrm{open}',
'columns_required': ['open', 'low', 'close'],
- 'universe': ['equity_us', 'equity_cn', 'equity_hk', 'equity_in'],
+ 'universe': ['equity_us', 'equity_cn', 'equity_hk', 'equity_in', 'equity_kr'],
'frequency': ['1d'],
'decay_horizon': 1,
'min_warmup_bars': 1,
diff --git a/agent/src/factors/zoo/qlib158/klow2.py b/agent/src/factors/zoo/qlib158/klow2.py
index abcf061aa..6d7d8f62a 100644
--- a/agent/src/factors/zoo/qlib158/klow2.py
+++ b/agent/src/factors/zoo/qlib158/klow2.py
@@ -16,7 +16,7 @@ __alpha_meta__ = {
'theme': ['microstructure'],
'formula_latex': '(\\\\min(\\\\mathrm{open}, \\\\mathrm{close}) - \\\\mathrm{low}) / (\\\\mathrm{high} - \\\\mathrm{low})',
'columns_required': ['open', 'high', 'low', 'close'],
- 'universe': ['equity_us', 'equity_cn', 'equity_hk', 'equity_in'],
+ 'universe': ['equity_us', 'equity_cn', 'equity_hk', 'equity_in', 'equity_kr'],
'frequency': ['1d'],
'decay_horizon': 1,
'min_warmup_bars': 1,
diff --git a/agent/src/factors/zoo/qlib158/kmid.py b/agent/src/factors/zoo/qlib158/kmid.py
index a73edb08b..5614fe052 100644
--- a/agent/src/factors/zoo/qlib158/kmid.py
+++ b/agent/src/factors/zoo/qlib158/kmid.py
@@ -16,7 +16,7 @@ __alpha_meta__ = {
'theme': ['microstructure'],
'formula_latex': '(\\\\mathrm{close} - \\\\mathrm{open}) / \\\\mathrm{open}',
'columns_required': ['open', 'close'],
- 'universe': ['equity_us', 'equity_cn', 'equity_hk', 'equity_in'],
+ 'universe': ['equity_us', 'equity_cn', 'equity_hk', 'equity_in', 'equity_kr'],
'frequency': ['1d'],
'decay_horizon': 1,
'min_warmup_bars': 1,
diff --git a/agent/src/factors/zoo/qlib158/kmid2.py b/agent/src/factors/zoo/qlib158/kmid2.py
index f34239243..9f2a5b5b4 100644
--- a/agent/src/factors/zoo/qlib158/kmid2.py
+++ b/agent/src/factors/zoo/qlib158/kmid2.py
@@ -16,7 +16,7 @@ __alpha_meta__ = {
'theme': ['microstructure'],
'formula_latex': '(\\\\mathrm{close} - \\\\mathrm{open}) / (\\\\mathrm{high} - \\\\mathrm{low})',
'columns_required': ['open', 'high', 'low', 'close'],
- 'universe': ['equity_us', 'equity_cn', 'equity_hk', 'equity_in'],
+ 'universe': ['equity_us', 'equity_cn', 'equity_hk', 'equity_in', 'equity_kr'],
'frequency': ['1d'],
'decay_horizon': 1,
'min_warmup_bars': 1,
diff --git a/agent/src/factors/zoo/qlib158/ksft.py b/agent/src/factors/zoo/qlib158/ksft.py
index 5fee3cb82..b229b406d 100644
--- a/agent/src/factors/zoo/qlib158/ksft.py
+++ b/agent/src/factors/zoo/qlib158/ksft.py
@@ -16,7 +16,7 @@ __alpha_meta__ = {
'theme': ['microstructure'],
'formula_latex': '(2\\\\,\\\\mathrm{close} - \\\\mathrm{high} - \\\\mathrm{low}) / \\\\mathrm{open}',
'columns_required': ['open', 'high', 'low', 'close'],
- 'universe': ['equity_us', 'equity_cn', 'equity_hk', 'equity_in'],
+ 'universe': ['equity_us', 'equity_cn', 'equity_hk', 'equity_in', 'equity_kr'],
'frequency': ['1d'],
'decay_horizon': 1,
'min_warmup_bars': 1,
diff --git a/agent/src/factors/zoo/qlib158/ksft2.py b/agent/src/factors/zoo/qlib158/ksft2.py
index 9ae1d4ba0..d27bf4219 100644
--- a/agent/src/factors/zoo/qlib158/ksft2.py
+++ b/agent/src/factors/zoo/qlib158/ksft2.py
@@ -16,7 +16,7 @@ __alpha_meta__ = {
'theme': ['microstructure'],
'formula_latex': '(2\\\\,\\\\mathrm{close} - \\\\mathrm{high} - \\\\mathrm{low}) / (\\\\mathrm{high} - \\\\mathrm{low})',
'columns_required': ['open', 'high', 'low', 'close'],
- 'universe': ['equity_us', 'equity_cn', 'equity_hk', 'equity_in'],
+ 'universe': ['equity_us', 'equity_cn', 'equity_hk', 'equity_in', 'equity_kr'],
'frequency': ['1d'],
'decay_horizon': 1,
'min_warmup_bars': 1,
diff --git a/agent/src/factors/zoo/qlib158/kup.py b/agent/src/factors/zoo/qlib158/kup.py
index 642f402fb..1da050706 100644
--- a/agent/src/factors/zoo/qlib158/kup.py
+++ b/agent/src/factors/zoo/qlib158/kup.py
@@ -16,7 +16,7 @@ __alpha_meta__ = {
'theme': ['microstructure'],
'formula_latex': '(\\\\mathrm{high} - \\\\max(\\\\mathrm{open}, \\\\mathrm{close})) / \\\\mathrm{open}',
'columns_required': ['open', 'high', 'close'],
- 'universe': ['equity_us', 'equity_cn', 'equity_hk', 'equity_in'],
+ 'universe': ['equity_us', 'equity_cn', 'equity_hk', 'equity_in', 'equity_kr'],
'frequency': ['1d'],
'decay_horizon': 1,
'min_warmup_bars': 1,
diff --git a/agent/src/factors/zoo/qlib158/kup2.py b/agent/src/factors/zoo/qlib158/kup2.py
index ad5aa0867..96134a9e5 100644
--- a/agent/src/factors/zoo/qlib158/kup2.py
+++ b/agent/src/factors/zoo/qlib158/kup2.py
@@ -16,7 +16,7 @@ __alpha_meta__ = {
'theme': ['microstructure'],
'formula_latex': '(\\\\mathrm{high} - \\\\max(\\\\mathrm{open}, \\\\mathrm{close})) / (\\\\mathrm{high} - \\\\mathrm{low})',
'columns_required': ['open', 'high', 'low', 'close'],
- 'universe': ['equity_us', 'equity_cn', 'equity_hk', 'equity_in'],
+ 'universe': ['equity_us', 'equity_cn', 'equity_hk', 'equity_in', 'equity_kr'],
'frequency': ['1d'],
'decay_horizon': 1,
'min_warmup_bars': 1,
diff --git a/agent/src/factors/zoo/qlib158/ma10.py b/agent/src/factors/zoo/qlib158/ma10.py
index 74e43dd2b..33b7085f2 100644
--- a/agent/src/factors/zoo/qlib158/ma10.py
+++ b/agent/src/factors/zoo/qlib158/ma10.py
@@ -16,7 +16,7 @@ __alpha_meta__ = {
'theme': ['momentum'],
'formula_latex': '\\\\mathrm{ts\\\\_mean}(\\\\mathrm{close}, 10) / \\\\mathrm{close}',
'columns_required': ['close'],
- 'universe': ['equity_us', 'equity_cn', 'equity_hk', 'equity_in'],
+ 'universe': ['equity_us', 'equity_cn', 'equity_hk', 'equity_in', 'equity_kr'],
'frequency': ['1d'],
'decay_horizon': 10,
'min_warmup_bars': 10,
diff --git a/agent/src/factors/zoo/qlib158/ma20.py b/agent/src/factors/zoo/qlib158/ma20.py
index fb206e035..ef4123968 100644
--- a/agent/src/factors/zoo/qlib158/ma20.py
+++ b/agent/src/factors/zoo/qlib158/ma20.py
@@ -16,7 +16,7 @@ __alpha_meta__ = {
'theme': ['momentum'],
'formula_latex': '\\\\mathrm{ts\\\\_mean}(\\\\mathrm{close}, 20) / \\\\mathrm{close}',
'columns_required': ['close'],
- 'universe': ['equity_us', 'equity_cn', 'equity_hk', 'equity_in'],
+ 'universe': ['equity_us', 'equity_cn', 'equity_hk', 'equity_in', 'equity_kr'],
'frequency': ['1d'],
'decay_horizon': 20,
'min_warmup_bars': 20,
diff --git a/agent/src/factors/zoo/qlib158/ma30.py b/agent/src/factors/zoo/qlib158/ma30.py
index 30e52cbde..c244de9e0 100644
--- a/agent/src/factors/zoo/qlib158/ma30.py
+++ b/agent/src/factors/zoo/qlib158/ma30.py
@@ -16,7 +16,7 @@ __alpha_meta__ = {
'theme': ['momentum'],
'formula_latex': '\\\\mathrm{ts\\\\_mean}(\\\\mathrm{close}, 30) / \\\\mathrm{close}',
'columns_required': ['close'],
- 'universe': ['equity_us', 'equity_cn', 'equity_hk', 'equity_in'],
+ 'universe': ['equity_us', 'equity_cn', 'equity_hk', 'equity_in', 'equity_kr'],
'frequency': ['1d'],
'decay_horizon': 30,
'min_warmup_bars': 30,
diff --git a/agent/src/factors/zoo/qlib158/ma5.py b/agent/src/factors/zoo/qlib158/ma5.py
index 9f1bb20b8..cd6c03479 100644
--- a/agent/src/factors/zoo/qlib158/ma5.py
+++ b/agent/src/factors/zoo/qlib158/ma5.py
@@ -16,7 +16,7 @@ __alpha_meta__ = {
'theme': ['momentum'],
'formula_latex': '\\\\mathrm{ts\\\\_mean}(\\\\mathrm{close}, 5) / \\\\mathrm{close}',
'columns_required': ['close'],
- 'universe': ['equity_us', 'equity_cn', 'equity_hk', 'equity_in'],
+ 'universe': ['equity_us', 'equity_cn', 'equity_hk', 'equity_in', 'equity_kr'],
'frequency': ['1d'],
'decay_horizon': 5,
'min_warmup_bars': 5,
diff --git a/agent/src/factors/zoo/qlib158/ma60.py b/agent/src/factors/zoo/qlib158/ma60.py
index 7786249dc..5f03cd596 100644
--- a/agent/src/factors/zoo/qlib158/ma60.py
+++ b/agent/src/factors/zoo/qlib158/ma60.py
@@ -16,7 +16,7 @@ __alpha_meta__ = {
'theme': ['momentum'],
'formula_latex': '\\\\mathrm{ts\\\\_mean}(\\\\mathrm{close}, 60) / \\\\mathrm{close}',
'columns_required': ['close'],
- 'universe': ['equity_us', 'equity_cn', 'equity_hk', 'equity_in'],
+ 'universe': ['equity_us', 'equity_cn', 'equity_hk', 'equity_in', 'equity_kr'],
'frequency': ['1d'],
'decay_horizon': 60,
'min_warmup_bars': 60,
diff --git a/agent/src/factors/zoo/qlib158/max10.py b/agent/src/factors/zoo/qlib158/max10.py
index ff481f079..6a96e98cc 100644
--- a/agent/src/factors/zoo/qlib158/max10.py
+++ b/agent/src/factors/zoo/qlib158/max10.py
@@ -16,7 +16,7 @@ __alpha_meta__ = {
'theme': ['momentum'],
'formula_latex': '\\\\mathrm{ts\\\\_max}(\\\\mathrm{high}, 10) / \\\\mathrm{close}',
'columns_required': ['high', 'close'],
- 'universe': ['equity_us', 'equity_cn', 'equity_hk', 'equity_in'],
+ 'universe': ['equity_us', 'equity_cn', 'equity_hk', 'equity_in', 'equity_kr'],
'frequency': ['1d'],
'decay_horizon': 10,
'min_warmup_bars': 10,
diff --git a/agent/src/factors/zoo/qlib158/max20.py b/agent/src/factors/zoo/qlib158/max20.py
index 0cb532496..71a577337 100644
--- a/agent/src/factors/zoo/qlib158/max20.py
+++ b/agent/src/factors/zoo/qlib158/max20.py
@@ -16,7 +16,7 @@ __alpha_meta__ = {
'theme': ['momentum'],
'formula_latex': '\\\\mathrm{ts\\\\_max}(\\\\mathrm{high}, 20) / \\\\mathrm{close}',
'columns_required': ['high', 'close'],
- 'universe': ['equity_us', 'equity_cn', 'equity_hk', 'equity_in'],
+ 'universe': ['equity_us', 'equity_cn', 'equity_hk', 'equity_in', 'equity_kr'],
'frequency': ['1d'],
'decay_horizon': 20,
'min_warmup_bars': 20,
diff --git a/agent/src/factors/zoo/qlib158/max30.py b/agent/src/factors/zoo/qlib158/max30.py
index 2708dc242..4e2d4b879 100644
--- a/agent/src/factors/zoo/qlib158/max30.py
+++ b/agent/src/factors/zoo/qlib158/max30.py
@@ -16,7 +16,7 @@ __alpha_meta__ = {
'theme': ['momentum'],
'formula_latex': '\\\\mathrm{ts\\\\_max}(\\\\mathrm{high}, 30) / \\\\mathrm{close}',
'columns_required': ['high', 'close'],
- 'universe': ['equity_us', 'equity_cn', 'equity_hk', 'equity_in'],
+ 'universe': ['equity_us', 'equity_cn', 'equity_hk', 'equity_in', 'equity_kr'],
'frequency': ['1d'],
'decay_horizon': 30,
'min_warmup_bars': 30,
diff --git a/agent/src/factors/zoo/qlib158/max5.py b/agent/src/factors/zoo/qlib158/max5.py
index d4f0b6517..c50a24bca 100644
--- a/agent/src/factors/zoo/qlib158/max5.py
+++ b/agent/src/factors/zoo/qlib158/max5.py
@@ -16,7 +16,7 @@ __alpha_meta__ = {
'theme': ['momentum'],
'formula_latex': '\\\\mathrm{ts\\\\_max}(\\\\mathrm{high}, 5) / \\\\mathrm{close}',
'columns_required': ['high', 'close'],
- 'universe': ['equity_us', 'equity_cn', 'equity_hk', 'equity_in'],
+ 'universe': ['equity_us', 'equity_cn', 'equity_hk', 'equity_in', 'equity_kr'],
'frequency': ['1d'],
'decay_horizon': 5,
'min_warmup_bars': 5,
diff --git a/agent/src/factors/zoo/qlib158/max60.py b/agent/src/factors/zoo/qlib158/max60.py
index b23b4ac29..4de81a855 100644
--- a/agent/src/factors/zoo/qlib158/max60.py
+++ b/agent/src/factors/zoo/qlib158/max60.py
@@ -16,7 +16,7 @@ __alpha_meta__ = {
'theme': ['momentum'],
'formula_latex': '\\\\mathrm{ts\\\\_max}(\\\\mathrm{high}, 60) / \\\\mathrm{close}',
'columns_required': ['high', 'close'],
- 'universe': ['equity_us', 'equity_cn', 'equity_hk', 'equity_in'],
+ 'universe': ['equity_us', 'equity_cn', 'equity_hk', 'equity_in', 'equity_kr'],
'frequency': ['1d'],
'decay_horizon': 60,
'min_warmup_bars': 60,
diff --git a/agent/src/factors/zoo/qlib158/min10.py b/agent/src/factors/zoo/qlib158/min10.py
index 8925af0fa..92ace92cd 100644
--- a/agent/src/factors/zoo/qlib158/min10.py
+++ b/agent/src/factors/zoo/qlib158/min10.py
@@ -16,7 +16,7 @@ __alpha_meta__ = {
'theme': ['momentum'],
'formula_latex': '\\\\mathrm{ts\\\\_min}(\\\\mathrm{low}, 10) / \\\\mathrm{close}',
'columns_required': ['low', 'close'],
- 'universe': ['equity_us', 'equity_cn', 'equity_hk', 'equity_in'],
+ 'universe': ['equity_us', 'equity_cn', 'equity_hk', 'equity_in', 'equity_kr'],
'frequency': ['1d'],
'decay_horizon': 10,
'min_warmup_bars': 10,
diff --git a/agent/src/factors/zoo/qlib158/min20.py b/agent/src/factors/zoo/qlib158/min20.py
index 3c4e6eb65..6c52ec6a2 100644
--- a/agent/src/factors/zoo/qlib158/min20.py
+++ b/agent/src/factors/zoo/qlib158/min20.py
@@ -16,7 +16,7 @@ __alpha_meta__ = {
'theme': ['momentum'],
'formula_latex': '\\\\mathrm{ts\\\\_min}(\\\\mathrm{low}, 20) / \\\\mathrm{close}',
'columns_required': ['low', 'close'],
- 'universe': ['equity_us', 'equity_cn', 'equity_hk', 'equity_in'],
+ 'universe': ['equity_us', 'equity_cn', 'equity_hk', 'equity_in', 'equity_kr'],
'frequency': ['1d'],
'decay_horizon': 20,
'min_warmup_bars': 20,
diff --git a/agent/src/factors/zoo/qlib158/min30.py b/agent/src/factors/zoo/qlib158/min30.py
index 43511eb61..2af341902 100644
--- a/agent/src/factors/zoo/qlib158/min30.py
+++ b/agent/src/factors/zoo/qlib158/min30.py
@@ -16,7 +16,7 @@ __alpha_meta__ = {
'theme': ['momentum'],
'formula_latex': '\\\\mathrm{ts\\\\_min}(\\\\mathrm{low}, 30) / \\\\mathrm{close}',
'columns_required': ['low', 'close'],
- 'universe': ['equity_us', 'equity_cn', 'equity_hk', 'equity_in'],
+ 'universe': ['equity_us', 'equity_cn', 'equity_hk', 'equity_in', 'equity_kr'],
'frequency': ['1d'],
'decay_horizon': 30,
'min_warmup_bars': 30,
diff --git a/agent/src/factors/zoo/qlib158/min5.py b/agent/src/factors/zoo/qlib158/min5.py
index 39d02d5d0..83a622aea 100644
--- a/agent/src/factors/zoo/qlib158/min5.py
+++ b/agent/src/factors/zoo/qlib158/min5.py
@@ -16,7 +16,7 @@ __alpha_meta__ = {
'theme': ['momentum'],
'formula_latex': '\\\\mathrm{ts\\\\_min}(\\\\mathrm{low}, 5) / \\\\mathrm{close}',
'columns_required': ['low', 'close'],
- 'universe': ['equity_us', 'equity_cn', 'equity_hk', 'equity_in'],
+ 'universe': ['equity_us', 'equity_cn', 'equity_hk', 'equity_in', 'equity_kr'],
'frequency': ['1d'],
'decay_horizon': 5,
'min_warmup_bars': 5,
diff --git a/agent/src/factors/zoo/qlib158/min60.py b/agent/src/factors/zoo/qlib158/min60.py
index 578184a63..3f8fab99c 100644
--- a/agent/src/factors/zoo/qlib158/min60.py
+++ b/agent/src/factors/zoo/qlib158/min60.py
@@ -16,7 +16,7 @@ __alpha_meta__ = {
'theme': ['momentum'],
'formula_latex': '\\\\mathrm{ts\\\\_min}(\\\\mathrm{low}, 60) / \\\\mathrm{close}',
'columns_required': ['low', 'close'],
- 'universe': ['equity_us', 'equity_cn', 'equity_hk', 'equity_in'],
+ 'universe': ['equity_us', 'equity_cn', 'equity_hk', 'equity_in', 'equity_kr'],
'frequency': ['1d'],
'decay_horizon': 60,
'min_warmup_bars': 60,
diff --git a/agent/src/factors/zoo/qlib158/qtld10.py b/agent/src/factors/zoo/qlib158/qtld10.py
index a096374a2..39a0d2f97 100644
--- a/agent/src/factors/zoo/qlib158/qtld10.py
+++ b/agent/src/factors/zoo/qlib158/qtld10.py
@@ -16,7 +16,7 @@ __alpha_meta__ = {
'theme': ['momentum'],
'formula_latex': '\\\\mathrm{quantile}_{{0.2}}(\\\\mathrm{close}, 10) / \\\\mathrm{close}',
'columns_required': ['close'],
- 'universe': ['equity_us', 'equity_cn', 'equity_hk', 'equity_in'],
+ 'universe': ['equity_us', 'equity_cn', 'equity_hk', 'equity_in', 'equity_kr'],
'frequency': ['1d'],
'decay_horizon': 10,
'min_warmup_bars': 10,
diff --git a/agent/src/factors/zoo/qlib158/qtld20.py b/agent/src/factors/zoo/qlib158/qtld20.py
index c6a1b8fab..88dc7bee5 100644
--- a/agent/src/factors/zoo/qlib158/qtld20.py
+++ b/agent/src/factors/zoo/qlib158/qtld20.py
@@ -16,7 +16,7 @@ __alpha_meta__ = {
'theme': ['momentum'],
'formula_latex': '\\\\mathrm{quantile}_{{0.2}}(\\\\mathrm{close}, 20) / \\\\mathrm{close}',
'columns_required': ['close'],
- 'universe': ['equity_us', 'equity_cn', 'equity_hk', 'equity_in'],
+ 'universe': ['equity_us', 'equity_cn', 'equity_hk', 'equity_in', 'equity_kr'],
'frequency': ['1d'],
'decay_horizon': 20,
'min_warmup_bars': 20,
diff --git a/agent/src/factors/zoo/qlib158/qtld30.py b/agent/src/factors/zoo/qlib158/qtld30.py
index 8a95d2c0e..8cecd27af 100644
--- a/agent/src/factors/zoo/qlib158/qtld30.py
+++ b/agent/src/factors/zoo/qlib158/qtld30.py
@@ -16,7 +16,7 @@ __alpha_meta__ = {
'theme': ['momentum'],
'formula_latex': '\\\\mathrm{quantile}_{{0.2}}(\\\\mathrm{close}, 30) / \\\\mathrm{close}',
'columns_required': ['close'],
- 'universe': ['equity_us', 'equity_cn', 'equity_hk', 'equity_in'],
+ 'universe': ['equity_us', 'equity_cn', 'equity_hk', 'equity_in', 'equity_kr'],
'frequency': ['1d'],
'decay_horizon': 30,
'min_warmup_bars': 30,
diff --git a/agent/src/factors/zoo/qlib158/qtld5.py b/agent/src/factors/zoo/qlib158/qtld5.py
index c01978af2..0aea7f0b8 100644
--- a/agent/src/factors/zoo/qlib158/qtld5.py
+++ b/agent/src/factors/zoo/qlib158/qtld5.py
@@ -16,7 +16,7 @@ __alpha_meta__ = {
'theme': ['momentum'],
'formula_latex': '\\\\mathrm{quantile}_{{0.2}}(\\\\mathrm{close}, 5) / \\\\mathrm{close}',
'columns_required': ['close'],
- 'universe': ['equity_us', 'equity_cn', 'equity_hk', 'equity_in'],
+ 'universe': ['equity_us', 'equity_cn', 'equity_hk', 'equity_in', 'equity_kr'],
'frequency': ['1d'],
'decay_horizon': 5,
'min_warmup_bars': 5,
diff --git a/agent/src/factors/zoo/qlib158/qtld60.py b/agent/src/factors/zoo/qlib158/qtld60.py
index 8b8d5195a..1242fc579 100644
--- a/agent/src/factors/zoo/qlib158/qtld60.py
+++ b/agent/src/factors/zoo/qlib158/qtld60.py
@@ -16,7 +16,7 @@ __alpha_meta__ = {
'theme': ['momentum'],
'formula_latex': '\\\\mathrm{quantile}_{{0.2}}(\\\\mathrm{close}, 60) / \\\\mathrm{close}',
'columns_required': ['close'],
- 'universe': ['equity_us', 'equity_cn', 'equity_hk', 'equity_in'],
+ 'universe': ['equity_us', 'equity_cn', 'equity_hk', 'equity_in', 'equity_kr'],
'frequency': ['1d'],
'decay_horizon': 60,
'min_warmup_bars': 60,
diff --git a/agent/src/factors/zoo/qlib158/qtlu10.py b/agent/src/factors/zoo/qlib158/qtlu10.py
index 22cc4b808..f9a121a88 100644
--- a/agent/src/factors/zoo/qlib158/qtlu10.py
+++ b/agent/src/factors/zoo/qlib158/qtlu10.py
@@ -16,7 +16,7 @@ __alpha_meta__ = {
'theme': ['momentum'],
'formula_latex': '\\\\mathrm{quantile}_{{0.8}}(\\\\mathrm{close}, 10) / \\\\mathrm{close}',
'columns_required': ['close'],
- 'universe': ['equity_us', 'equity_cn', 'equity_hk', 'equity_in'],
+ 'universe': ['equity_us', 'equity_cn', 'equity_hk', 'equity_in', 'equity_kr'],
'frequency': ['1d'],
'decay_horizon': 10,
'min_warmup_bars': 10,
diff --git a/agent/src/factors/zoo/qlib158/qtlu20.py b/agent/src/factors/zoo/qlib158/qtlu20.py
index 05e33bc4b..bd9cc564d 100644
--- a/agent/src/factors/zoo/qlib158/qtlu20.py
+++ b/agent/src/factors/zoo/qlib158/qtlu20.py
@@ -16,7 +16,7 @@ __alpha_meta__ = {
'theme': ['momentum'],
'formula_latex': '\\\\mathrm{quantile}_{{0.8}}(\\\\mathrm{close}, 20) / \\\\mathrm{close}',
'columns_required': ['close'],
- 'universe': ['equity_us', 'equity_cn', 'equity_hk', 'equity_in'],
+ 'universe': ['equity_us', 'equity_cn', 'equity_hk', 'equity_in', 'equity_kr'],
'frequency': ['1d'],
'decay_horizon': 20,
'min_warmup_bars': 20,
diff --git a/agent/src/factors/zoo/qlib158/qtlu30.py b/agent/src/factors/zoo/qlib158/qtlu30.py
index bab44ce86..ae5e5dc97 100644
--- a/agent/src/factors/zoo/qlib158/qtlu30.py
+++ b/agent/src/factors/zoo/qlib158/qtlu30.py
@@ -16,7 +16,7 @@ __alpha_meta__ = {
'theme': ['momentum'],
'formula_latex': '\\\\mathrm{quantile}_{{0.8}}(\\\\mathrm{close}, 30) / \\\\mathrm{close}',
'columns_required': ['close'],
- 'universe': ['equity_us', 'equity_cn', 'equity_hk', 'equity_in'],
+ 'universe': ['equity_us', 'equity_cn', 'equity_hk', 'equity_in', 'equity_kr'],
'frequency': ['1d'],
'decay_horizon': 30,
'min_warmup_bars': 30,
diff --git a/agent/src/factors/zoo/qlib158/qtlu5.py b/agent/src/factors/zoo/qlib158/qtlu5.py
index 6876d7f20..41755c204 100644
--- a/agent/src/factors/zoo/qlib158/qtlu5.py
+++ b/agent/src/factors/zoo/qlib158/qtlu5.py
@@ -16,7 +16,7 @@ __alpha_meta__ = {
'theme': ['momentum'],
'formula_latex': '\\\\mathrm{quantile}_{{0.8}}(\\\\mathrm{close}, 5) / \\\\mathrm{close}',
'columns_required': ['close'],
- 'universe': ['equity_us', 'equity_cn', 'equity_hk', 'equity_in'],
+ 'universe': ['equity_us', 'equity_cn', 'equity_hk', 'equity_in', 'equity_kr'],
'frequency': ['1d'],
'decay_horizon': 5,
'min_warmup_bars': 5,
diff --git a/agent/src/factors/zoo/qlib158/qtlu60.py b/agent/src/factors/zoo/qlib158/qtlu60.py
index c4672dc69..0b095eab7 100644
--- a/agent/src/factors/zoo/qlib158/qtlu60.py
+++ b/agent/src/factors/zoo/qlib158/qtlu60.py
@@ -16,7 +16,7 @@ __alpha_meta__ = {
'theme': ['momentum'],
'formula_latex': '\\\\mathrm{quantile}_{{0.8}}(\\\\mathrm{close}, 60) / \\\\mathrm{close}',
'columns_required': ['close'],
- 'universe': ['equity_us', 'equity_cn', 'equity_hk', 'equity_in'],
+ 'universe': ['equity_us', 'equity_cn', 'equity_hk', 'equity_in', 'equity_kr'],
'frequency': ['1d'],
'decay_horizon': 60,
'min_warmup_bars': 60,
diff --git a/agent/src/factors/zoo/qlib158/rank10.py b/agent/src/factors/zoo/qlib158/rank10.py
index a2beb833a..abce74a4e 100644
--- a/agent/src/factors/zoo/qlib158/rank10.py
+++ b/agent/src/factors/zoo/qlib158/rank10.py
@@ -16,7 +16,7 @@ __alpha_meta__ = {
'theme': ['momentum'],
'formula_latex': '\\\\mathrm{ts\\\\_rank}(\\\\mathrm{close}, 10)',
'columns_required': ['close'],
- 'universe': ['equity_us', 'equity_cn', 'equity_hk', 'equity_in'],
+ 'universe': ['equity_us', 'equity_cn', 'equity_hk', 'equity_in', 'equity_kr'],
'frequency': ['1d'],
'decay_horizon': 10,
'min_warmup_bars': 10,
diff --git a/agent/src/factors/zoo/qlib158/rank20.py b/agent/src/factors/zoo/qlib158/rank20.py
index d8a5aef6a..a85465fff 100644
--- a/agent/src/factors/zoo/qlib158/rank20.py
+++ b/agent/src/factors/zoo/qlib158/rank20.py
@@ -16,7 +16,7 @@ __alpha_meta__ = {
'theme': ['momentum'],
'formula_latex': '\\\\mathrm{ts\\\\_rank}(\\\\mathrm{close}, 20)',
'columns_required': ['close'],
- 'universe': ['equity_us', 'equity_cn', 'equity_hk', 'equity_in'],
+ 'universe': ['equity_us', 'equity_cn', 'equity_hk', 'equity_in', 'equity_kr'],
'frequency': ['1d'],
'decay_horizon': 20,
'min_warmup_bars': 20,
diff --git a/agent/src/factors/zoo/qlib158/rank30.py b/agent/src/factors/zoo/qlib158/rank30.py
index 7a94796ce..123a82604 100644
--- a/agent/src/factors/zoo/qlib158/rank30.py
+++ b/agent/src/factors/zoo/qlib158/rank30.py
@@ -16,7 +16,7 @@ __alpha_meta__ = {
'theme': ['momentum'],
'formula_latex': '\\\\mathrm{ts\\\\_rank}(\\\\mathrm{close}, 30)',
'columns_required': ['close'],
- 'universe': ['equity_us', 'equity_cn', 'equity_hk', 'equity_in'],
+ 'universe': ['equity_us', 'equity_cn', 'equity_hk', 'equity_in', 'equity_kr'],
'frequency': ['1d'],
'decay_horizon': 30,
'min_warmup_bars': 30,
diff --git a/agent/src/factors/zoo/qlib158/rank5.py b/agent/src/factors/zoo/qlib158/rank5.py
index 76d6e0575..401e074cf 100644
--- a/agent/src/factors/zoo/qlib158/rank5.py
+++ b/agent/src/factors/zoo/qlib158/rank5.py
@@ -16,7 +16,7 @@ __alpha_meta__ = {
'theme': ['momentum'],
'formula_latex': '\\\\mathrm{ts\\\\_rank}(\\\\mathrm{close}, 5)',
'columns_required': ['close'],
- 'universe': ['equity_us', 'equity_cn', 'equity_hk', 'equity_in'],
+ 'universe': ['equity_us', 'equity_cn', 'equity_hk', 'equity_in', 'equity_kr'],
'frequency': ['1d'],
'decay_horizon': 5,
'min_warmup_bars': 5,
diff --git a/agent/src/factors/zoo/qlib158/rank60.py b/agent/src/factors/zoo/qlib158/rank60.py
index 5cda72fa2..ebe642886 100644
--- a/agent/src/factors/zoo/qlib158/rank60.py
+++ b/agent/src/factors/zoo/qlib158/rank60.py
@@ -16,7 +16,7 @@ __alpha_meta__ = {
'theme': ['momentum'],
'formula_latex': '\\\\mathrm{ts\\\\_rank}(\\\\mathrm{close}, 60)',
'columns_required': ['close'],
- 'universe': ['equity_us', 'equity_cn', 'equity_hk', 'equity_in'],
+ 'universe': ['equity_us', 'equity_cn', 'equity_hk', 'equity_in', 'equity_kr'],
'frequency': ['1d'],
'decay_horizon': 60,
'min_warmup_bars': 60,
diff --git a/agent/src/factors/zoo/qlib158/resi10.py b/agent/src/factors/zoo/qlib158/resi10.py
index 2431bbf0d..9e90d7bd1 100644
--- a/agent/src/factors/zoo/qlib158/resi10.py
+++ b/agent/src/factors/zoo/qlib158/resi10.py
@@ -16,7 +16,7 @@ __alpha_meta__ = {
'theme': ['momentum'],
'formula_latex': '(\\\\mathrm{close} - \\\\mathrm{ts\\\\_mean}(\\\\mathrm{close}, 10)) / \\\\mathrm{close}',
'columns_required': ['close'],
- 'universe': ['equity_us', 'equity_cn', 'equity_hk', 'equity_in'],
+ 'universe': ['equity_us', 'equity_cn', 'equity_hk', 'equity_in', 'equity_kr'],
'frequency': ['1d'],
'decay_horizon': 10,
'min_warmup_bars': 10,
diff --git a/agent/src/factors/zoo/qlib158/resi20.py b/agent/src/factors/zoo/qlib158/resi20.py
index 92dddfe6f..f587b2bd8 100644
--- a/agent/src/factors/zoo/qlib158/resi20.py
+++ b/agent/src/factors/zoo/qlib158/resi20.py
@@ -16,7 +16,7 @@ __alpha_meta__ = {
'theme': ['momentum'],
'formula_latex': '(\\\\mathrm{close} - \\\\mathrm{ts\\\\_mean}(\\\\mathrm{close}, 20)) / \\\\mathrm{close}',
'columns_required': ['close'],
- 'universe': ['equity_us', 'equity_cn', 'equity_hk', 'equity_in'],
+ 'universe': ['equity_us', 'equity_cn', 'equity_hk', 'equity_in', 'equity_kr'],
'frequency': ['1d'],
'decay_horizon': 20,
'min_warmup_bars': 20,
diff --git a/agent/src/factors/zoo/qlib158/resi30.py b/agent/src/factors/zoo/qlib158/resi30.py
index e29f4b60f..9ca4724f5 100644
--- a/agent/src/factors/zoo/qlib158/resi30.py
+++ b/agent/src/factors/zoo/qlib158/resi30.py
@@ -16,7 +16,7 @@ __alpha_meta__ = {
'theme': ['momentum'],
'formula_latex': '(\\\\mathrm{close} - \\\\mathrm{ts\\\\_mean}(\\\\mathrm{close}, 30)) / \\\\mathrm{close}',
'columns_required': ['close'],
- 'universe': ['equity_us', 'equity_cn', 'equity_hk', 'equity_in'],
+ 'universe': ['equity_us', 'equity_cn', 'equity_hk', 'equity_in', 'equity_kr'],
'frequency': ['1d'],
'decay_horizon': 30,
'min_warmup_bars': 30,
diff --git a/agent/src/factors/zoo/qlib158/resi5.py b/agent/src/factors/zoo/qlib158/resi5.py
index aa18b35ce..5daf577ab 100644
--- a/agent/src/factors/zoo/qlib158/resi5.py
+++ b/agent/src/factors/zoo/qlib158/resi5.py
@@ -16,7 +16,7 @@ __alpha_meta__ = {
'theme': ['momentum'],
'formula_latex': '(\\\\mathrm{close} - \\\\mathrm{ts\\\\_mean}(\\\\mathrm{close}, 5)) / \\\\mathrm{close}',
'columns_required': ['close'],
- 'universe': ['equity_us', 'equity_cn', 'equity_hk', 'equity_in'],
+ 'universe': ['equity_us', 'equity_cn', 'equity_hk', 'equity_in', 'equity_kr'],
'frequency': ['1d'],
'decay_horizon': 5,
'min_warmup_bars': 5,
diff --git a/agent/src/factors/zoo/qlib158/resi60.py b/agent/src/factors/zoo/qlib158/resi60.py
index c5ab95f83..e57a9b66f 100644
--- a/agent/src/factors/zoo/qlib158/resi60.py
+++ b/agent/src/factors/zoo/qlib158/resi60.py
@@ -16,7 +16,7 @@ __alpha_meta__ = {
'theme': ['momentum'],
'formula_latex': '(\\\\mathrm{close} - \\\\mathrm{ts\\\\_mean}(\\\\mathrm{close}, 60)) / \\\\mathrm{close}',
'columns_required': ['close'],
- 'universe': ['equity_us', 'equity_cn', 'equity_hk', 'equity_in'],
+ 'universe': ['equity_us', 'equity_cn', 'equity_hk', 'equity_in', 'equity_kr'],
'frequency': ['1d'],
'decay_horizon': 60,
'min_warmup_bars': 60,
diff --git a/agent/src/factors/zoo/qlib158/roc10.py b/agent/src/factors/zoo/qlib158/roc10.py
index 503720a67..1747c6976 100644
--- a/agent/src/factors/zoo/qlib158/roc10.py
+++ b/agent/src/factors/zoo/qlib158/roc10.py
@@ -16,7 +16,7 @@ __alpha_meta__ = {
'theme': ['momentum'],
'formula_latex': '\\\\mathrm{close}_t / \\\\mathrm{close}_{{t-10}} - 1',
'columns_required': ['close'],
- 'universe': ['equity_us', 'equity_cn', 'equity_hk', 'equity_in'],
+ 'universe': ['equity_us', 'equity_cn', 'equity_hk', 'equity_in', 'equity_kr'],
'frequency': ['1d'],
'decay_horizon': 10,
'min_warmup_bars': 10,
diff --git a/agent/src/factors/zoo/qlib158/roc20.py b/agent/src/factors/zoo/qlib158/roc20.py
index 471982fe4..1fe7bab8f 100644
--- a/agent/src/factors/zoo/qlib158/roc20.py
+++ b/agent/src/factors/zoo/qlib158/roc20.py
@@ -16,7 +16,7 @@ __alpha_meta__ = {
'theme': ['momentum'],
'formula_latex': '\\\\mathrm{close}_t / \\\\mathrm{close}_{{t-20}} - 1',
'columns_required': ['close'],
- 'universe': ['equity_us', 'equity_cn', 'equity_hk', 'equity_in'],
+ 'universe': ['equity_us', 'equity_cn', 'equity_hk', 'equity_in', 'equity_kr'],
'frequency': ['1d'],
'decay_horizon': 20,
'min_warmup_bars': 20,
diff --git a/agent/src/factors/zoo/qlib158/roc30.py b/agent/src/factors/zoo/qlib158/roc30.py
index 88668e1d6..9906ca8dd 100644
--- a/agent/src/factors/zoo/qlib158/roc30.py
+++ b/agent/src/factors/zoo/qlib158/roc30.py
@@ -16,7 +16,7 @@ __alpha_meta__ = {
'theme': ['momentum'],
'formula_latex': '\\\\mathrm{close}_t / \\\\mathrm{close}_{{t-30}} - 1',
'columns_required': ['close'],
- 'universe': ['equity_us', 'equity_cn', 'equity_hk', 'equity_in'],
+ 'universe': ['equity_us', 'equity_cn', 'equity_hk', 'equity_in', 'equity_kr'],
'frequency': ['1d'],
'decay_horizon': 30,
'min_warmup_bars': 30,
diff --git a/agent/src/factors/zoo/qlib158/roc5.py b/agent/src/factors/zoo/qlib158/roc5.py
index a66867341..4b429c653 100644
--- a/agent/src/factors/zoo/qlib158/roc5.py
+++ b/agent/src/factors/zoo/qlib158/roc5.py
@@ -16,7 +16,7 @@ __alpha_meta__ = {
'theme': ['momentum'],
'formula_latex': '\\\\mathrm{close}_t / \\\\mathrm{close}_{{t-5}} - 1',
'columns_required': ['close'],
- 'universe': ['equity_us', 'equity_cn', 'equity_hk', 'equity_in'],
+ 'universe': ['equity_us', 'equity_cn', 'equity_hk', 'equity_in', 'equity_kr'],
'frequency': ['1d'],
'decay_horizon': 5,
'min_warmup_bars': 5,
diff --git a/agent/src/factors/zoo/qlib158/roc60.py b/agent/src/factors/zoo/qlib158/roc60.py
index b930b6776..6df7f754f 100644
--- a/agent/src/factors/zoo/qlib158/roc60.py
+++ b/agent/src/factors/zoo/qlib158/roc60.py
@@ -16,7 +16,7 @@ __alpha_meta__ = {
'theme': ['momentum'],
'formula_latex': '\\\\mathrm{close}_t / \\\\mathrm{close}_{{t-60}} - 1',
'columns_required': ['close'],
- 'universe': ['equity_us', 'equity_cn', 'equity_hk', 'equity_in'],
+ 'universe': ['equity_us', 'equity_cn', 'equity_hk', 'equity_in', 'equity_kr'],
'frequency': ['1d'],
'decay_horizon': 60,
'min_warmup_bars': 60,
diff --git a/agent/src/factors/zoo/qlib158/rsqr10.py b/agent/src/factors/zoo/qlib158/rsqr10.py
index cb2875a3a..b3f3e2ff1 100644
--- a/agent/src/factors/zoo/qlib158/rsqr10.py
+++ b/agent/src/factors/zoo/qlib158/rsqr10.py
@@ -17,7 +17,7 @@ __alpha_meta__ = {
'theme': ['momentum'],
'formula_latex': '\\\\mathrm{ts\\\\_corr}(\\\\mathrm{close}, t, 10)^2',
'columns_required': ['close'],
- 'universe': ['equity_us', 'equity_cn', 'equity_hk', 'equity_in'],
+ 'universe': ['equity_us', 'equity_cn', 'equity_hk', 'equity_in', 'equity_kr'],
'frequency': ['1d'],
'decay_horizon': 10,
'min_warmup_bars': 10,
diff --git a/agent/src/factors/zoo/qlib158/rsqr20.py b/agent/src/factors/zoo/qlib158/rsqr20.py
index df280904a..ce4792165 100644
--- a/agent/src/factors/zoo/qlib158/rsqr20.py
+++ b/agent/src/factors/zoo/qlib158/rsqr20.py
@@ -17,7 +17,7 @@ __alpha_meta__ = {
'theme': ['momentum'],
'formula_latex': '\\\\mathrm{ts\\\\_corr}(\\\\mathrm{close}, t, 20)^2',
'columns_required': ['close'],
- 'universe': ['equity_us', 'equity_cn', 'equity_hk', 'equity_in'],
+ 'universe': ['equity_us', 'equity_cn', 'equity_hk', 'equity_in', 'equity_kr'],
'frequency': ['1d'],
'decay_horizon': 20,
'min_warmup_bars': 20,
diff --git a/agent/src/factors/zoo/qlib158/rsqr30.py b/agent/src/factors/zoo/qlib158/rsqr30.py
index 5060dfde5..26651b8ba 100644
--- a/agent/src/factors/zoo/qlib158/rsqr30.py
+++ b/agent/src/factors/zoo/qlib158/rsqr30.py
@@ -17,7 +17,7 @@ __alpha_meta__ = {
'theme': ['momentum'],
'formula_latex': '\\\\mathrm{ts\\\\_corr}(\\\\mathrm{close}, t, 30)^2',
'columns_required': ['close'],
- 'universe': ['equity_us', 'equity_cn', 'equity_hk', 'equity_in'],
+ 'universe': ['equity_us', 'equity_cn', 'equity_hk', 'equity_in', 'equity_kr'],
'frequency': ['1d'],
'decay_horizon': 30,
'min_warmup_bars': 30,
diff --git a/agent/src/factors/zoo/qlib158/rsqr5.py b/agent/src/factors/zoo/qlib158/rsqr5.py
index a97102f32..86df62d82 100644
--- a/agent/src/factors/zoo/qlib158/rsqr5.py
+++ b/agent/src/factors/zoo/qlib158/rsqr5.py
@@ -17,7 +17,7 @@ __alpha_meta__ = {
'theme': ['momentum'],
'formula_latex': '\\\\mathrm{ts\\\\_corr}(\\\\mathrm{close}, t, 5)^2',
'columns_required': ['close'],
- 'universe': ['equity_us', 'equity_cn', 'equity_hk', 'equity_in'],
+ 'universe': ['equity_us', 'equity_cn', 'equity_hk', 'equity_in', 'equity_kr'],
'frequency': ['1d'],
'decay_horizon': 5,
'min_warmup_bars': 5,
diff --git a/agent/src/factors/zoo/qlib158/rsqr60.py b/agent/src/factors/zoo/qlib158/rsqr60.py
index 759a80d0d..130a082e2 100644
--- a/agent/src/factors/zoo/qlib158/rsqr60.py
+++ b/agent/src/factors/zoo/qlib158/rsqr60.py
@@ -17,7 +17,7 @@ __alpha_meta__ = {
'theme': ['momentum'],
'formula_latex': '\\\\mathrm{ts\\\\_corr}(\\\\mathrm{close}, t, 60)^2',
'columns_required': ['close'],
- 'universe': ['equity_us', 'equity_cn', 'equity_hk', 'equity_in'],
+ 'universe': ['equity_us', 'equity_cn', 'equity_hk', 'equity_in', 'equity_kr'],
'frequency': ['1d'],
'decay_horizon': 60,
'min_warmup_bars': 60,
diff --git a/agent/src/factors/zoo/qlib158/rsv10.py b/agent/src/factors/zoo/qlib158/rsv10.py
index a85dc7d53..2e13625d3 100644
--- a/agent/src/factors/zoo/qlib158/rsv10.py
+++ b/agent/src/factors/zoo/qlib158/rsv10.py
@@ -16,7 +16,7 @@ __alpha_meta__ = {
'theme': ['momentum'],
'formula_latex': '(\\\\mathrm{close} - \\\\mathrm{ts\\\\_min}(\\\\mathrm{low}, 10)) / (\\\\mathrm{ts\\\\_max}(\\\\mathrm{high}, 10) - \\\\mathrm{ts\\\\_min}(\\\\mathrm{low}, 10))',
'columns_required': ['high', 'low', 'close'],
- 'universe': ['equity_us', 'equity_cn', 'equity_hk', 'equity_in'],
+ 'universe': ['equity_us', 'equity_cn', 'equity_hk', 'equity_in', 'equity_kr'],
'frequency': ['1d'],
'decay_horizon': 10,
'min_warmup_bars': 10,
diff --git a/agent/src/factors/zoo/qlib158/rsv20.py b/agent/src/factors/zoo/qlib158/rsv20.py
index 05d5fe512..4b9e843af 100644
--- a/agent/src/factors/zoo/qlib158/rsv20.py
+++ b/agent/src/factors/zoo/qlib158/rsv20.py
@@ -16,7 +16,7 @@ __alpha_meta__ = {
'theme': ['momentum'],
'formula_latex': '(\\\\mathrm{close} - \\\\mathrm{ts\\\\_min}(\\\\mathrm{low}, 20)) / (\\\\mathrm{ts\\\\_max}(\\\\mathrm{high}, 20) - \\\\mathrm{ts\\\\_min}(\\\\mathrm{low}, 20))',
'columns_required': ['high', 'low', 'close'],
- 'universe': ['equity_us', 'equity_cn', 'equity_hk', 'equity_in'],
+ 'universe': ['equity_us', 'equity_cn', 'equity_hk', 'equity_in', 'equity_kr'],
'frequency': ['1d'],
'decay_horizon': 20,
'min_warmup_bars': 20,
diff --git a/agent/src/factors/zoo/qlib158/rsv30.py b/agent/src/factors/zoo/qlib158/rsv30.py
index 52f1d25d9..eb1e37ea8 100644
--- a/agent/src/factors/zoo/qlib158/rsv30.py
+++ b/agent/src/factors/zoo/qlib158/rsv30.py
@@ -16,7 +16,7 @@ __alpha_meta__ = {
'theme': ['momentum'],
'formula_latex': '(\\\\mathrm{close} - \\\\mathrm{ts\\\\_min}(\\\\mathrm{low}, 30)) / (\\\\mathrm{ts\\\\_max}(\\\\mathrm{high}, 30) - \\\\mathrm{ts\\\\_min}(\\\\mathrm{low}, 30))',
'columns_required': ['high', 'low', 'close'],
- 'universe': ['equity_us', 'equity_cn', 'equity_hk', 'equity_in'],
+ 'universe': ['equity_us', 'equity_cn', 'equity_hk', 'equity_in', 'equity_kr'],
'frequency': ['1d'],
'decay_horizon': 30,
'min_warmup_bars': 30,
diff --git a/agent/src/factors/zoo/qlib158/rsv5.py b/agent/src/factors/zoo/qlib158/rsv5.py
index 7bab6803c..2bc5856f5 100644
--- a/agent/src/factors/zoo/qlib158/rsv5.py
+++ b/agent/src/factors/zoo/qlib158/rsv5.py
@@ -16,7 +16,7 @@ __alpha_meta__ = {
'theme': ['momentum'],
'formula_latex': '(\\\\mathrm{close} - \\\\mathrm{ts\\\\_min}(\\\\mathrm{low}, 5)) / (\\\\mathrm{ts\\\\_max}(\\\\mathrm{high}, 5) - \\\\mathrm{ts\\\\_min}(\\\\mathrm{low}, 5))',
'columns_required': ['high', 'low', 'close'],
- 'universe': ['equity_us', 'equity_cn', 'equity_hk', 'equity_in'],
+ 'universe': ['equity_us', 'equity_cn', 'equity_hk', 'equity_in', 'equity_kr'],
'frequency': ['1d'],
'decay_horizon': 5,
'min_warmup_bars': 5,
diff --git a/agent/src/factors/zoo/qlib158/rsv60.py b/agent/src/factors/zoo/qlib158/rsv60.py
index 4d46eb734..068b5d366 100644
--- a/agent/src/factors/zoo/qlib158/rsv60.py
+++ b/agent/src/factors/zoo/qlib158/rsv60.py
@@ -16,7 +16,7 @@ __alpha_meta__ = {
'theme': ['momentum'],
'formula_latex': '(\\\\mathrm{close} - \\\\mathrm{ts\\\\_min}(\\\\mathrm{low}, 60)) / (\\\\mathrm{ts\\\\_max}(\\\\mathrm{high}, 60) - \\\\mathrm{ts\\\\_min}(\\\\mathrm{low}, 60))',
'columns_required': ['high', 'low', 'close'],
- 'universe': ['equity_us', 'equity_cn', 'equity_hk', 'equity_in'],
+ 'universe': ['equity_us', 'equity_cn', 'equity_hk', 'equity_in', 'equity_kr'],
'frequency': ['1d'],
'decay_horizon': 60,
'min_warmup_bars': 60,
diff --git a/agent/src/factors/zoo/qlib158/std10.py b/agent/src/factors/zoo/qlib158/std10.py
index 15d11c860..9d833fa19 100644
--- a/agent/src/factors/zoo/qlib158/std10.py
+++ b/agent/src/factors/zoo/qlib158/std10.py
@@ -16,7 +16,7 @@ __alpha_meta__ = {
'theme': ['momentum'],
'formula_latex': '\\\\mathrm{ts\\\\_std}(\\\\mathrm{close}, 10) / \\\\mathrm{close}',
'columns_required': ['close'],
- 'universe': ['equity_us', 'equity_cn', 'equity_hk', 'equity_in'],
+ 'universe': ['equity_us', 'equity_cn', 'equity_hk', 'equity_in', 'equity_kr'],
'frequency': ['1d'],
'decay_horizon': 10,
'min_warmup_bars': 10,
diff --git a/agent/src/factors/zoo/qlib158/std20.py b/agent/src/factors/zoo/qlib158/std20.py
index 5f3d3c2a5..2ec7008e2 100644
--- a/agent/src/factors/zoo/qlib158/std20.py
+++ b/agent/src/factors/zoo/qlib158/std20.py
@@ -16,7 +16,7 @@ __alpha_meta__ = {
'theme': ['momentum'],
'formula_latex': '\\\\mathrm{ts\\\\_std}(\\\\mathrm{close}, 20) / \\\\mathrm{close}',
'columns_required': ['close'],
- 'universe': ['equity_us', 'equity_cn', 'equity_hk', 'equity_in'],
+ 'universe': ['equity_us', 'equity_cn', 'equity_hk', 'equity_in', 'equity_kr'],
'frequency': ['1d'],
'decay_horizon': 20,
'min_warmup_bars': 20,
diff --git a/agent/src/factors/zoo/qlib158/std30.py b/agent/src/factors/zoo/qlib158/std30.py
index 7663b3480..d5fa884ab 100644
--- a/agent/src/factors/zoo/qlib158/std30.py
+++ b/agent/src/factors/zoo/qlib158/std30.py
@@ -16,7 +16,7 @@ __alpha_meta__ = {
'theme': ['momentum'],
'formula_latex': '\\\\mathrm{ts\\\\_std}(\\\\mathrm{close}, 30) / \\\\mathrm{close}',
'columns_required': ['close'],
- 'universe': ['equity_us', 'equity_cn', 'equity_hk', 'equity_in'],
+ 'universe': ['equity_us', 'equity_cn', 'equity_hk', 'equity_in', 'equity_kr'],
'frequency': ['1d'],
'decay_horizon': 30,
'min_warmup_bars': 30,
diff --git a/agent/src/factors/zoo/qlib158/std5.py b/agent/src/factors/zoo/qlib158/std5.py
index 4ea40bdd2..f89251207 100644
--- a/agent/src/factors/zoo/qlib158/std5.py
+++ b/agent/src/factors/zoo/qlib158/std5.py
@@ -16,7 +16,7 @@ __alpha_meta__ = {
'theme': ['momentum'],
'formula_latex': '\\\\mathrm{ts\\\\_std}(\\\\mathrm{close}, 5) / \\\\mathrm{close}',
'columns_required': ['close'],
- 'universe': ['equity_us', 'equity_cn', 'equity_hk', 'equity_in'],
+ 'universe': ['equity_us', 'equity_cn', 'equity_hk', 'equity_in', 'equity_kr'],
'frequency': ['1d'],
'decay_horizon': 5,
'min_warmup_bars': 5,
diff --git a/agent/src/factors/zoo/qlib158/std60.py b/agent/src/factors/zoo/qlib158/std60.py
index a8f6baba7..124318373 100644
--- a/agent/src/factors/zoo/qlib158/std60.py
+++ b/agent/src/factors/zoo/qlib158/std60.py
@@ -16,7 +16,7 @@ __alpha_meta__ = {
'theme': ['momentum'],
'formula_latex': '\\\\mathrm{ts\\\\_std}(\\\\mathrm{close}, 60) / \\\\mathrm{close}',
'columns_required': ['close'],
- 'universe': ['equity_us', 'equity_cn', 'equity_hk', 'equity_in'],
+ 'universe': ['equity_us', 'equity_cn', 'equity_hk', 'equity_in', 'equity_kr'],
'frequency': ['1d'],
'decay_horizon': 60,
'min_warmup_bars': 60,
diff --git a/agent/src/factors/zoo/qlib158/sumd10.py b/agent/src/factors/zoo/qlib158/sumd10.py
index e0a377b29..8da5d8660 100644
--- a/agent/src/factors/zoo/qlib158/sumd10.py
+++ b/agent/src/factors/zoo/qlib158/sumd10.py
@@ -16,7 +16,7 @@ __alpha_meta__ = {
'theme': ['reversal'],
'formula_latex': '\\\\mathrm{SUMP}_w - \\\\mathrm{SUMN}_w',
'columns_required': ['close'],
- 'universe': ['equity_us', 'equity_cn', 'equity_hk', 'equity_in'],
+ 'universe': ['equity_us', 'equity_cn', 'equity_hk', 'equity_in', 'equity_kr'],
'frequency': ['1d'],
'decay_horizon': 10,
'min_warmup_bars': 10,
diff --git a/agent/src/factors/zoo/qlib158/sumd20.py b/agent/src/factors/zoo/qlib158/sumd20.py
index 0d184917d..b670049ad 100644
--- a/agent/src/factors/zoo/qlib158/sumd20.py
+++ b/agent/src/factors/zoo/qlib158/sumd20.py
@@ -16,7 +16,7 @@ __alpha_meta__ = {
'theme': ['reversal'],
'formula_latex': '\\\\mathrm{SUMP}_w - \\\\mathrm{SUMN}_w',
'columns_required': ['close'],
- 'universe': ['equity_us', 'equity_cn', 'equity_hk', 'equity_in'],
+ 'universe': ['equity_us', 'equity_cn', 'equity_hk', 'equity_in', 'equity_kr'],
'frequency': ['1d'],
'decay_horizon': 20,
'min_warmup_bars': 20,
diff --git a/agent/src/factors/zoo/qlib158/sumd30.py b/agent/src/factors/zoo/qlib158/sumd30.py
index 6a22e0b34..767683fe5 100644
--- a/agent/src/factors/zoo/qlib158/sumd30.py
+++ b/agent/src/factors/zoo/qlib158/sumd30.py
@@ -16,7 +16,7 @@ __alpha_meta__ = {
'theme': ['reversal'],
'formula_latex': '\\\\mathrm{SUMP}_w - \\\\mathrm{SUMN}_w',
'columns_required': ['close'],
- 'universe': ['equity_us', 'equity_cn', 'equity_hk', 'equity_in'],
+ 'universe': ['equity_us', 'equity_cn', 'equity_hk', 'equity_in', 'equity_kr'],
'frequency': ['1d'],
'decay_horizon': 30,
'min_warmup_bars': 30,
diff --git a/agent/src/factors/zoo/qlib158/sumd5.py b/agent/src/factors/zoo/qlib158/sumd5.py
index f23caf60b..e707d537c 100644
--- a/agent/src/factors/zoo/qlib158/sumd5.py
+++ b/agent/src/factors/zoo/qlib158/sumd5.py
@@ -16,7 +16,7 @@ __alpha_meta__ = {
'theme': ['reversal'],
'formula_latex': '\\\\mathrm{SUMP}_w - \\\\mathrm{SUMN}_w',
'columns_required': ['close'],
- 'universe': ['equity_us', 'equity_cn', 'equity_hk', 'equity_in'],
+ 'universe': ['equity_us', 'equity_cn', 'equity_hk', 'equity_in', 'equity_kr'],
'frequency': ['1d'],
'decay_horizon': 5,
'min_warmup_bars': 5,
diff --git a/agent/src/factors/zoo/qlib158/sumd60.py b/agent/src/factors/zoo/qlib158/sumd60.py
index 00ae71ac9..e8465f56f 100644
--- a/agent/src/factors/zoo/qlib158/sumd60.py
+++ b/agent/src/factors/zoo/qlib158/sumd60.py
@@ -16,7 +16,7 @@ __alpha_meta__ = {
'theme': ['reversal'],
'formula_latex': '\\\\mathrm{SUMP}_w - \\\\mathrm{SUMN}_w',
'columns_required': ['close'],
- 'universe': ['equity_us', 'equity_cn', 'equity_hk', 'equity_in'],
+ 'universe': ['equity_us', 'equity_cn', 'equity_hk', 'equity_in', 'equity_kr'],
'frequency': ['1d'],
'decay_horizon': 60,
'min_warmup_bars': 60,
diff --git a/agent/src/factors/zoo/qlib158/sumn10.py b/agent/src/factors/zoo/qlib158/sumn10.py
index b66963dc4..0d538f277 100644
--- a/agent/src/factors/zoo/qlib158/sumn10.py
+++ b/agent/src/factors/zoo/qlib158/sumn10.py
@@ -16,7 +16,7 @@ __alpha_meta__ = {
'theme': ['reversal'],
'formula_latex': '\\\\sum \\\\max(-\\\\Delta\\\\mathrm{close}, 0) / \\\\sum |\\\\Delta\\\\mathrm{close}|',
'columns_required': ['close'],
- 'universe': ['equity_us', 'equity_cn', 'equity_hk', 'equity_in'],
+ 'universe': ['equity_us', 'equity_cn', 'equity_hk', 'equity_in', 'equity_kr'],
'frequency': ['1d'],
'decay_horizon': 10,
'min_warmup_bars': 10,
diff --git a/agent/src/factors/zoo/qlib158/sumn20.py b/agent/src/factors/zoo/qlib158/sumn20.py
index 05c68d8eb..b832668fb 100644
--- a/agent/src/factors/zoo/qlib158/sumn20.py
+++ b/agent/src/factors/zoo/qlib158/sumn20.py
@@ -16,7 +16,7 @@ __alpha_meta__ = {
'theme': ['reversal'],
'formula_latex': '\\\\sum \\\\max(-\\\\Delta\\\\mathrm{close}, 0) / \\\\sum |\\\\Delta\\\\mathrm{close}|',
'columns_required': ['close'],
- 'universe': ['equity_us', 'equity_cn', 'equity_hk', 'equity_in'],
+ 'universe': ['equity_us', 'equity_cn', 'equity_hk', 'equity_in', 'equity_kr'],
'frequency': ['1d'],
'decay_horizon': 20,
'min_warmup_bars': 20,
diff --git a/agent/src/factors/zoo/qlib158/sumn30.py b/agent/src/factors/zoo/qlib158/sumn30.py
index bf885e56e..fa9e4a367 100644
--- a/agent/src/factors/zoo/qlib158/sumn30.py
+++ b/agent/src/factors/zoo/qlib158/sumn30.py
@@ -16,7 +16,7 @@ __alpha_meta__ = {
'theme': ['reversal'],
'formula_latex': '\\\\sum \\\\max(-\\\\Delta\\\\mathrm{close}, 0) / \\\\sum |\\\\Delta\\\\mathrm{close}|',
'columns_required': ['close'],
- 'universe': ['equity_us', 'equity_cn', 'equity_hk', 'equity_in'],
+ 'universe': ['equity_us', 'equity_cn', 'equity_hk', 'equity_in', 'equity_kr'],
'frequency': ['1d'],
'decay_horizon': 30,
'min_warmup_bars': 30,
diff --git a/agent/src/factors/zoo/qlib158/sumn5.py b/agent/src/factors/zoo/qlib158/sumn5.py
index 9b0fb51bf..2da63bedd 100644
--- a/agent/src/factors/zoo/qlib158/sumn5.py
+++ b/agent/src/factors/zoo/qlib158/sumn5.py
@@ -16,7 +16,7 @@ __alpha_meta__ = {
'theme': ['reversal'],
'formula_latex': '\\\\sum \\\\max(-\\\\Delta\\\\mathrm{close}, 0) / \\\\sum |\\\\Delta\\\\mathrm{close}|',
'columns_required': ['close'],
- 'universe': ['equity_us', 'equity_cn', 'equity_hk', 'equity_in'],
+ 'universe': ['equity_us', 'equity_cn', 'equity_hk', 'equity_in', 'equity_kr'],
'frequency': ['1d'],
'decay_horizon': 5,
'min_warmup_bars': 5,
diff --git a/agent/src/factors/zoo/qlib158/sumn60.py b/agent/src/factors/zoo/qlib158/sumn60.py
index b6cc97793..8d1b1baf7 100644
--- a/agent/src/factors/zoo/qlib158/sumn60.py
+++ b/agent/src/factors/zoo/qlib158/sumn60.py
@@ -16,7 +16,7 @@ __alpha_meta__ = {
'theme': ['reversal'],
'formula_latex': '\\\\sum \\\\max(-\\\\Delta\\\\mathrm{close}, 0) / \\\\sum |\\\\Delta\\\\mathrm{close}|',
'columns_required': ['close'],
- 'universe': ['equity_us', 'equity_cn', 'equity_hk', 'equity_in'],
+ 'universe': ['equity_us', 'equity_cn', 'equity_hk', 'equity_in', 'equity_kr'],
'frequency': ['1d'],
'decay_horizon': 60,
'min_warmup_bars': 60,
diff --git a/agent/src/factors/zoo/qlib158/sump10.py b/agent/src/factors/zoo/qlib158/sump10.py
index 937bbcab8..c30f11304 100644
--- a/agent/src/factors/zoo/qlib158/sump10.py
+++ b/agent/src/factors/zoo/qlib158/sump10.py
@@ -16,7 +16,7 @@ __alpha_meta__ = {
'theme': ['reversal'],
'formula_latex': '\\\\sum \\\\max(\\\\Delta\\\\mathrm{close}, 0) / \\\\sum |\\\\Delta\\\\mathrm{close}|',
'columns_required': ['close'],
- 'universe': ['equity_us', 'equity_cn', 'equity_hk', 'equity_in'],
+ 'universe': ['equity_us', 'equity_cn', 'equity_hk', 'equity_in', 'equity_kr'],
'frequency': ['1d'],
'decay_horizon': 10,
'min_warmup_bars': 10,
diff --git a/agent/src/factors/zoo/qlib158/sump20.py b/agent/src/factors/zoo/qlib158/sump20.py
index f5072b71b..e49e9c1d4 100644
--- a/agent/src/factors/zoo/qlib158/sump20.py
+++ b/agent/src/factors/zoo/qlib158/sump20.py
@@ -16,7 +16,7 @@ __alpha_meta__ = {
'theme': ['reversal'],
'formula_latex': '\\\\sum \\\\max(\\\\Delta\\\\mathrm{close}, 0) / \\\\sum |\\\\Delta\\\\mathrm{close}|',
'columns_required': ['close'],
- 'universe': ['equity_us', 'equity_cn', 'equity_hk', 'equity_in'],
+ 'universe': ['equity_us', 'equity_cn', 'equity_hk', 'equity_in', 'equity_kr'],
'frequency': ['1d'],
'decay_horizon': 20,
'min_warmup_bars': 20,
diff --git a/agent/src/factors/zoo/qlib158/sump30.py b/agent/src/factors/zoo/qlib158/sump30.py
index 1e1e612cc..eb5f9a23d 100644
--- a/agent/src/factors/zoo/qlib158/sump30.py
+++ b/agent/src/factors/zoo/qlib158/sump30.py
@@ -16,7 +16,7 @@ __alpha_meta__ = {
'theme': ['reversal'],
'formula_latex': '\\\\sum \\\\max(\\\\Delta\\\\mathrm{close}, 0) / \\\\sum |\\\\Delta\\\\mathrm{close}|',
'columns_required': ['close'],
- 'universe': ['equity_us', 'equity_cn', 'equity_hk', 'equity_in'],
+ 'universe': ['equity_us', 'equity_cn', 'equity_hk', 'equity_in', 'equity_kr'],
'frequency': ['1d'],
'decay_horizon': 30,
'min_warmup_bars': 30,
diff --git a/agent/src/factors/zoo/qlib158/sump5.py b/agent/src/factors/zoo/qlib158/sump5.py
index 333683e46..fe4895e0d 100644
--- a/agent/src/factors/zoo/qlib158/sump5.py
+++ b/agent/src/factors/zoo/qlib158/sump5.py
@@ -16,7 +16,7 @@ __alpha_meta__ = {
'theme': ['reversal'],
'formula_latex': '\\\\sum \\\\max(\\\\Delta\\\\mathrm{close}, 0) / \\\\sum |\\\\Delta\\\\mathrm{close}|',
'columns_required': ['close'],
- 'universe': ['equity_us', 'equity_cn', 'equity_hk', 'equity_in'],
+ 'universe': ['equity_us', 'equity_cn', 'equity_hk', 'equity_in', 'equity_kr'],
'frequency': ['1d'],
'decay_horizon': 5,
'min_warmup_bars': 5,
diff --git a/agent/src/factors/zoo/qlib158/sump60.py b/agent/src/factors/zoo/qlib158/sump60.py
index 70fe5f155..baa03be90 100644
--- a/agent/src/factors/zoo/qlib158/sump60.py
+++ b/agent/src/factors/zoo/qlib158/sump60.py
@@ -16,7 +16,7 @@ __alpha_meta__ = {
'theme': ['reversal'],
'formula_latex': '\\\\sum \\\\max(\\\\Delta\\\\mathrm{close}, 0) / \\\\sum |\\\\Delta\\\\mathrm{close}|',
'columns_required': ['close'],
- 'universe': ['equity_us', 'equity_cn', 'equity_hk', 'equity_in'],
+ 'universe': ['equity_us', 'equity_cn', 'equity_hk', 'equity_in', 'equity_kr'],
'frequency': ['1d'],
'decay_horizon': 60,
'min_warmup_bars': 60,
diff --git a/agent/src/factors/zoo/qlib158/vma10.py b/agent/src/factors/zoo/qlib158/vma10.py
index 1fb365704..a9e81d26a 100644
--- a/agent/src/factors/zoo/qlib158/vma10.py
+++ b/agent/src/factors/zoo/qlib158/vma10.py
@@ -16,7 +16,7 @@ __alpha_meta__ = {
'theme': ['volume', 'volatility'],
'formula_latex': '\\\\mathrm{ts\\\\_mean}(\\\\mathrm{volume}, 10) / \\\\mathrm{volume}',
'columns_required': ['volume'],
- 'universe': ['equity_us', 'equity_cn', 'equity_hk', 'equity_in'],
+ 'universe': ['equity_us', 'equity_cn', 'equity_hk', 'equity_in', 'equity_kr'],
'frequency': ['1d'],
'decay_horizon': 10,
'min_warmup_bars': 10,
diff --git a/agent/src/factors/zoo/qlib158/vma20.py b/agent/src/factors/zoo/qlib158/vma20.py
index 347e75947..3ff4a3aea 100644
--- a/agent/src/factors/zoo/qlib158/vma20.py
+++ b/agent/src/factors/zoo/qlib158/vma20.py
@@ -16,7 +16,7 @@ __alpha_meta__ = {
'theme': ['volume', 'volatility'],
'formula_latex': '\\\\mathrm{ts\\\\_mean}(\\\\mathrm{volume}, 20) / \\\\mathrm{volume}',
'columns_required': ['volume'],
- 'universe': ['equity_us', 'equity_cn', 'equity_hk', 'equity_in'],
+ 'universe': ['equity_us', 'equity_cn', 'equity_hk', 'equity_in', 'equity_kr'],
'frequency': ['1d'],
'decay_horizon': 20,
'min_warmup_bars': 20,
diff --git a/agent/src/factors/zoo/qlib158/vma30.py b/agent/src/factors/zoo/qlib158/vma30.py
index 16eed765e..bec6fdd6c 100644
--- a/agent/src/factors/zoo/qlib158/vma30.py
+++ b/agent/src/factors/zoo/qlib158/vma30.py
@@ -16,7 +16,7 @@ __alpha_meta__ = {
'theme': ['volume', 'volatility'],
'formula_latex': '\\\\mathrm{ts\\\\_mean}(\\\\mathrm{volume}, 30) / \\\\mathrm{volume}',
'columns_required': ['volume'],
- 'universe': ['equity_us', 'equity_cn', 'equity_hk', 'equity_in'],
+ 'universe': ['equity_us', 'equity_cn', 'equity_hk', 'equity_in', 'equity_kr'],
'frequency': ['1d'],
'decay_horizon': 30,
'min_warmup_bars': 30,
diff --git a/agent/src/factors/zoo/qlib158/vma5.py b/agent/src/factors/zoo/qlib158/vma5.py
index b0d1d10f9..860985e4f 100644
--- a/agent/src/factors/zoo/qlib158/vma5.py
+++ b/agent/src/factors/zoo/qlib158/vma5.py
@@ -16,7 +16,7 @@ __alpha_meta__ = {
'theme': ['volume', 'volatility'],
'formula_latex': '\\\\mathrm{ts\\\\_mean}(\\\\mathrm{volume}, 5) / \\\\mathrm{volume}',
'columns_required': ['volume'],
- 'universe': ['equity_us', 'equity_cn', 'equity_hk', 'equity_in'],
+ 'universe': ['equity_us', 'equity_cn', 'equity_hk', 'equity_in', 'equity_kr'],
'frequency': ['1d'],
'decay_horizon': 5,
'min_warmup_bars': 5,
diff --git a/agent/src/factors/zoo/qlib158/vma60.py b/agent/src/factors/zoo/qlib158/vma60.py
index 24e9c93e8..b2fbeed39 100644
--- a/agent/src/factors/zoo/qlib158/vma60.py
+++ b/agent/src/factors/zoo/qlib158/vma60.py
@@ -16,7 +16,7 @@ __alpha_meta__ = {
'theme': ['volume', 'volatility'],
'formula_latex': '\\\\mathrm{ts\\\\_mean}(\\\\mathrm{volume}, 60) / \\\\mathrm{volume}',
'columns_required': ['volume'],
- 'universe': ['equity_us', 'equity_cn', 'equity_hk', 'equity_in'],
+ 'universe': ['equity_us', 'equity_cn', 'equity_hk', 'equity_in', 'equity_kr'],
'frequency': ['1d'],
'decay_horizon': 60,
'min_warmup_bars': 60,
diff --git a/agent/src/factors/zoo/qlib158/vstd10.py b/agent/src/factors/zoo/qlib158/vstd10.py
index 0d1a5b4a5..73e1dbbe4 100644
--- a/agent/src/factors/zoo/qlib158/vstd10.py
+++ b/agent/src/factors/zoo/qlib158/vstd10.py
@@ -16,7 +16,7 @@ __alpha_meta__ = {
'theme': ['volume', 'volatility'],
'formula_latex': '\\\\mathrm{ts\\\\_std}(\\\\mathrm{volume}, 10) / \\\\mathrm{volume}',
'columns_required': ['volume'],
- 'universe': ['equity_us', 'equity_cn', 'equity_hk', 'equity_in'],
+ 'universe': ['equity_us', 'equity_cn', 'equity_hk', 'equity_in', 'equity_kr'],
'frequency': ['1d'],
'decay_horizon': 10,
'min_warmup_bars': 10,
diff --git a/agent/src/factors/zoo/qlib158/vstd20.py b/agent/src/factors/zoo/qlib158/vstd20.py
index 894ebadd4..edb270b50 100644
--- a/agent/src/factors/zoo/qlib158/vstd20.py
+++ b/agent/src/factors/zoo/qlib158/vstd20.py
@@ -16,7 +16,7 @@ __alpha_meta__ = {
'theme': ['volume', 'volatility'],
'formula_latex': '\\\\mathrm{ts\\\\_std}(\\\\mathrm{volume}, 20) / \\\\mathrm{volume}',
'columns_required': ['volume'],
- 'universe': ['equity_us', 'equity_cn', 'equity_hk', 'equity_in'],
+ 'universe': ['equity_us', 'equity_cn', 'equity_hk', 'equity_in', 'equity_kr'],
'frequency': ['1d'],
'decay_horizon': 20,
'min_warmup_bars': 20,
diff --git a/agent/src/factors/zoo/qlib158/vstd30.py b/agent/src/factors/zoo/qlib158/vstd30.py
index 5e54e3b80..e1e559956 100644
--- a/agent/src/factors/zoo/qlib158/vstd30.py
+++ b/agent/src/factors/zoo/qlib158/vstd30.py
@@ -16,7 +16,7 @@ __alpha_meta__ = {
'theme': ['volume', 'volatility'],
'formula_latex': '\\\\mathrm{ts\\\\_std}(\\\\mathrm{volume}, 30) / \\\\mathrm{volume}',
'columns_required': ['volume'],
- 'universe': ['equity_us', 'equity_cn', 'equity_hk', 'equity_in'],
+ 'universe': ['equity_us', 'equity_cn', 'equity_hk', 'equity_in', 'equity_kr'],
'frequency': ['1d'],
'decay_horizon': 30,
'min_warmup_bars': 30,
diff --git a/agent/src/factors/zoo/qlib158/vstd5.py b/agent/src/factors/zoo/qlib158/vstd5.py
index 7a295d13e..b8f6cee50 100644
--- a/agent/src/factors/zoo/qlib158/vstd5.py
+++ b/agent/src/factors/zoo/qlib158/vstd5.py
@@ -16,7 +16,7 @@ __alpha_meta__ = {
'theme': ['volume', 'volatility'],
'formula_latex': '\\\\mathrm{ts\\\\_std}(\\\\mathrm{volume}, 5) / \\\\mathrm{volume}',
'columns_required': ['volume'],
- 'universe': ['equity_us', 'equity_cn', 'equity_hk', 'equity_in'],
+ 'universe': ['equity_us', 'equity_cn', 'equity_hk', 'equity_in', 'equity_kr'],
'frequency': ['1d'],
'decay_horizon': 5,
'min_warmup_bars': 5,
diff --git a/agent/src/factors/zoo/qlib158/vstd60.py b/agent/src/factors/zoo/qlib158/vstd60.py
index 24941edaa..6091154c1 100644
--- a/agent/src/factors/zoo/qlib158/vstd60.py
+++ b/agent/src/factors/zoo/qlib158/vstd60.py
@@ -16,7 +16,7 @@ __alpha_meta__ = {
'theme': ['volume', 'volatility'],
'formula_latex': '\\\\mathrm{ts\\\\_std}(\\\\mathrm{volume}, 60) / \\\\mathrm{volume}',
'columns_required': ['volume'],
- 'universe': ['equity_us', 'equity_cn', 'equity_hk', 'equity_in'],
+ 'universe': ['equity_us', 'equity_cn', 'equity_hk', 'equity_in', 'equity_kr'],
'frequency': ['1d'],
'decay_horizon': 60,
'min_warmup_bars': 60,
diff --git a/agent/src/factors/zoo/qlib158/vsumd10.py b/agent/src/factors/zoo/qlib158/vsumd10.py
index f44998168..f470e1e72 100644
--- a/agent/src/factors/zoo/qlib158/vsumd10.py
+++ b/agent/src/factors/zoo/qlib158/vsumd10.py
@@ -16,7 +16,7 @@ __alpha_meta__ = {
'theme': ['volume', 'volatility'],
'formula_latex': '\\\\mathrm{VSUMP}_w - \\\\mathrm{VSUMN}_w',
'columns_required': ['volume'],
- 'universe': ['equity_us', 'equity_cn', 'equity_hk', 'equity_in'],
+ 'universe': ['equity_us', 'equity_cn', 'equity_hk', 'equity_in', 'equity_kr'],
'frequency': ['1d'],
'decay_horizon': 10,
'min_warmup_bars': 10,
diff --git a/agent/src/factors/zoo/qlib158/vsumd20.py b/agent/src/factors/zoo/qlib158/vsumd20.py
index 824bfc86b..1c7d5bfac 100644
--- a/agent/src/factors/zoo/qlib158/vsumd20.py
+++ b/agent/src/factors/zoo/qlib158/vsumd20.py
@@ -16,7 +16,7 @@ __alpha_meta__ = {
'theme': ['volume', 'volatility'],
'formula_latex': '\\\\mathrm{VSUMP}_w - \\\\mathrm{VSUMN}_w',
'columns_required': ['volume'],
- 'universe': ['equity_us', 'equity_cn', 'equity_hk', 'equity_in'],
+ 'universe': ['equity_us', 'equity_cn', 'equity_hk', 'equity_in', 'equity_kr'],
'frequency': ['1d'],
'decay_horizon': 20,
'min_warmup_bars': 20,
diff --git a/agent/src/factors/zoo/qlib158/vsumd30.py b/agent/src/factors/zoo/qlib158/vsumd30.py
index d0d24ff41..47700b05b 100644
--- a/agent/src/factors/zoo/qlib158/vsumd30.py
+++ b/agent/src/factors/zoo/qlib158/vsumd30.py
@@ -16,7 +16,7 @@ __alpha_meta__ = {
'theme': ['volume', 'volatility'],
'formula_latex': '\\\\mathrm{VSUMP}_w - \\\\mathrm{VSUMN}_w',
'columns_required': ['volume'],
- 'universe': ['equity_us', 'equity_cn', 'equity_hk', 'equity_in'],
+ 'universe': ['equity_us', 'equity_cn', 'equity_hk', 'equity_in', 'equity_kr'],
'frequency': ['1d'],
'decay_horizon': 30,
'min_warmup_bars': 30,
diff --git a/agent/src/factors/zoo/qlib158/vsumd5.py b/agent/src/factors/zoo/qlib158/vsumd5.py
index 239ef8b65..ef77c228b 100644
--- a/agent/src/factors/zoo/qlib158/vsumd5.py
+++ b/agent/src/factors/zoo/qlib158/vsumd5.py
@@ -16,7 +16,7 @@ __alpha_meta__ = {
'theme': ['volume', 'volatility'],
'formula_latex': '\\\\mathrm{VSUMP}_w - \\\\mathrm{VSUMN}_w',
'columns_required': ['volume'],
- 'universe': ['equity_us', 'equity_cn', 'equity_hk', 'equity_in'],
+ 'universe': ['equity_us', 'equity_cn', 'equity_hk', 'equity_in', 'equity_kr'],
'frequency': ['1d'],
'decay_horizon': 5,
'min_warmup_bars': 5,
diff --git a/agent/src/factors/zoo/qlib158/vsumd60.py b/agent/src/factors/zoo/qlib158/vsumd60.py
index cd4f8aa14..69868ff59 100644
--- a/agent/src/factors/zoo/qlib158/vsumd60.py
+++ b/agent/src/factors/zoo/qlib158/vsumd60.py
@@ -16,7 +16,7 @@ __alpha_meta__ = {
'theme': ['volume', 'volatility'],
'formula_latex': '\\\\mathrm{VSUMP}_w - \\\\mathrm{VSUMN}_w',
'columns_required': ['volume'],
- 'universe': ['equity_us', 'equity_cn', 'equity_hk', 'equity_in'],
+ 'universe': ['equity_us', 'equity_cn', 'equity_hk', 'equity_in', 'equity_kr'],
'frequency': ['1d'],
'decay_horizon': 60,
'min_warmup_bars': 60,
diff --git a/agent/src/factors/zoo/qlib158/vsumn10.py b/agent/src/factors/zoo/qlib158/vsumn10.py
index f93bc19a0..5ec0808ad 100644
--- a/agent/src/factors/zoo/qlib158/vsumn10.py
+++ b/agent/src/factors/zoo/qlib158/vsumn10.py
@@ -16,7 +16,7 @@ __alpha_meta__ = {
'theme': ['volume', 'volatility'],
'formula_latex': '\\\\sum \\\\max(-\\\\Delta v, 0) / \\\\sum |\\\\Delta v|',
'columns_required': ['volume'],
- 'universe': ['equity_us', 'equity_cn', 'equity_hk', 'equity_in'],
+ 'universe': ['equity_us', 'equity_cn', 'equity_hk', 'equity_in', 'equity_kr'],
'frequency': ['1d'],
'decay_horizon': 10,
'min_warmup_bars': 10,
diff --git a/agent/src/factors/zoo/qlib158/vsumn20.py b/agent/src/factors/zoo/qlib158/vsumn20.py
index 3223150d7..2f7239876 100644
--- a/agent/src/factors/zoo/qlib158/vsumn20.py
+++ b/agent/src/factors/zoo/qlib158/vsumn20.py
@@ -16,7 +16,7 @@ __alpha_meta__ = {
'theme': ['volume', 'volatility'],
'formula_latex': '\\\\sum \\\\max(-\\\\Delta v, 0) / \\\\sum |\\\\Delta v|',
'columns_required': ['volume'],
- 'universe': ['equity_us', 'equity_cn', 'equity_hk', 'equity_in'],
+ 'universe': ['equity_us', 'equity_cn', 'equity_hk', 'equity_in', 'equity_kr'],
'frequency': ['1d'],
'decay_horizon': 20,
'min_warmup_bars': 20,
diff --git a/agent/src/factors/zoo/qlib158/vsumn30.py b/agent/src/factors/zoo/qlib158/vsumn30.py
index 71c7d6f3d..3b3de3fd1 100644
--- a/agent/src/factors/zoo/qlib158/vsumn30.py
+++ b/agent/src/factors/zoo/qlib158/vsumn30.py
@@ -16,7 +16,7 @@ __alpha_meta__ = {
'theme': ['volume', 'volatility'],
'formula_latex': '\\\\sum \\\\max(-\\\\Delta v, 0) / \\\\sum |\\\\Delta v|',
'columns_required': ['volume'],
- 'universe': ['equity_us', 'equity_cn', 'equity_hk', 'equity_in'],
+ 'universe': ['equity_us', 'equity_cn', 'equity_hk', 'equity_in', 'equity_kr'],
'frequency': ['1d'],
'decay_horizon': 30,
'min_warmup_bars': 30,
diff --git a/agent/src/factors/zoo/qlib158/vsumn5.py b/agent/src/factors/zoo/qlib158/vsumn5.py
index a41f954f1..3f1df4c42 100644
--- a/agent/src/factors/zoo/qlib158/vsumn5.py
+++ b/agent/src/factors/zoo/qlib158/vsumn5.py
@@ -16,7 +16,7 @@ __alpha_meta__ = {
'theme': ['volume', 'volatility'],
'formula_latex': '\\\\sum \\\\max(-\\\\Delta v, 0) / \\\\sum |\\\\Delta v|',
'columns_required': ['volume'],
- 'universe': ['equity_us', 'equity_cn', 'equity_hk', 'equity_in'],
+ 'universe': ['equity_us', 'equity_cn', 'equity_hk', 'equity_in', 'equity_kr'],
'frequency': ['1d'],
'decay_horizon': 5,
'min_warmup_bars': 5,
diff --git a/agent/src/factors/zoo/qlib158/vsumn60.py b/agent/src/factors/zoo/qlib158/vsumn60.py
index 461be0d6b..3d599419b 100644
--- a/agent/src/factors/zoo/qlib158/vsumn60.py
+++ b/agent/src/factors/zoo/qlib158/vsumn60.py
@@ -16,7 +16,7 @@ __alpha_meta__ = {
'theme': ['volume', 'volatility'],
'formula_latex': '\\\\sum \\\\max(-\\\\Delta v, 0) / \\\\sum |\\\\Delta v|',
'columns_required': ['volume'],
- 'universe': ['equity_us', 'equity_cn', 'equity_hk', 'equity_in'],
+ 'universe': ['equity_us', 'equity_cn', 'equity_hk', 'equity_in', 'equity_kr'],
'frequency': ['1d'],
'decay_horizon': 60,
'min_warmup_bars': 60,
diff --git a/agent/src/factors/zoo/qlib158/vsump10.py b/agent/src/factors/zoo/qlib158/vsump10.py
index 431302d4b..a6c539909 100644
--- a/agent/src/factors/zoo/qlib158/vsump10.py
+++ b/agent/src/factors/zoo/qlib158/vsump10.py
@@ -16,7 +16,7 @@ __alpha_meta__ = {
'theme': ['volume', 'volatility'],
'formula_latex': '\\\\sum \\\\max(\\\\Delta v, 0) / \\\\sum |\\\\Delta v|',
'columns_required': ['volume'],
- 'universe': ['equity_us', 'equity_cn', 'equity_hk', 'equity_in'],
+ 'universe': ['equity_us', 'equity_cn', 'equity_hk', 'equity_in', 'equity_kr'],
'frequency': ['1d'],
'decay_horizon': 10,
'min_warmup_bars': 10,
diff --git a/agent/src/factors/zoo/qlib158/vsump20.py b/agent/src/factors/zoo/qlib158/vsump20.py
index b883d5448..1ddf5eb14 100644
--- a/agent/src/factors/zoo/qlib158/vsump20.py
+++ b/agent/src/factors/zoo/qlib158/vsump20.py
@@ -16,7 +16,7 @@ __alpha_meta__ = {
'theme': ['volume', 'volatility'],
'formula_latex': '\\\\sum \\\\max(\\\\Delta v, 0) / \\\\sum |\\\\Delta v|',
'columns_required': ['volume'],
- 'universe': ['equity_us', 'equity_cn', 'equity_hk', 'equity_in'],
+ 'universe': ['equity_us', 'equity_cn', 'equity_hk', 'equity_in', 'equity_kr'],
'frequency': ['1d'],
'decay_horizon': 20,
'min_warmup_bars': 20,
diff --git a/agent/src/factors/zoo/qlib158/vsump30.py b/agent/src/factors/zoo/qlib158/vsump30.py
index 45da14757..9b5ea1794 100644
--- a/agent/src/factors/zoo/qlib158/vsump30.py
+++ b/agent/src/factors/zoo/qlib158/vsump30.py
@@ -16,7 +16,7 @@ __alpha_meta__ = {
'theme': ['volume', 'volatility'],
'formula_latex': '\\\\sum \\\\max(\\\\Delta v, 0) / \\\\sum |\\\\Delta v|',
'columns_required': ['volume'],
- 'universe': ['equity_us', 'equity_cn', 'equity_hk', 'equity_in'],
+ 'universe': ['equity_us', 'equity_cn', 'equity_hk', 'equity_in', 'equity_kr'],
'frequency': ['1d'],
'decay_horizon': 30,
'min_warmup_bars': 30,
diff --git a/agent/src/factors/zoo/qlib158/vsump5.py b/agent/src/factors/zoo/qlib158/vsump5.py
index da97f7ab8..2d1bc9819 100644
--- a/agent/src/factors/zoo/qlib158/vsump5.py
+++ b/agent/src/factors/zoo/qlib158/vsump5.py
@@ -16,7 +16,7 @@ __alpha_meta__ = {
'theme': ['volume', 'volatility'],
'formula_latex': '\\\\sum \\\\max(\\\\Delta v, 0) / \\\\sum |\\\\Delta v|',
'columns_required': ['volume'],
- 'universe': ['equity_us', 'equity_cn', 'equity_hk', 'equity_in'],
+ 'universe': ['equity_us', 'equity_cn', 'equity_hk', 'equity_in', 'equity_kr'],
'frequency': ['1d'],
'decay_horizon': 5,
'min_warmup_bars': 5,
diff --git a/agent/src/factors/zoo/qlib158/vsump60.py b/agent/src/factors/zoo/qlib158/vsump60.py
index 792943c13..225e2d8cd 100644
--- a/agent/src/factors/zoo/qlib158/vsump60.py
+++ b/agent/src/factors/zoo/qlib158/vsump60.py
@@ -16,7 +16,7 @@ __alpha_meta__ = {
'theme': ['volume', 'volatility'],
'formula_latex': '\\\\sum \\\\max(\\\\Delta v, 0) / \\\\sum |\\\\Delta v|',
'columns_required': ['volume'],
- 'universe': ['equity_us', 'equity_cn', 'equity_hk', 'equity_in'],
+ 'universe': ['equity_us', 'equity_cn', 'equity_hk', 'equity_in', 'equity_kr'],
'frequency': ['1d'],
'decay_horizon': 60,
'min_warmup_bars': 60,
diff --git a/agent/src/factors/zoo/qlib158/wvma10.py b/agent/src/factors/zoo/qlib158/wvma10.py
index 9578cc3d1..86f2e3459 100644
--- a/agent/src/factors/zoo/qlib158/wvma10.py
+++ b/agent/src/factors/zoo/qlib158/wvma10.py
@@ -16,7 +16,7 @@ __alpha_meta__ = {
'theme': ['volume', 'volatility'],
'formula_latex': '\\\\mathrm{ts\\\\_std}(\\\\mathrm{ret}\\\\cdot v, 10) / \\\\mathrm{ts\\\\_mean}(|\\\\mathrm{ret}|\\\\cdot v, 10)',
'columns_required': ['close', 'volume'],
- 'universe': ['equity_us', 'equity_cn', 'equity_hk', 'equity_in'],
+ 'universe': ['equity_us', 'equity_cn', 'equity_hk', 'equity_in', 'equity_kr'],
'frequency': ['1d'],
'decay_horizon': 10,
'min_warmup_bars': 10,
diff --git a/agent/src/factors/zoo/qlib158/wvma20.py b/agent/src/factors/zoo/qlib158/wvma20.py
index 335a47af1..30d55dc7d 100644
--- a/agent/src/factors/zoo/qlib158/wvma20.py
+++ b/agent/src/factors/zoo/qlib158/wvma20.py
@@ -16,7 +16,7 @@ __alpha_meta__ = {
'theme': ['volume', 'volatility'],
'formula_latex': '\\\\mathrm{ts\\\\_std}(\\\\mathrm{ret}\\\\cdot v, 20) / \\\\mathrm{ts\\\\_mean}(|\\\\mathrm{ret}|\\\\cdot v, 20)',
'columns_required': ['close', 'volume'],
- 'universe': ['equity_us', 'equity_cn', 'equity_hk', 'equity_in'],
+ 'universe': ['equity_us', 'equity_cn', 'equity_hk', 'equity_in', 'equity_kr'],
'frequency': ['1d'],
'decay_horizon': 20,
'min_warmup_bars': 20,
diff --git a/agent/src/factors/zoo/qlib158/wvma30.py b/agent/src/factors/zoo/qlib158/wvma30.py
index 691ead4a2..119d752ff 100644
--- a/agent/src/factors/zoo/qlib158/wvma30.py
+++ b/agent/src/factors/zoo/qlib158/wvma30.py
@@ -16,7 +16,7 @@ __alpha_meta__ = {
'theme': ['volume', 'volatility'],
'formula_latex': '\\\\mathrm{ts\\\\_std}(\\\\mathrm{ret}\\\\cdot v, 30) / \\\\mathrm{ts\\\\_mean}(|\\\\mathrm{ret}|\\\\cdot v, 30)',
'columns_required': ['close', 'volume'],
- 'universe': ['equity_us', 'equity_cn', 'equity_hk', 'equity_in'],
+ 'universe': ['equity_us', 'equity_cn', 'equity_hk', 'equity_in', 'equity_kr'],
'frequency': ['1d'],
'decay_horizon': 30,
'min_warmup_bars': 30,
diff --git a/agent/src/factors/zoo/qlib158/wvma5.py b/agent/src/factors/zoo/qlib158/wvma5.py
index 93056687c..00a59cfa6 100644
--- a/agent/src/factors/zoo/qlib158/wvma5.py
+++ b/agent/src/factors/zoo/qlib158/wvma5.py
@@ -16,7 +16,7 @@ __alpha_meta__ = {
'theme': ['volume', 'volatility'],
'formula_latex': '\\\\mathrm{ts\\\\_std}(\\\\mathrm{ret}\\\\cdot v, 5) / \\\\mathrm{ts\\\\_mean}(|\\\\mathrm{ret}|\\\\cdot v, 5)',
'columns_required': ['close', 'volume'],
- 'universe': ['equity_us', 'equity_cn', 'equity_hk', 'equity_in'],
+ 'universe': ['equity_us', 'equity_cn', 'equity_hk', 'equity_in', 'equity_kr'],
'frequency': ['1d'],
'decay_horizon': 5,
'min_warmup_bars': 5,
diff --git a/agent/src/factors/zoo/qlib158/wvma60.py b/agent/src/factors/zoo/qlib158/wvma60.py
index ccaccba8a..1e641e9f0 100644
--- a/agent/src/factors/zoo/qlib158/wvma60.py
+++ b/agent/src/factors/zoo/qlib158/wvma60.py
@@ -16,7 +16,7 @@ __alpha_meta__ = {
'theme': ['volume', 'volatility'],
'formula_latex': '\\\\mathrm{ts\\\\_std}(\\\\mathrm{ret}\\\\cdot v, 60) / \\\\mathrm{ts\\\\_mean}(|\\\\mathrm{ret}|\\\\cdot v, 60)',
'columns_required': ['close', 'volume'],
- 'universe': ['equity_us', 'equity_cn', 'equity_hk', 'equity_in'],
+ 'universe': ['equity_us', 'equity_cn', 'equity_hk', 'equity_in', 'equity_kr'],
'frequency': ['1d'],
'decay_horizon': 60,
'min_warmup_bars': 60,
diff --git a/agent/src/market_data.py b/agent/src/market_data.py
index 06856d955..1f753cf98 100644
--- a/agent/src/market_data.py
+++ b/agent/src/market_data.py
@@ -32,6 +32,9 @@ _SOURCE_PATTERNS = [
# China-market loaders that cannot resolve them.
(re.compile(r"^[A-Z0-9]+=F$", re.I), "yahoo"),
(re.compile(r"^[A-Z]+=X$", re.I), "yahoo"),
+ # Korea: KOSPI (005930.KS) / KOSDAQ (247540.KQ), 6-digit codes. Served by
+ # pykrx (KRX public data, no auth); registry falls back to Yahoo/yfinance.
+ (re.compile(r"^\d{6}\.(KS|KQ)$", re.I), "pykrx"),
(re.compile(r"^[A-Z]+-USDT$", re.I), "okx"),
(re.compile(r"^[A-Z]+/USDT$", re.I), "ccxt"),
# Forex pairs and metals (EUR/USD, XAU/USD, EURUSD.FX). mt5 is the head of
diff --git a/agent/src/tools/market_data_tool.py b/agent/src/tools/market_data_tool.py
index 5016d6715..896deb0ef 100644
--- a/agent/src/tools/market_data_tool.py
+++ b/agent/src/tools/market_data_tool.py
@@ -55,6 +55,7 @@ class MarketDataTool(BaseTool):
"tiingo",
"fmp",
"mt5",
+ "pykrx",
],
"description": (
"Data source. 'auto' detects from symbol format with fallback. "
@@ -62,10 +63,12 @@ class MarketDataTool(BaseTool):
"Longbridge OpenAPI (requires Longbridge credentials). "
"Free, no key: yfinance/yahoo (US/HK equities), okx/ccxt "
"(crypto), baostock/tencent/eastmoney/sina/akshare/mootdx "
- "(China A-shares), stooq (global EOD). Key-gated REST: tushare "
- "(China A-shares), finnhub/alphavantage/tiingo/fmp (US/global). "
- "mt5: forex/metals from a local MetaTrader 5 terminal (Windows; "
- "e.g. EUR/USD, XAUUSD.FX)."
+ "(China A-shares), stooq (global EOD), pykrx (Korea KRX daily "
+ "bars for <CODE>.KS / <CODE>.KQ; needs the optional pykrx "
+ "package, else Korea falls back to yahoo/yfinance). Key-gated "
+ "REST: tushare (China A-shares), finnhub/alphavantage/tiingo/fmp "
+ "(US/global). mt5: forex/metals from a local MetaTrader 5 "
+ "terminal (Windows; e.g. EUR/USD, XAUUSD.FX)."
),
"default": "auto",
},
diff --git a/agent/tests/factors/test_korea_universe.py b/agent/tests/factors/test_korea_universe.py
new file mode 100644
index 000000000..fa9e5478e
--- /dev/null
+++ b/agent/tests/factors/test_korea_universe.py
@@ -0,0 +1,81 @@
+"""Korea (equity_kr) factor-universe coverage against the bundled zoo.
+
+Verifies that the ``equity_kr`` universe was wired end-to-end:
+ - Alpha101 (OHLCV-generic) and QLib158 (multi-market) factors are listed
+ for ``equity_kr``.
+ - GTJA191 (China-scale, Tushare-specific) is NOT exposed for Korea.
+ - A representative alpha computes cleanly on a synthetic KRX-shape panel
+ whose ``vwap`` is built the Korea way (typical price — pykrx bars carry
+ raw price/volume, no Tushare scaling).
+"""
+
+from __future__ import annotations
+
+import numpy as np
+import pandas as pd
+import pytest
+
+from src.factors.base import vwap
+from src.factors.registry import Registry
+
+
[email protected](scope="module")
+def registry() -> Registry:
+ return Registry()
+
+
+def _korea_panel(n_rows: int = 40, symbols=("005930.KS", "247540.KQ")) -> dict:
+ """Synthetic KRX-shape OHLCV panel; vwap injected as Korea typical price."""
+ rng = np.random.RandomState(7)
+ idx = pd.bdate_range("2024-01-01", periods=n_rows)
+ cols = list(symbols)
+ close = pd.DataFrame(
+ 100.0 + np.cumsum(rng.randn(n_rows, len(cols)), axis=0), index=idx, columns=cols
+ ).abs() + 1.0
+ open_ = close.shift(1).fillna(close.iloc[0])
+ high = pd.DataFrame(
+ np.maximum(close.to_numpy(), open_.to_numpy()) + rng.rand(n_rows, len(cols)),
+ index=idx, columns=cols,
+ )
+ low = (
+ pd.DataFrame(
+ np.minimum(close.to_numpy(), open_.to_numpy()) - rng.rand(n_rows, len(cols)),
+ index=idx, columns=cols,
+ ).abs()
+ + 0.01
+ )
+ volume = pd.DataFrame(
+ rng.randint(1_000, 100_000, size=(n_rows, len(cols))).astype(float),
+ index=idx, columns=cols,
+ )
+ panel = {"open": open_, "high": high, "low": low, "close": close, "volume": volume}
+ panel["vwap"] = vwap(panel, "equity_kr") # typical price; no amount needed
+ return panel
+
+
+def test_alpha101_and_qlib158_listed_for_korea(registry: Registry) -> None:
+ listed = set(registry.list(universe="equity_kr"))
+ assert sum(a.startswith("alpha101_") for a in listed) == 101
+ assert sum(a.startswith("qlib158_") for a in listed) == 154
+
+
+def test_china_scale_gtja191_not_listed_for_korea(registry: Registry) -> None:
+ listed = set(registry.list(universe="equity_kr"))
+ assert not any(a.startswith("gtja191_") for a in listed)
+
+
+def test_korea_vwap_uses_typical_price() -> None:
+ panel = _korea_panel()
+ expected = (panel["open"] + panel["high"] + panel["low"] + panel["close"]) / 4.0
+ pd.testing.assert_frame_equal(panel["vwap"], expected)
+
+
[email protected]("alpha_id", ["alpha101_001", "alpha101_054", "qlib158_kmid"])
+def test_representative_factor_computes_on_korea_panel(
+ registry: Registry, alpha_id: str
+) -> None:
+ listed = set(registry.list(universe="equity_kr"))
+ assert alpha_id in listed
+ out = registry.compute(alpha_id, _korea_panel())
+ assert out.shape[1] == 2 # two KRX symbols
+ assert np.isfinite(out.to_numpy()[~pd.isna(out.to_numpy())]).all()
diff --git a/agent/tests/test_korea_backtest_smoke.py b/agent/tests/test_korea_backtest_smoke.py
new file mode 100644
index 000000000..c182a7cbf
--- /dev/null
+++ b/agent/tests/test_korea_backtest_smoke.py
@@ -0,0 +1,147 @@
+"""End-to-end smoke test: backtest runs on Korean (KRX) symbols.
+
+Drives ``KoreaEquityEngine`` so strategies can run on KOSPI/KOSDAQ data with
+the Korea cost stack. This test feeds KRX-shaped bars through a fake loader +
+trivial long signal and asserts:
+
+ 1. The backtest completes and emits metrics + a run card.
+ 2. Korea trading costs are applied **exactly** — every won of the recorded
+ commission is reproduced from ``kr_brokerage`` / ``kr_tax_sell``, and the
+ final equity satisfies the cash identity. Slippage is set to zero on both
+ engines so a cost-stack regression cannot hide behind a slippage
+ difference (``GlobalEquityEngine`` reads ``slippage_us``, not
+ ``slippage``, so the two engines do NOT share a default).
+
+All data is in-memory; no network access (and no pykrx dependency).
+"""
+
+from __future__ import annotations
+
+from pathlib import Path
+
+import pandas as pd
+import pytest
+
+from backtest.engines.global_equity import GlobalEquityEngine
+from backtest.engines.korea_equity import KoreaEquityEngine, krx_round_down
+
+
+def _krx_bars() -> pd.DataFrame:
+ return pd.DataFrame(
+ {
+ "open": [100.0, 102.0, 104.0, 106.0, 108.0],
+ "high": [101.0, 103.0, 105.0, 107.0, 109.0],
+ "low": [99.0, 101.0, 103.0, 105.0, 107.0],
+ "close": [102.0, 104.0, 106.0, 108.0, 110.0],
+ "volume": [10_000, 10_000, 10_000, 10_000, 10_000],
+ },
+ index=pd.bdate_range("2024-04-01", periods=5),
+ )
+
+
+class _FakeLoader:
+ def __init__(self, code: str, bars: pd.DataFrame) -> None:
+ self._code = code
+ self._bars = bars
+
+ def fetch(self, *args, **kwargs):
+ return {self._code: self._bars.copy()}
+
+
+class _LongSignal:
+ """Allocate fully long to the single instrument every bar."""
+
+ def __init__(self, code: str) -> None:
+ self._code = code
+
+ def generate(self, data_map):
+ idx = data_map[self._code].index
+ return {self._code: pd.Series(1.0, index=idx)}
+
+
+def _run(engine, code: str, run_dir: Path, **config_overrides) -> dict:
+ config = {
+ "codes": [code],
+ "start_date": "2024-04-01",
+ "end_date": "2024-04-30",
+ "source": "auto",
+ "initial_cash": 1_000_000,
+ }
+ config.update(config_overrides)
+ return engine.run_backtest(
+ config, _FakeLoader(code, _krx_bars()), _LongSignal(code), run_dir
+ )
+
+
+def test_korea_backtest_completes_and_emits_run_card(tmp_path: Path) -> None:
+ engine = KoreaEquityEngine({"initial_cash": 1_000_000})
+ metrics = _run(engine, "005930.KS", tmp_path)
+
+ assert metrics # non-empty metrics dict
+ assert (tmp_path / "run_card.json").exists()
+ assert metrics.get("final_value") is not None
+ assert metrics["trade_count"] >= 1
+
+
+def test_korea_costs_are_exact(tmp_path: Path) -> None:
+ """Pin commission + transaction tax to the won, not just 'costs happened'."""
+ engine = KoreaEquityEngine({"initial_cash": 1_000_000, "slippage": 0})
+ metrics = _run(engine, "005930.KS", tmp_path, slippage=0)
+
+ assert len(engine.trades) == 1
+ trade = engine.trades[0]
+ assert trade.size > 0
+ # Zero slippage must leave both fills on the KRX tick grid untouched.
+ assert trade.entry_price == krx_round_down(trade.entry_price)
+ assert trade.exit_price == krx_round_down(trade.exit_price)
+
+ entry_comm = trade.size * trade.entry_price * engine.kr_brokerage
+ exit_comm = trade.size * trade.exit_price * (
+ engine.kr_brokerage + engine.kr_tax_sell
+ )
+ # Buy pays brokerage only; sell pays brokerage + the sell-side tax.
+ assert trade.commission == pytest.approx(entry_comm + exit_comm, abs=1e-6)
+ assert metrics["final_value"] == pytest.approx(
+ 1_000_000 + trade.size * (trade.exit_price - trade.entry_price)
+ - entry_comm - exit_comm,
+ abs=1e-6,
+ )
+
+
+def test_zero_rates_leave_a_costless_run(tmp_path: Path) -> None:
+ """With both rates zeroed the same run must record no cost at all."""
+ engine = KoreaEquityEngine(
+ {"initial_cash": 1_000_000, "slippage": 0, "kr_brokerage": 0, "kr_tax_sell": 0}
+ )
+ metrics = _run(
+ engine, "005930.KS", tmp_path,
+ slippage=0, kr_brokerage=0, kr_tax_sell=0,
+ )
+
+ trade = engine.trades[0]
+ assert trade.commission == pytest.approx(0.0, abs=1e-9)
+ assert metrics["final_value"] == pytest.approx(
+ 1_000_000 + trade.size * (trade.exit_price - trade.entry_price), abs=1e-6
+ )
+
+
+def test_korea_costs_are_applied_vs_zero_commission_us(tmp_path: Path) -> None:
+ """Identical data, signal AND slippage: only Korea's cost stack differs."""
+ kr_engine = KoreaEquityEngine({"initial_cash": 1_000_000, "slippage": 0})
+ us_engine = GlobalEquityEngine(
+ {"initial_cash": 1_000_000, "slippage_us": 0}, market="us"
+ )
+
+ kr_metrics = _run(kr_engine, "005930.KS", tmp_path / "kr", slippage=0)
+ us_metrics = _run(us_engine, "AAPL.US", tmp_path / "us", slippage_us=0)
+
+ # Same fills on both sides, so the gap can only come from Korea's costs.
+ assert kr_engine.trades[0].entry_price == pytest.approx(
+ us_engine.trades[0].entry_price
+ )
+ assert kr_engine.trades[0].exit_price == pytest.approx(
+ us_engine.trades[0].exit_price
+ )
+ assert us_engine.trades[0].commission == pytest.approx(0.0, abs=1e-9)
+ assert kr_engine.trades[0].commission > 0
+ assert kr_metrics["final_value"] < us_metrics["final_value"]
diff --git a/agent/tests/test_korea_equity_engine.py b/agent/tests/test_korea_equity_engine.py
new file mode 100644
index 000000000..a830a0590
--- /dev/null
+++ b/agent/tests/test_korea_equity_engine.py
@@ -0,0 +1,323 @@
+"""Tests for KoreaEquityEngine (KRX: KOSPI / KOSDAQ) market rules.
+
+Validates:
+ - Long-only by construction: allow_short is refused, never mis-modelled
+ - Same-day sell is ALLOWED (no T+1 — unlike China A-share / India delivery)
+ - KRX tick grid (호가가격단위) and the published limit-price arithmetic
+ - ±30% band derived from the PREVIOUS close and compared with the fill price
+ (execution-time safe: no dependence on the decision bar's own close)
+ - 1-share lots
+ - Korea cost stack keyed to the real trade side (bilateral brokerage,
+ sell-side transaction tax)
+ - Engine routing (runner single-market + composite cross-market)
+"""
+
+from __future__ import annotations
+
+import numpy as np
+import pandas as pd
+import pytest
+
+from backtest.engines.korea_equity import (
+ KoreaEquityEngine,
+ krx_price_limits,
+ krx_round_down,
+ krx_round_up,
+ krx_tick_size,
+)
+from backtest.models import Position
+
+
+def _engine(**overrides) -> KoreaEquityEngine:
+ config = {"initial_cash": 10_000_000}
+ config.update(overrides)
+ return KoreaEquityEngine(config)
+
+
+def _bar(close: float = 100.0, pre_close: float | None = None,
+ open_: float | None = None) -> pd.Series:
+ data = {"close": close, "open": close if open_ is None else open_}
+ if pre_close is not None:
+ data["pre_close"] = pre_close
+ return pd.Series(data)
+
+
+def _with_close_panel(engine: KoreaEquityEngine, symbol: str,
+ closes: list[float], bar_idx: int) -> None:
+ """Attach the close panel BaseEngine pre-extracts for a run."""
+ engine._close_arr = np.array([[c] for c in closes], dtype=float)
+ engine._code_to_col = {symbol: 0}
+ engine._bar_idx = bar_idx
+
+
+# ---------------------------------------------------------------------------
+# KRX tick grid (호가가격단위), unified across KOSPI/KOSDAQ since 2023-01-25
+# ---------------------------------------------------------------------------
+
+
+class TestTickGrid:
+ @pytest.mark.parametrize(
+ "price,tick",
+ [
+ (500.0, 1.0),
+ (1_999.0, 1.0),
+ (2_000.0, 5.0), # bands are lower-bound inclusive (이상)
+ (4_999.0, 5.0),
+ (5_000.0, 10.0),
+ (19_999.0, 10.0),
+ (20_000.0, 50.0),
+ (49_999.0, 50.0),
+ (50_000.0, 100.0),
+ (199_999.0, 100.0),
+ (200_000.0, 500.0),
+ (499_999.0, 500.0),
+ (500_000.0, 1_000.0),
+ (2_987_000.0, 1_000.0),
+ ],
+ )
+ def test_tick_bands(self, price: float, tick: float) -> None:
+ assert krx_tick_size(price) == tick
+
+ def test_round_down_and_up(self) -> None:
+ assert krx_round_down(12_345.0) == 12_340.0 # tick 10
+ assert krx_round_up(12_341.0) == 12_350.0
+ assert krx_round_up(300_100.0) == 300_500.0 # tick 500
+ assert krx_round_down(300_100.0) == 300_000.0
+
+ def test_already_on_grid_is_unchanged(self) -> None:
+ assert krx_round_up(300_000.0) == 300_000.0
+ assert krx_round_down(300_000.0) == 300_000.0
+
+ def test_round_up_never_returns_zero(self) -> None:
+ assert krx_round_up(0.4) == 1.0
+
+ @pytest.mark.parametrize(
+ "base,upper,lower",
+ [
+ # KRX's own worked examples for the ±30% band.
+ (9_980.0, 12_970.0, 6_990.0),
+ (9_940.0, 12_920.0, 6_960.0),
+ ],
+ )
+ def test_limit_prices_match_krx_worked_examples(
+ self, base: float, upper: float, lower: float
+ ) -> None:
+ assert krx_price_limits(base, 0.30) == (upper, lower)
+
+ def test_limit_prices_stay_inside_the_band(self) -> None:
+ """Truncation must never widen the band beyond ±30%."""
+ for base in (1_000.0, 4_500.0, 33_300.0, 190_000.0, 480_000.0, 750_000.0):
+ upper, lower = krx_price_limits(base, 0.30)
+ assert upper <= base * 1.30 + 1e-9
+ assert lower >= base * 0.70 - 1e-9
+ assert krx_round_down(upper) == upper
+ assert krx_round_down(lower) == lower
+
+
+# ---------------------------------------------------------------------------
+# can_execute: shorting, same-day sell, price limits
+# ---------------------------------------------------------------------------
+
+
+class TestCanExecute:
+ def test_long_allowed(self) -> None:
+ assert _engine().can_execute("005930.KS", 1, _bar()) is True
+
+ def test_short_always_blocked(self) -> None:
+ assert _engine().can_execute("005930.KS", -1, _bar()) is False
+
+ def test_allow_short_is_refused_not_simulated(self) -> None:
+ """KRX covered-short / uptick rules are unmodelled — refuse loudly."""
+ with pytest.raises(ValueError, match="long-only"):
+ _engine(allow_short=True)
+
+ def test_same_day_sell_allowed(self) -> None:
+ """KRX permits same-day round trips — no T+1 interception."""
+ engine = _engine()
+ ts = pd.Timestamp("2024-04-01")
+ engine.positions["005930.KS"] = Position(
+ symbol="005930.KS", direction=1, size=10, entry_price=100.0, entry_time=ts,
+ )
+ bar = _bar()
+ bar.name = ts # same date as entry -> still sellable on KRX
+ assert engine.can_execute("005930.KS", 0, bar) is True
+
+ def test_limit_up_blocks_buy(self) -> None:
+ # pre_close 10,000 -> upper limit 13,000; opening there is locked (상한가).
+ bar = _bar(close=13_000.0, pre_close=10_000.0, open_=13_000.0)
+ assert _engine(slippage=0).can_execute("005930.KS", 1, bar) is False
+
+ def test_limit_down_blocks_sell(self) -> None:
+ # pre_close 10,000 -> lower limit 7,000; opening there is locked (하한가).
+ bar = _bar(close=7_000.0, pre_close=10_000.0, open_=7_000.0)
+ assert _engine(slippage=0).can_execute("005930.KS", 0, bar) is False
+
+ def test_slippage_that_crosses_the_limit_blocks_the_buy(self) -> None:
+ """The check is on the FILL price, so adverse slippage can breach it."""
+ bar = _bar(close=12_990.0, pre_close=10_000.0, open_=12_990.0)
+ assert _engine(slippage=0).can_execute("005930.KS", 1, bar) is True
+ # +0.1% slippage rounds the fill to 13,000 = the limit price.
+ assert _engine(slippage=0.001).can_execute("005930.KS", 1, bar) is False
+
+ def test_within_band_allows_both_sides(self) -> None:
+ bar = _bar(close=10_500.0, pre_close=10_000.0)
+ engine = _engine()
+ assert engine.can_execute("005930.KS", 1, bar) is True
+ assert engine.can_execute("005930.KS", 0, bar) is True
+
+ def test_limit_disabled_allows_trade_at_band(self) -> None:
+ engine = _engine(price_limit=0)
+ bar = _bar(close=13_000.0, pre_close=10_000.0)
+ assert engine.can_execute("005930.KS", 1, bar) is True
+
+ def test_current_bar_close_does_not_drive_the_check(self) -> None:
+ """Regression: a limit-up CLOSE must not block a fill at a normal open.
+
+ The engine fills at this bar's open, which is known before the close, so
+ keying the guard to the close would be lookahead.
+ """
+ bar = _bar(close=13_000.0, pre_close=10_000.0, open_=10_000.0)
+ assert _engine().can_execute("005930.KS", 1, bar) is True
+
+ def test_base_price_from_close_panel_when_no_pre_close(self) -> None:
+ """pykrx/Yahoo bars carry OHLCV only — use the prior close panel row."""
+ engine = _engine(slippage=0)
+ _with_close_panel(engine, "005930.KS", [10_000.0, 13_000.0], bar_idx=1)
+ bar = _bar(close=13_000.0, open_=13_000.0)
+ assert engine.can_execute("005930.KS", 1, bar) is False
+ assert engine.can_execute("005930.KS", 0, bar) is True
+
+ def test_first_bar_without_history_is_permitted(self) -> None:
+ engine = _engine()
+ _with_close_panel(engine, "005930.KS", [10_000.0], bar_idx=0)
+ assert engine.can_execute("005930.KS", 1, _bar(close=10_000.0)) is True
+
+ def test_missing_base_price_warns_once(self, caplog) -> None:
+ engine = _engine()
+ with caplog.at_level("WARNING"):
+ assert engine.can_execute("005930.KS", 1, _bar()) is True
+ assert engine.can_execute("005930.KS", 1, _bar()) is True
+ assert caplog.text.count("limit check is inactive") == 1
+
+ def test_off_grid_base_price_is_rounded_up(self) -> None:
+ """Adjusted (Naver-rebased) closes need not sit on a tick."""
+ engine = _engine(slippage=0)
+ # 9,996 rounds up to 10,000 (절상) -> upper limit 13,000.
+ bar = _bar(close=13_000.0, pre_close=9_996.0, open_=13_000.0)
+ assert engine.can_execute("005930.KS", 1, bar) is False
+
+
+# ---------------------------------------------------------------------------
+# round_size: 1-share lots
+# ---------------------------------------------------------------------------
+
+
+class TestRoundSize:
+ def test_one_share_lots(self) -> None:
+ engine = _engine()
+ assert engine.round_size(10.9, 100.0) == 10.0
+ assert engine.round_size(0.4, 100.0) == 0.0
+ assert engine.round_size(-3.0, 100.0) == 0.0
+
+
+# ---------------------------------------------------------------------------
+# calc_commission: Korea cost stack, keyed to the real trade side
+# ---------------------------------------------------------------------------
+
+
+class TestCommission:
+ def test_buy_carries_brokerage_only(self) -> None:
+ engine = _engine()
+ size, price = 10, 100_000.0
+ comm = engine.calc_commission(size, price, 1, is_open=True)
+ assert comm == pytest.approx(size * price * engine.kr_brokerage, abs=1e-9)
+
+ def test_sell_adds_transaction_tax(self) -> None:
+ engine = _engine()
+ size, price = 10, 100_000.0
+ notional = size * price
+ comm = engine.calc_commission(size, price, 1, is_open=False)
+ expected = notional * (engine.kr_brokerage + engine.kr_tax_sell)
+ assert comm == pytest.approx(expected, abs=1e-9)
+
+ def test_default_sell_tax_is_the_2026_rate(self) -> None:
+ # 0.20% aggregate sell-side rate from 2026-01-01 on both boards.
+ assert _engine().kr_tax_sell == pytest.approx(0.0020)
+
+ def test_short_open_is_the_taxed_leg_not_the_cover(self) -> None:
+ """Tax follows the trade side, so a short book taxes the OPEN."""
+ engine = _engine()
+ notional = 10 * 100_000.0
+ short_open = engine.calc_commission(10, 100_000.0, -1, is_open=True)
+ cover = engine.calc_commission(10, 100_000.0, -1, is_open=False)
+ assert short_open == pytest.approx(
+ notional * (engine.kr_brokerage + engine.kr_tax_sell), abs=1e-9
+ )
+ assert cover == pytest.approx(notional * engine.kr_brokerage, abs=1e-9)
+
+ def test_rates_are_config_overridable(self) -> None:
+ engine = _engine(kr_brokerage=0.0, kr_tax_sell=0.001) # e.g. KONEX
+ comm = engine.calc_commission(10, 100_000.0, 1, is_open=False)
+ assert comm == pytest.approx(10 * 100_000.0 * 0.001, abs=1e-9)
+
+
+# ---------------------------------------------------------------------------
+# apply_slippage + leverage
+# ---------------------------------------------------------------------------
+
+
+class TestSlippageAndLeverage:
+ def test_buy_slippage_rounds_up_to_a_valid_tick(self) -> None:
+ # 100,000 x 1.001 = 100,100 -> already a multiple of the 100 tick.
+ assert _engine().apply_slippage(100_000.0, 1) == pytest.approx(100_100.0)
+ # 10,000 x 1.001 = 10,010 -> tick 10, on grid.
+ assert _engine().apply_slippage(10_000.0, 1) == pytest.approx(10_010.0)
+ # 3,000 x 1.001 = 3,003 -> tick 5 -> next valid ask is 3,005.
+ assert _engine().apply_slippage(3_000.0, 1) == pytest.approx(3_005.0)
+
+ def test_sell_slippage_rounds_down_to_a_valid_tick(self) -> None:
+ # 3,000 x 0.999 = 2,997 -> tick 5 -> next valid bid is 2,995.
+ assert _engine().apply_slippage(3_000.0, -1) == pytest.approx(2_995.0)
+
+ def test_zero_slippage_keeps_an_on_grid_price(self) -> None:
+ engine = _engine(slippage=0)
+ assert engine.apply_slippage(300_000.0, 1) == pytest.approx(300_000.0)
+ assert engine.apply_slippage(300_000.0, -1) == pytest.approx(300_000.0)
+
+ def test_sell_price_never_collapses_to_zero(self) -> None:
+ assert _engine(slippage=0.9).apply_slippage(1.0, -1) == pytest.approx(1.0)
+
+ def test_no_leverage(self) -> None:
+ # Cash equity is forced to 1.0 leverage regardless of config input.
+ assert _engine(leverage=5.0).default_leverage == 1.0
+
+
+# ---------------------------------------------------------------------------
+# Engine routing
+# ---------------------------------------------------------------------------
+
+
+class TestRouting:
+ def test_single_market_korea_routes_to_korea_engine(self) -> None:
+ from backtest.runner import _create_market_engine
+
+ engine = _create_market_engine("auto", {"initial_cash": 100_000}, ["005930.KS"])
+ assert isinstance(engine, KoreaEquityEngine)
+
+ def test_cross_market_with_korea_builds_korea_subengine(self) -> None:
+ from backtest.engines.composite import _build_rule_engines
+
+ engines = _build_rule_engines(
+ {"initial_cash": 100_000}, ["005930.KS", "AAPL.US"]
+ )
+ assert isinstance(engines["kr_equity"], KoreaEquityEngine)
+
+ def test_cross_market_short_config_fails_loudly(self) -> None:
+ """A shared allow_short config must not yield a silently long-only KRX leg."""
+ from backtest.engines.composite import _build_rule_engines
+
+ with pytest.raises(ValueError, match="long-only"):
+ _build_rule_engines(
+ {"initial_cash": 100_000, "allow_short": True},
+ ["005930.KS", "BTC-USDT"],
+ )
diff --git a/agent/tests/test_market_detection.py b/agent/tests/test_market_detection.py
index 2685dcdcd..6e80311d7 100644
--- a/agent/tests/test_market_detection.py
+++ b/agent/tests/test_market_detection.py
@@ -56,6 +56,9 @@ class TestDetectMarket:
("M&M.NS", "india_equity"), # ampersand
("BAJAJ-AUTO.NS", "india_equity"), # hyphen
("500325.BO", "india_equity"), # numeric BSE scrip code
+ # Korea equity (KRX)
+ ("005930.KS", "kr_equity"), # KOSPI
+ ("247540.KQ", "kr_equity"), # KOSDAQ
# Crypto
("BTC-USDT", "crypto"),
("ETH-USDT", "crypto"),
@@ -101,6 +104,8 @@ class TestDetectSource:
("0700.HK", "yfinance"),
("RELIANCE.NS", "yahoo"),
("500325.BO", "yahoo"),
+ ("005930.KS", "pykrx"),
+ ("247540.KQ", "pykrx"),
("BTC-USDT", "okx"),
("IF2406.CFFEX", "tushare"),
("EUR/USD", "akshare"),
diff --git a/agent/tests/test_pykrx_loader.py b/agent/tests/test_pykrx_loader.py
new file mode 100644
index 000000000..1dd63c752
--- /dev/null
+++ b/agent/tests/test_pykrx_loader.py
@@ -0,0 +1,253 @@
+"""Tests for pykrx_loader: symbol mapping, interval contract, normalization.
+
+Unit-level only — no network access and no real ``pykrx`` dependency: the
+normalization path is exercised through ``_normalize`` with synthetic
+pykrx-shaped frames (Korean column names, date index), and ``_fetch_one`` is
+driven through a fake ``pykrx.stock`` module injected into ``sys.modules``.
+
+A live canary against the real package/endpoint lives in
+``test_pykrx_live_canary`` and is skipped unless ``VIBE_TRADING_LIVE_PYKRX=1``,
+because mocked tests cannot see upstream login-policy or endpoint changes.
+"""
+
+from __future__ import annotations
+
+import os
+import sys
+import types
+
+import pandas as pd
+import pytest
+
+from backtest.loaders import pykrx_loader as mod
+from backtest.loaders.pykrx_loader import DataLoader, _normalize, map_symbol
+
+
+class TestMapSymbol:
+ """``005930.KS`` / ``247540.KQ`` -> bare 6-digit pykrx ticker."""
+
+ def test_kospi_suffix_stripped(self) -> None:
+ assert map_symbol("005930.KS") == "005930"
+
+ def test_kosdaq_suffix_stripped(self) -> None:
+ assert map_symbol("247540.KQ") == "247540"
+
+ def test_case_and_whitespace(self) -> None:
+ assert map_symbol(" 005930.ks ") == "005930"
+
+
+def _pykrx_frame() -> pd.DataFrame:
+ """Synthetic frame in pykrx's native shape (Korean columns, date index)."""
+ idx = pd.to_datetime(["2024-04-02", "2024-04-01"]) # deliberately unsorted
+ return pd.DataFrame(
+ {
+ "시가": [102.0, 100.0],
+ "고가": [103.0, 101.0],
+ "저가": [101.0, 99.0],
+ "종가": [102.5, 100.5],
+ "거래량": [20_000, 10_000],
+ "등락률": [1.99, 0.5], # extra pykrx column: must be dropped
+ },
+ index=idx,
+ )
+
+
+class TestNormalize:
+ def test_renames_sorts_and_selects_ohlcv(self) -> None:
+ out = _normalize(_pykrx_frame())
+ assert out is not None
+ assert list(out.columns) == ["open", "high", "low", "close", "volume"]
+ assert out.index.name == "trade_date"
+ assert out.index.is_monotonic_increasing
+ assert out["close"].iloc[-1] == 102.5
+ assert all(dtype.kind == "f" for dtype in out.dtypes)
+
+ def test_none_and_empty_input(self) -> None:
+ assert _normalize(None) is None
+ assert _normalize(pd.DataFrame()) is None
+
+ def test_missing_columns_rejected(self) -> None:
+ frame = _pykrx_frame().drop(columns=["종가"])
+ assert _normalize(frame) is None
+
+ def test_all_nan_price_rows_dropped(self) -> None:
+ frame = _pykrx_frame()
+ frame.loc[:, ["시가", "고가", "저가", "종가"]] = float("nan")
+ assert _normalize(frame) is None
+
+
+class _FakeStock:
+ """Stand-in for ``pykrx.stock`` recording every OHLCV request."""
+
+ def __init__(self) -> None:
+ self.calls: list[dict] = []
+
+ def get_market_ohlcv_by_date(self, fromdate, todate, ticker, **kwargs):
+ self.calls.append(
+ {"fromdate": fromdate, "todate": todate, "ticker": ticker, **kwargs}
+ )
+ return _pykrx_frame()
+
+
+def fake_pykrx(monkeypatch: pytest.MonkeyPatch) -> _FakeStock:
+ """Inject a fake ``pykrx`` package and neutralise the request throttle."""
+ stock = _FakeStock()
+ package = types.ModuleType("pykrx")
+ package.stock = stock # type: ignore[attr-defined]
+ monkeypatch.setitem(sys.modules, "pykrx", package)
+ monkeypatch.setitem(sys.modules, "pykrx.stock", stock)
+ monkeypatch.setattr(mod, "_min_interval", lambda: 0.0)
+ return stock
+
+
+class TestFetchContract:
+ def test_daily_fetch_passes_bare_ticker_and_adjusted_flag(
+ self, fake_pykrx: _FakeStock
+ ) -> None:
+ out = DataLoader().fetch(["005930.KS"], "2024-04-01", "2024-04-30")
+ assert list(out) == ["005930.KS"]
+ assert list(out["005930.KS"].columns) == [
+ "open", "high", "low", "close", "volume",
+ ]
+ call = fake_pykrx.calls[0]
+ assert call["ticker"] == "005930"
+ assert (call["fromdate"], call["todate"]) == ("20240401", "20240430")
+ # Naver-backed adjusted path is requested explicitly, never inherited.
+ assert call["adjusted"] is True
+
+ @pytest.mark.parametrize("interval", ["1D", "1d", "d", "day", "daily"])
+ def test_daily_aliases_accepted(
+ self, fake_pykrx: _FakeStock, interval: str
+ ) -> None:
+ out = DataLoader().fetch(
+ ["005930.KS"], "2024-04-01", "2024-04-30", interval=interval
+ )
+ assert list(out) == ["005930.KS"]
+
+ @pytest.mark.parametrize("interval", ["1m", "5m", "30m", "1H", "4h", "1W"])
+ def test_unsupported_interval_does_not_silently_fetch_daily(
+ self, fake_pykrx: _FakeStock, interval: str
+ ) -> None:
+ """A 1m/1H/4H request must fall through to another source, not day bars."""
+ assert DataLoader().fetch(
+ ["005930.KS"], "2024-04-01", "2024-04-30", interval=interval
+ ) == {}
+ assert fake_pykrx.calls == []
+
+ def test_one_bad_symbol_does_not_abort_the_batch(
+ self, monkeypatch: pytest.MonkeyPatch, fake_pykrx: _FakeStock
+ ) -> None:
+ def _boom(fromdate, todate, ticker, **kwargs):
+ if ticker == "000000":
+ raise RuntimeError("delisted")
+ return _pykrx_frame()
+
+ monkeypatch.setattr(fake_pykrx, "get_market_ohlcv_by_date", _boom)
+ out = DataLoader().fetch(
+ ["000000.KQ", "005930.KS"], "2024-04-01", "2024-04-30"
+ )
+ assert list(out) == ["005930.KS"]
+
+
+class TestThrottle:
+ def test_requests_are_spaced_through_the_shared_gate(
+ self, monkeypatch: pytest.MonkeyPatch, fake_pykrx: _FakeStock
+ ) -> None:
+ """Spacing must go through the lock-protected HostThrottle, not a global."""
+ waits: list[tuple[str, float]] = []
+ monkeypatch.setattr(
+ mod._THROTTLE, "wait", lambda bucket, interval: waits.append((bucket, interval))
+ )
+ monkeypatch.setattr(mod, "_min_interval", lambda: 1.0)
+ DataLoader().fetch(["005930.KS", "247540.KQ"], "2024-04-01", "2024-04-30")
+ assert waits == [("pykrx", 1.0), ("pykrx", 1.0)]
+
+ def test_default_interval_respects_upstream_guidance(self) -> None:
+ # pykrx's README asks for ~1s between bulk requests.
+ assert mod._DEFAULT_MIN_INTERVAL_S >= 1.0
+ assert mod._min_interval() >= 1.0
+
+
+class TestProvenance:
+ def test_unavailable_pykrx_is_not_reported_as_the_source(
+ self, monkeypatch: pytest.MonkeyPatch
+ ) -> None:
+ """A run card must name the loader that served, never the one requested.
+
+ With the optional package missing, the kr_equity chain resolves to
+ Yahoo; recording ``pykrx`` would claim data pykrx never returned.
+ """
+ from backtest import runner
+ from backtest.loaders import yahoo_loader
+
+ frame = pd.DataFrame(
+ {"open": [100.0], "high": [101.0], "low": [99.0],
+ "close": [100.5], "volume": [1_000.0]},
+ index=pd.DatetimeIndex([pd.Timestamp("2024-04-01")], name="trade_date"),
+ )
+ monkeypatch.setattr(DataLoader, "is_available", lambda self: False)
+ monkeypatch.setattr(
+ yahoo_loader.DataLoader,
+ "fetch",
+ lambda self, codes, start, end, **kw: {c: frame.copy() for c in codes},
+ )
+
+ result = runner.fetch_data_map(
+ {
+ "codes": ["005930.KS"],
+ "start_date": "2024-04-01",
+ "end_date": "2024-04-30",
+ "source": "pykrx",
+ }
+ )
+ assert list(result.data_map) == ["005930.KS"]
+ assert result.effective_sources == ["yahoo"]
+
+ def test_auto_routing_reports_the_loader_that_served(
+ self, monkeypatch: pytest.MonkeyPatch
+ ) -> None:
+ """Same guarantee on the ``source="auto"`` path (symbol-pattern head)."""
+ from backtest import runner
+ from backtest.loaders import yahoo_loader
+
+ frame = pd.DataFrame(
+ {"open": [100.0], "high": [101.0], "low": [99.0],
+ "close": [100.5], "volume": [1_000.0]},
+ index=pd.DatetimeIndex([pd.Timestamp("2024-04-01")], name="trade_date"),
+ )
+ monkeypatch.setattr(DataLoader, "is_available", lambda self: False)
+ monkeypatch.setattr(
+ yahoo_loader.DataLoader,
+ "fetch",
+ lambda self, codes, start, end, **kw: {c: frame.copy() for c in codes},
+ )
+
+ result = runner.fetch_data_map(
+ {
+ "codes": ["005930.KS"],
+ "start_date": "2024-04-01",
+ "end_date": "2024-04-30",
+ "source": "auto",
+ }
+ )
+ # _detect_source maps .KS -> pykrx, which is exactly the stale guess.
+ assert runner._detect_source("005930.KS") == "pykrx"
+ assert result.effective_sources == ["yahoo"]
+
+
+_skip_live = os.getenv("VIBE_TRADING_LIVE_PYKRX", "") != "1"
+
+
+ _skip_live,
+ reason="live canary: set VIBE_TRADING_LIVE_PYKRX=1 (needs pykrx + network)",
+)
+def test_pykrx_live_canary() -> None:
+ """Opt-in: real pykrx call, so upstream endpoint/login drift is detectable."""
+ pytest.importorskip("pykrx")
+ out = DataLoader().fetch(["005930.KS"], "2026-07-01", "2026-07-10")
+ frame = out.get("005930.KS")
+ assert frame is not None and not frame.empty
+ assert list(frame.columns) == ["open", "high", "low", "close", "volume"]
+ assert (frame["high"] >= frame["low"]).all()
diff --git a/agent/tests/test_registry.py b/agent/tests/test_registry.py
index 0879baad3..50aeccdc5 100644
--- a/agent/tests/test_registry.py
+++ b/agent/tests/test_registry.py
@@ -132,7 +132,7 @@ class TestProtocol:
class TestFallbackChains:
def test_all_expected_markets_present(self) -> None:
- expected = {"a_share", "us_equity", "hk_equity", "india_equity", "crypto", "futures", "fund", "macro", "forex"}
+ expected = {"a_share", "us_equity", "hk_equity", "india_equity", "kr_equity", "crypto", "futures", "fund", "macro", "forex"}
assert expected == set(FALLBACK_CHAINS.keys())
def test_chains_are_non_empty(self) -> None:
diff --git a/agent/tests/test_yahoo_loader.py b/agent/tests/test_yahoo_loader.py
index cc63e83a8..fc4949acf 100644
--- a/agent/tests/test_yahoo_loader.py
+++ b/agent/tests/test_yahoo_loader.py
@@ -307,6 +307,8 @@ class TestLoaderMetadata:
def test_name_and_markets(self):
loader = DataLoader()
assert loader.name == "yahoo"
- assert loader.markets == {"us_equity", "hk_equity", "india_equity"}
+ assert loader.markets == {
+ "us_equity", "hk_equity", "india_equity", "kr_equity",
+ }
assert loader.requires_auth is False
assert loader.is_available() is True
diff --git a/frontend/src/i18n/locales/ar.json b/frontend/src/i18n/locales/ar.json
index 072f57876..61a8cc9e8 100644
--- a/frontend/src/i18n/locales/ar.json
+++ b/frontend/src/i18n/locales/ar.json
@@ -699,6 +699,8 @@
"equity_cn": "أسهم الصين A",
"equity_us": "أسهم أمريكية",
"equity_hk": "أسهم هونغ كونغ",
+ "equity_in": "أسهم هندية",
+ "equity_kr": "أسهم كورية",
"crypto": "عملات رقمية",
"futures": "عقود آجلة"
},
diff --git a/frontend/src/i18n/locales/en.json b/frontend/src/i18n/locales/en.json
index 354dfe113..611fb312b 100644
--- a/frontend/src/i18n/locales/en.json
+++ b/frontend/src/i18n/locales/en.json
@@ -704,6 +704,8 @@
"equity_cn": "China A-Shares",
"equity_us": "US Equities",
"equity_hk": "HK Equities",
+ "equity_in": "India Equities",
+ "equity_kr": "Korea Equities",
"crypto": "Crypto",
"futures": "Futures"
},
diff --git a/frontend/src/i18n/locales/ja.json b/frontend/src/i18n/locales/ja.json
index b2468ddc5..7c45f316b 100644
--- a/frontend/src/i18n/locales/ja.json
+++ b/frontend/src/i18n/locales/ja.json
@@ -699,6 +699,8 @@
"equity_cn": "中国 A 株",
"equity_us": "米国株式",
"equity_hk": "香港株式",
+ "equity_in": "インド株式",
+ "equity_kr": "韓国株式",
"crypto": "暗号資産",
"futures": "先物"
},
diff --git a/frontend/src/i18n/locales/ko.json b/frontend/src/i18n/locales/ko.json
index 0cce6e5ad..fc0c3fa48 100644
--- a/frontend/src/i18n/locales/ko.json
+++ b/frontend/src/i18n/locales/ko.json
@@ -699,6 +699,8 @@
"equity_cn": "중국 A주",
"equity_us": "미국 주식",
"equity_hk": "홍콩 주식",
+ "equity_in": "인도 주식",
+ "equity_kr": "한국 주식",
"crypto": "암호화폐",
"futures": "선물"
},
diff --git a/frontend/src/i18n/locales/zh-CN.json b/frontend/src/i18n/locales/zh-CN.json
index 5bdbb8969..0c47abc72 100644
--- a/frontend/src/i18n/locales/zh-CN.json
+++ b/frontend/src/i18n/locales/zh-CN.json
@@ -699,6 +699,8 @@
"equity_cn": "A 股",
"equity_us": "美股",
"equity_hk": "港股",
+ "equity_in": "印度股票",
+ "equity_kr": "韩国股票",
"crypto": "加密货币",
"futures": "期货"
},
diff --git a/frontend/src/pages/AlphaZoo.tsx b/frontend/src/pages/AlphaZoo.tsx
index b36cd3899..aae6de88b 100644
--- a/frontend/src/pages/AlphaZoo.tsx
+++ b/frontend/src/pages/AlphaZoo.tsx
@@ -74,12 +74,35 @@ const ZOO_CARDS: ZooCard[] = [
},
];
+// Benchmarkable data universes (bench + compare): each one needs a panel loader
+// on the backend, so there is no Korea/India entry — the KRX factor capability
+// is a metadata universe, not a benchmark universe.
const UNIVERSE_OPTIONS = [
{ value: "csi300" },
{ value: "sp500" },
{ value: "btc-usdt" },
];
+// Metadata universe -> the benchmark universe whose panel represents it. Markets
+// without a panel (equity_in, equity_kr, futures) are intentionally absent.
+const BENCH_UNIVERSE_FOR_METADATA: Record<string, string> = {
+ equity_cn: "csi300",
+ equity_us: "sp500",
+ crypto: "btc-usdt",
+};
+
+// Factor-metadata universes for the browse filter; GET /alpha/list filters on
+// these directly (they are the values shown in each alpha's "universe" column).
+const FILTER_UNIVERSE_OPTIONS = [
+ { value: "equity_us" },
+ { value: "equity_cn" },
+ { value: "equity_hk" },
+ { value: "equity_in" },
+ { value: "equity_kr" },
+ { value: "crypto" },
+ { value: "futures" },
+];
+
const PAGE_SIZE = 50;
/* ---------- Helpers ---------- */
@@ -307,7 +330,7 @@ function BrowseView() {
className="w-full px-3 py-2 rounded-lg border border-border/60 bg-background text-sm focus:outline-none focus:ring-2 focus:ring-primary/30"
>
<option value="">{i18n.t("alphaZoo.allUniverses")}</option>
- {UNIVERSE_OPTIONS.map((u) => (
+ {FILTER_UNIVERSE_OPTIONS.map((u) => (
<option key={u.value} value={u.value}>
{i18n.t("alphaZoo.universeOption." + u.value as any)}
</option>
@@ -500,12 +523,18 @@ function DetailView({ alphaId }: DetailProps) {
const meta = a.meta || {};
const formulaLatex = (meta["formula_latex"] as string | undefined) || "";
const nickname = (meta["nickname"] as string | undefined) || "";
- const firstUniverse = ((meta["universe"] as string[] | undefined) || [])[0] || "";
+ // An alpha's metadata universes (equity_us, equity_kr, ...) are not bench
+ // universes; only the three names with panel loaders are. Translate, and drop
+ // the prefill when the alpha's markets have no benchmark panel (Korea, India)
+ // rather than handing BenchView a value its selector cannot hold.
+ const benchUniverse = (((meta["universe"] as string[] | undefined) || [])
+ .map((u) => BENCH_UNIVERSE_FOR_METADATA[u])
+ .find(Boolean)) || "";
// Keep period in sync with the BenchView form default so the prefilled
// form values match what users see if they click "Run bench" from here.
- const benchHref = firstUniverse
- ? `/alpha-zoo/bench?zoo=${encodeURIComponent(a.zoo)}&universe=${encodeURIComponent(firstUniverse)}&period=2020-2025`
+ const benchHref = benchUniverse
+ ? `/alpha-zoo/bench?zoo=${encodeURIComponent(a.zoo)}&universe=${encodeURIComponent(benchUniverse)}&period=2020-2025`
: `/alpha-zoo/bench?zoo=${encodeURIComponent(a.zoo)}&period=2020-2025`;
return (
diff --git a/pyproject.toml b/pyproject.toml
index e6f533070..1df17edc3 100644
--- a/pyproject.toml
+++ b/pyproject.toml
@@ -121,6 +121,11 @@ openbb = [
# when this import succeeds, so a base install stays unaffected.
"openbb-ai>=2.0.0,<3",
]
+krx = [
+ # Free, no-auth Korea (KRX: KOSPI/KOSDAQ) EOD OHLCV. Without this extra
+ # the kr_equity chain falls back to yahoo/yfinance (.KS/.KQ suffixes).
+ "pykrx>=1.0.45",
+]
ashare = [
# Free, no-auth A-share source over BaoStock's TCP protocol; bypasses the
# HTTP CDN IP blocks that affect eastmoney-backed sources. The Tencent