This commit is contained in:
dosangyoon
2021-10-01 23:11:06 +09:00
parent 69acec2a8c
commit 1b82e2d464

View File

@@ -937,13 +937,14 @@ class HTS:
if jangoDic[code]['매도가능'] > 0:
# 장부가 가격의 마지막 자리를 0으로 만든다. (2090 -> 2090, 2092 -> 2090, 2098 -> 2090)
sell_price = int(jangoDic[code]['장부가'] / 10) * 10
"""
# 만약 오후 1시 이전이라면 한 호가 (5원) 더 올려서 매도한다.
if datetime.strptime(given_day + " 092000", '%Y%m%d %H%M%S') < datetime.now() < datetime.strptime(given_day + " 104000", '%Y%m%d %H%M%S'):
lower_size = len(lower)
if lower != None and lower_size > 3:
if lower[lower_size-3] < lower[lower_size-2] < lower[lower_size-1]:
sell_price += 5
"""
# 장부가의 마지막 자리수를 가져온다.
last_number = int(jangoDic[code]['장부가']) % 10
if last_number in [0, 1, 2]: