File size: 7,909 Bytes
7ff93da
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
# -*- coding: utf-8 -*-
"""參數的繁體中文語意標籤,供 think 使用(避免 CoT 混入英文 schema 描述)。"""

PARAM_ZH = {
    "twse_quote_lookup": {"symbol": "股票代號", "date": "交易日期", "market": "市場別"},
    "stock_trade_cost": {"price": "每股成交價", "shares": "股數", "side": "買賣方向",
                         "discount": "手續費折扣倍數", "day_trade": "是否為現股當沖"},
    "margin_trading_calc": {"price": "每股買進價", "shares": "融資股數",
                            "financing_ratio": "融資成數", "maintenance_threshold": "追繳維持率"},
    "price_limit_range": {"prev_close": "前一日收盤價", "limit_pct": "漲跌幅限制",
                          "tick_rounding": "是否依檔位進位"},
    "securities_transaction_tax": {"amount": "賣出成交金額", "security_type": "商品類別",
                                   "day_trade": "是否當沖"},
    "income_tax_estimate": {"annual_income": "全年所得總額", "filing_status": "申報身分",
                            "dependents": "扶養親屬人數", "deduction_type": "扣除額方式",
                            "tax_year": "民國年度"},
    "dividend_tax_compare": {"dividend_amount": "全年股利所得", "other_income": "股利以外的所得",
                             "filing_status": "申報身分"},
    "house_land_capital_gains_tax": {"gain": "課稅所得(獲利)", "holding_years": "持有年數",
                                     "self_use": "是否適用自住優惠", "resident": "是否為境內居住者"},
    "estate_tax_calc": {"gross_estate": "遺產總額", "spouse": "是否有配偶",
                        "lineal_descendants": "直系血親卑親屬人數", "parents": "父母人數",
                        "funeral_expense": "喪葬費扣除額"},
    "gift_tax_calc": {"gift_amount": "本次贈與金額", "donor_prior_gifts": "同年度先前已贈與金額",
                      "tax_year": "民國年度"},
    "labor_insurance_annuity": {"avg_insured_salary": "平均月投保薪資", "service_years": "投保年資",
                                "claim_age_offset": "相對法定請領年齡的年數差"},
    "labor_pension_fund_projection": {"monthly_wage": "月提繳工資", "employer_rate": "雇主提繳率",
                                      "self_contribution_rate": "勞工自願提繳率",
                                      "years": "提繳年數", "annual_return": "假設年化報酬率"},
    "nhi_supplementary_premium": {"income_type": "所得類別", "amount": "單次給付金額",
                                  "monthly_insured_salary": "月投保金額"},
    "mortgage_amortization": {"principal": "貸款本金", "annual_rate": "年利率(%)",
                              "years": "貸款年限", "grace_period_years": "寬限期年數",
                              "method": "攤還方式"},
    "time_deposit_interest": {"principal": "存款本金", "annual_rate": "年利率(%)",
                              "months": "存期月數", "interest_type": "固定或機動利率",
                              "compounding": "計息方式"},
    "credit_card_revolving_interest": {"balance": "循環信用未清償餘額", "apr": "循環信用年利率(%)",
                                       "days": "計息天數", "min_payment_rate": "最低應繳比率"},
    "deposit_insurance_coverage": {"bank": "要保機構名稱", "ntd_deposit": "台幣存款餘額",
                                   "fx_deposit_twd_equiv": "外幣存款折台幣金額",
                                   "include_interest": "是否含累計利息"},
    "etf_dividend_yield": {"symbol": "ETF 代號", "price": "每單位市價",
                           "annual_dividend": "全年每單位配息", "frequency": "配息頻率"},
    "regular_investment_projection": {"monthly_amount": "每月扣款金額", "annual_return": "假設年化報酬率",
                                      "years": "投資年數", "symbol": "累積標的代號"},
    "expense_ratio_drag": {"principal": "投入本金", "expense_ratio": "總開銷(內扣)費用率",
                           "years": "持有年數", "gross_annual_return": "扣費用前的年報酬率"},
    "fx_rate_lookup": {"base_currency": "外幣幣別", "quote_currency": "計價幣別",
                       "bank": "查詢的銀行", "rate_type": "牌告匯率種類"},
    "foreign_currency_deposit_return": {"amount_twd": "投入的台幣金額", "currency": "外幣幣別",
                                        "annual_rate": "外幣存款年利率(%)", "months": "存期月數",
                                        "fx_sell": "換入時的銀行賣出匯率",
                                        "fx_buy_back": "贖回時的銀行買入匯率"},
    "bond_price_from_ytm": {"face_value": "債券面額", "coupon_rate": "票面利率(%)",
                            "years_to_maturity": "剩餘到期年數", "ytm": "到期殖利率(%)",
                            "coupon_frequency": "每年付息次數"},
    "cbc_policy_rate_lookup": {"rate_type": "政策利率種類", "as_of_date": "基準日期"},
    "aml_transaction_screening": {"amount": "交易金額", "transaction_type": "交易類型",
                                  "currency": "幣別", "counterparty_country": "交易對手國別",
                                  "customer_risk_level": "客戶風險等級"},
    "kyc_risk_rating": {"customer_type": "客戶類型", "occupation": "職業或營業性質",
                        "nationality": "國籍或註冊地", "is_pep": "是否為重要政治性職務人士",
                        "expected_monthly_volume": "預估月交易量"},
    "taiwan_regulation_lookup": {"law_name": "法規名稱", "article": "條號",
                                 "include_amendments": "是否包含修正沿革"},
    "credit_capacity_dbr": {"monthly_income": "平均月收入", "existing_monthly_payment": "既有每月還款額",
                            "unsecured_debt_balance": "無擔保負債餘額",
                            "new_loan_amount": "擬申請的新貸款金額"},
    "jcic_credit_report": {"query_purpose": "查詢目的", "report_type": "報告種類",
                           "recent_inquiries_months": "被查詢紀錄回溯月數"},
    "retirement_gap_analysis": {"current_age": "目前年齡", "retirement_age": "預計退休年齡",
                                "monthly_expense_today": "今日幣值的每月支出",
                                "current_savings": "現有退休準備金", "annual_return": "假設年化報酬率",
                                "inflation_rate": "假設通膨率", "life_expectancy": "預期壽命"},
    "emergency_fund_target": {"monthly_expense": "每月生活支出", "months_of_coverage": "要覆蓋的月數",
                              "job_stability": "工作穩定度", "current_liquid_assets": "現有流動資產"},
    "life_insurance_gap": {"annual_income": "被保險人年收入", "dependent_years": "尚需扶養的年數",
                           "existing_coverage": "既有壽險保額", "outstanding_liabilities": "未償負債",
                           "method": "保額估算方法"},
    "financial_term_explain": {"term": "要解釋的金融名詞", "audience_level": "受眾程度",
                               "language": "輸出語言"},
    "license_exam_question_bank": {"license": "證照名稱", "topic": "科目主題",
                                   "count": "題數", "difficulty": "難度"},
    "market_index_lookup": {"index_name": "指數代碼", "date": "查詢日期", "fields": "要回傳的欄位"},
}


def label(tool_name, param):
    return PARAM_ZH.get(tool_name, {}).get(param, param)