def calc(self,d3,d2):
vol = int(d3['high'])-int(d3['low'])
startValue = int(d2['open'])

high3DaysAgo = int(d3['high'])
high2DaysAgo = int(d2['high'])

msg = "2日前の高値:"+str(high2DaysAgo),"3日前の高値"+str(high3DaysAgo)
print(msg)

value = 0
if high2DaysAgo > high3DaysAgo:
msg = "2日前の高値:"+str(high2DaysAgo),'>',"3日前の高値:"+str(high3DaysAgo)
value = startValue + (vol/3)
else:
msg = "2日前の高値:"+str(high2DaysAgo),'<=',"3日前の高値:"+str(high3DaysAgo)
value = startValue - (vol/3)

print(msg)

s = "適正価格:"+str(int(value))+"円"
print(s)
return s

def printDaysInfo(self,d):
unixtime = int(d['openTime'])
dt = datetime.datetime.fromtimestamp(int(unixtime/1000))
s = "日付:"+"{0:%Y-%m-%d %H:%M:%S}".format(dt),"始値:"+d['open'],"終値:"+d['close'],"最高:"+d['high'],"最低:"+d['low']
print(s)
return s


def main():
print("高卒たん適正価格算出アルゴリズム")
client = HighSchool()
client.getData()
print('終了')

quit()

if __name__ == "__main__":
main()