first commit

This commit is contained in:
hayato5246
2026-03-31 19:32:59 +09:00
commit d10b794c9f
78 changed files with 1671595 additions and 0 deletions

31
models/theme.go Normal file
View File

@@ -0,0 +1,31 @@
package models
// ThemeGroup 테마그룹 정보 (ka90001 응답)
type ThemeGroup struct {
Code string `json:"code"` // thema_grp_cd
Name string `json:"name"` // thema_nm
StockCount int `json:"stockCount"` // stk_num
FluSig string `json:"fluSig"` // flu_sig (2:상승 5:하락 3:보합)
FluRt float64 `json:"fluRt"` // flu_rt
RisingCount int `json:"risingCount"` // rising_stk_num
FallCount int `json:"fallCount"` // fall_stk_num
PeriodRt float64 `json:"periodRt"` // dt_prft_rt
MainStock string `json:"mainStock"` // main_stk
}
// ThemeDetail 테마구성종목 응답 (ka90002)
type ThemeDetail struct {
FluRt float64 `json:"fluRt"` // 테마 등락률
PeriodRt float64 `json:"periodRt"` // 기간수익률
Stocks []ThemeStock `json:"stocks"`
}
// ThemeStock 테마 구성종목
type ThemeStock struct {
Code string `json:"code"` // stk_cd
Name string `json:"name"` // stk_nm
CurPrc int64 `json:"curPrc"` // cur_prc
FluSig string `json:"fluSig"` // flu_sig
PredPre int64 `json:"predPre"` // pred_pre
FluRt float64 `json:"fluRt"` // flu_rt
}