analyser_hj3415 4.5.2__py3-none-any.whl → 4.5.4__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- analyser_hj3415/analyser/eval/red.py +3 -3
- analyser_hj3415/analyser/tsa/myprophet.py +4 -4
- {analyser_hj3415-4.5.2.dist-info → analyser_hj3415-4.5.4.dist-info}/METADATA +1 -1
- {analyser_hj3415-4.5.2.dist-info → analyser_hj3415-4.5.4.dist-info}/RECORD +6 -6
- {analyser_hj3415-4.5.2.dist-info → analyser_hj3415-4.5.4.dist-info}/WHEEL +0 -0
- {analyser_hj3415-4.5.2.dist-info → analyser_hj3415-4.5.4.dist-info}/entry_points.txt +0 -0
@@ -94,7 +94,7 @@ class Red:
|
|
94
94
|
self.c103 = myredis.C103(code, 'c103재무상태표q')
|
95
95
|
|
96
96
|
self.name = self.c101.get_name()
|
97
|
-
self.recent_price = tools.to_float(self.c101.get_recent()
|
97
|
+
self.recent_price = tools.to_float(self.c101.get_recent().get('주가',None))
|
98
98
|
self._code = code
|
99
99
|
|
100
100
|
self.expect_earn = expect_earn
|
@@ -114,7 +114,7 @@ class Red:
|
|
114
114
|
self.c103.code = code
|
115
115
|
|
116
116
|
self.name = self.c101.get_name()
|
117
|
-
self.recent_price = tools.to_float(self.c101.get_recent()
|
117
|
+
self.recent_price = tools.to_float(self.c101.get_recent().get('주가',None))
|
118
118
|
self._code = code
|
119
119
|
|
120
120
|
def _calc비유동부채(self, refresh: bool) -> Tuple[str, float]:
|
@@ -227,7 +227,7 @@ class Red:
|
|
227
227
|
|
228
228
|
_, 발행주식수 = self.c103.latest_value_pop2('발행주식수', refresh)
|
229
229
|
if math.isnan(발행주식수):
|
230
|
-
발행주식수 = tools.to_int(self.c101.get_recent(refresh).get('발행주식'))
|
230
|
+
발행주식수 = tools.to_int(self.c101.get_recent(refresh).get('발행주식',None))
|
231
231
|
else:
|
232
232
|
발행주식수 = 발행주식수 * 1000
|
233
233
|
|
@@ -123,15 +123,15 @@ class MyProphet:
|
|
123
123
|
return data
|
124
124
|
else:
|
125
125
|
# 다운로드 자체는 성공했지만, 빈 데이터가 반환될 경우
|
126
|
-
print(f"[{attempt}/{max_retries}] 다운로드 결과가 비어 있습니다. 재시도합니다...")
|
126
|
+
print(f"[{attempt}/{max_retries}] {self.ticker} 다운로드 결과가 비어 있습니다. 재시도합니다...")
|
127
127
|
except Exception as e:
|
128
128
|
# 예외 발생 시, 재시도
|
129
|
-
print(f"[{attempt}/{max_retries}] 다운로드 실패: {e}. 재시도합니다...")
|
129
|
+
print(f"[{attempt}/{max_retries}] {self.ticker} 다운로드 실패: {e}. 재시도합니다...")
|
130
130
|
|
131
131
|
# 재시도 전 대기
|
132
132
|
time.sleep(delay_sec)
|
133
133
|
|
134
|
-
mylogger.error(f"주가 데이터를 다운로드하지 못했습니다 (최대 {max_retries}회 시도 실패).")
|
134
|
+
mylogger.error(f"{self.ticker} 주가 데이터를 다운로드하지 못했습니다 (최대 {max_retries}회 시도 실패).")
|
135
135
|
return pd.DataFrame()
|
136
136
|
|
137
137
|
def preprocessing_for_prophet() -> pd.DataFrame:
|
@@ -197,7 +197,7 @@ class MyProphet:
|
|
197
197
|
try:
|
198
198
|
self.df_real = preprocessing_for_prophet()
|
199
199
|
self.df_forecast = make_forecast()
|
200
|
-
except ValueError as e:
|
200
|
+
except (ValueError, KeyError) as e:
|
201
201
|
mylogger.error(f"{self.ticker} : 빈 데이터프레임...{e}")
|
202
202
|
self.df_real = pd.DataFrame()
|
203
203
|
self.df_forecast = pd.DataFrame()
|
@@ -7,12 +7,12 @@ analyser_hj3415/analyser/eval/blue.py,sha256=KBoKevikS74ys9zcVls6GaEdBkW-avcxHWk
|
|
7
7
|
analyser_hj3415/analyser/eval/common.py,sha256=sNXapoofShA43ww_SLjXmIjkrAr1AhAcezdaN_X_3Us,11443
|
8
8
|
analyser_hj3415/analyser/eval/growth.py,sha256=LunZcZvhly_2PWUZBbd0gW9ZImWYT5sAu_iixVLxGuc,6226
|
9
9
|
analyser_hj3415/analyser/eval/mil.py,sha256=6_1SuWqG1fsuZUKuaABhSqNsYCgj5np35auWhnE5wdk,15289
|
10
|
-
analyser_hj3415/analyser/eval/red.py,sha256=
|
10
|
+
analyser_hj3415/analyser/eval/red.py,sha256=YXk7QX1No9mzGJlWnwfJ2aTUTbSS_LnPUL4PKzx0Aws,12051
|
11
11
|
analyser_hj3415/analyser/tsa/__init__.py,sha256=7j-WshikzsDGGo_wuFoMPNmYfY-bLSEMd6o1MKSQKLI,150
|
12
12
|
analyser_hj3415/analyser/tsa/common.py,sha256=iRwk88zBtEIqzSmTQWmQIWiiqZ9gN7GLtDUa5rx8IGM,1918
|
13
13
|
analyser_hj3415/analyser/tsa/lstm.py,sha256=KPBTwOQT60WToRFQ4AAInK_JP7yA6wDpyTMsl_oNscY,29935
|
14
|
-
analyser_hj3415/analyser/tsa/myprophet.py,sha256=
|
15
|
-
analyser_hj3415-4.5.
|
16
|
-
analyser_hj3415-4.5.
|
17
|
-
analyser_hj3415-4.5.
|
18
|
-
analyser_hj3415-4.5.
|
14
|
+
analyser_hj3415/analyser/tsa/myprophet.py,sha256=2wIky5i5ZFn72BLPMEfxNvrK4Hdaww6i5wR_l1IysqA,19088
|
15
|
+
analyser_hj3415-4.5.4.dist-info/entry_points.txt,sha256=ZfjPnJuH8SzvhE9vftIPMBIofsc65IAWYOhqOC_L5ck,65
|
16
|
+
analyser_hj3415-4.5.4.dist-info/WHEEL,sha256=CpUCUxeHQbRN5UGRQHYRJorO5Af-Qy_fHMctcQ8DSGI,82
|
17
|
+
analyser_hj3415-4.5.4.dist-info/METADATA,sha256=hhMyS0mF8yBsekMi1XbiUDlYeLqt60Pa3BPrJSlNbZA,6811
|
18
|
+
analyser_hj3415-4.5.4.dist-info/RECORD,,
|
File without changes
|
File without changes
|