이하영

simulator

1 <?xml version="1.0" encoding="UTF-8"?> 1 <?xml version="1.0" encoding="UTF-8"?>
2 <project version="4"> 2 <project version="4">
3 - <component name="ProjectRootManager" version="2" project-jdk-name="Python 3.7" project-jdk-type="Python SDK" /> 3 + <component name="ProjectRootManager" version="2" project-jdk-name="Python 3.8 (py38_64)" project-jdk-type="Python SDK" />
4 </project> 4 </project>
...\ No newline at end of file ...\ No newline at end of file
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
2 <module type="PYTHON_MODULE" version="4"> 2 <module type="PYTHON_MODULE" version="4">
3 <component name="NewModuleRootManager"> 3 <component name="NewModuleRootManager">
4 <content url="file://$MODULE_DIR$" /> 4 <content url="file://$MODULE_DIR$" />
5 - <orderEntry type="inheritedJdk" /> 5 + <orderEntry type="jdk" jdkName="Python 3.8 (py38_64)" jdkType="Python SDK" />
6 <orderEntry type="sourceFolder" forTests="false" /> 6 <orderEntry type="sourceFolder" forTests="false" />
7 </component> 7 </component>
8 </module> 8 </module>
...\ No newline at end of file ...\ No newline at end of file
......
File mode changed
This diff is collapsed. Click to expand it.
No preview for this file type
No preview for this file type
...@@ -24,7 +24,7 @@ real_daily_buy_list_db_name = "daily_buy_list" ...@@ -24,7 +24,7 @@ real_daily_buy_list_db_name = "daily_buy_list"
24 start_daily_buy_list='20190102' 24 start_daily_buy_list='20190102'
25 25
26 # api를 최대 몇 번까지 호출 하고 봇을 끌지 설정 하는 옵션 26 # api를 최대 몇 번까지 호출 하고 봇을 끌지 설정 하는 옵션
27 -max_api_call=98 27 +max_api_call=998
28 28
29 # openapi 1회 조회 시 대기 시간(0.2 보다-> 0.3이 안정적) 29 # openapi 1회 조회 시 대기 시간(0.2 보다-> 0.3이 안정적)
30 TR_REQ_TIME_INTERVAL = 0.3 30 TR_REQ_TIME_INTERVAL = 0.3
......
1 +lxml
2 +PyQt5
3 +pymysql
4 +selenium
5 +numpy
6 +dart_fss
7 +sqlalchemy
8 +pandas
9 +cryptography
...\ No newline at end of file ...\ No newline at end of file
1 +lxml
2 +pymysql
3 +selenium
4 +numpy<1.19.0
5 +sqlalchemy
6 +pandas
7 +dart_fss
8 +PyQt5
9 +cryptography
10 +
11 +matplotlib
12 +sklearn
13 +tensorflow==2.3.0
14 +keras==2.4.3
...\ No newline at end of file ...\ No newline at end of file
1 +from library.simulator_api import *
2 +
3 +class Simulator:
4 + def __init__(self):
5 + self.set_info()
6 + self.input_value()
7 +
8 + def set_info(self):
9 + self.simul_num=int(input("시뮬레이팅 알고리즘 번호 선택 : "))
10 + option=str(input("시뮬레이팅 데이터베이스 초기화 여부 (y/n) : "))
11 +
12 + if option=="y":
13 + self.simul_reset='reset'
14 + elif option=="n":
15 + self.simul_reset='continue'
16 + else:
17 + print("Invalid Input")
18 + sys.exit()
19 +
20 + def input_value(self):
21 + simulator_api(self.simul_num,self.simul_reset,0)
22 +
23 +if __name__=="__main__":
24 + Simulator()
...\ No newline at end of file ...\ No newline at end of file
...@@ -100,6 +100,9 @@ class Trader(QMainWindow): ...@@ -100,6 +100,9 @@ class Trader(QMainWindow):
100 if self.open_api.jango_check() and self.buy_time_check() and self.open_api.buy_check(): 100 if self.open_api.jango_check() and self.buy_time_check() and self.open_api.buy_check():
101 self.auto_trade_stock() 101 self.auto_trade_stock()
102 102
103 + else:
104 + break
105 +
103 if __name__ == "__main__": 106 if __name__ == "__main__":
104 app = QApplication(sys.argv) 107 app = QApplication(sys.argv)
105 trader = Trader() 108 trader = Trader()
......