analyser_hj3415 2.10.4__tar.gz → 2.10.5__tar.gz

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: analyser_hj3415
3
- Version: 2.10.4
3
+ Version: 2.10.5
4
4
  Summary: Stock analyser and database processing programs
5
5
  Requires-Python: >=3.6
6
6
  Description-Content-Type: text/markdown
@@ -59,6 +59,7 @@ class Score:
59
59
  - 'red_score': float - Red score
60
60
  - '이익지표': float - Mil의 이익지표
61
61
  - '주주수익률': float - Mil의 주주수익률
62
+ - 'is_lstm_up': Union[bool, None] - lstm 예측치가 상승인지 아닌지, returns None - 데이터가 없으면..
62
63
  - 'prophet_score': int - prophet score
63
64
  """
64
65
  print(f"{self.code}/{self.name}의 scoring을 시작합니다.")
@@ -85,6 +86,12 @@ class Score:
85
86
  score_logger.info("Mil data 계산중..")
86
87
  mil_data = self.mil.get(verbose=False)
87
88
 
89
+ score_logger.info("Lstm 최근 데이터 조회중..")
90
+ if myredis.Base.exists(f'{self.code}_mylstm_predictions'):
91
+ is_lstm_up = self.lstm.is_up()
92
+ else:
93
+ is_lstm_up = None
94
+
88
95
  score_logger.info("\tProphet 최근 데이터 조회중..")
89
96
  prophet_score = self.prophet.scoring()
90
97
 
@@ -95,6 +102,7 @@ class Score:
95
102
  'red_score': red_score,
96
103
  '이익지표': mil_data.이익지표,
97
104
  '주주수익률': mil_data.주주수익률,
105
+ 'is_lstm_up': is_lstm_up,
98
106
  'prophet_score': prophet_score,
99
107
  }
100
108
  data_dict = myredis.Base.fetch_and_cache_data(redis_name, refresh, fetch_score, timer=expire_time_h * 3600)
@@ -5,7 +5,7 @@ build-backend = "flit_core.buildapi"
5
5
 
6
6
  [project]
7
7
  name = "analyser_hj3415"
8
- version = "2.10.4"
8
+ version = "2.10.5"
9
9
  description = "Stock analyser and database processing programs"
10
10
  readme = "README.md"
11
11
  requires-python = ">=3.6"