feat: enforce overseas buy guard with USD buffer threshold (TASK-V3-014)

This commit is contained in:
agentson
2026-02-27 00:50:12 +09:00
parent a93a5c616b
commit 4d9f3e2cfc
3 changed files with 127 additions and 0 deletions

View File

@@ -59,6 +59,7 @@ class Settings(BaseSettings):
# KIS VTS overseas balance API returns errors for most accounts.
# This value is used as a fallback when the balance API returns 0 in paper mode.
PAPER_OVERSEAS_CASH: float = Field(default=50000.0, ge=0.0)
USD_BUFFER_MIN: float = Field(default=1000.0, ge=0.0)
# Trading frequency mode (daily = batch API calls, realtime = per-stock calls)
TRADE_MODE: str = Field(default="daily", pattern="^(daily|realtime)$")