init
This commit is contained in:
@@ -536,20 +536,15 @@ class AnalyzerSqlite:
|
||||
|
||||
# 2년 중 최대 거래량인 경우
|
||||
size = len(stock_daily['volume'])
|
||||
first_index = 520
|
||||
if len(stock_daily['volume']) < first_index:
|
||||
first_index = len(stock_daily['volume'])
|
||||
valid = True
|
||||
for c_index in range(size-first_index, size):
|
||||
if stock_daily['volume'][c_index] > stock_daily['volume'][size-1]:
|
||||
valid = False
|
||||
break
|
||||
if valid:
|
||||
c_index = 520
|
||||
if len(stock_daily['volume']) < c_index:
|
||||
c_index = len(stock_daily['volume'])
|
||||
if max(stock_daily['volume'][1:c_index]) < stock_daily['volume'][0]:
|
||||
type = "daily_이전에_없던_거래량"
|
||||
final_status += " " + type
|
||||
final_status_count += 1
|
||||
self.writeFile(type, CODE, NAME, top, stock_daily, status)
|
||||
break
|
||||
|
||||
|
||||
# BB 하단에 내려옴
|
||||
for c_index in range(1, 5):
|
||||
|
||||
Reference in New Issue
Block a user