이하영

simulator

<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="ProjectRootManager" version="2" project-jdk-name="Python 3.7" project-jdk-type="Python SDK" />
<component name="ProjectRootManager" version="2" project-jdk-name="Python 3.8 (py38_64)" project-jdk-type="Python SDK" />
</project>
\ No newline at end of file
......
......@@ -2,7 +2,7 @@
<module type="PYTHON_MODULE" version="4">
<component name="NewModuleRootManager">
<content url="file://$MODULE_DIR$" />
<orderEntry type="inheritedJdk" />
<orderEntry type="jdk" jdkName="Python 3.8 (py38_64)" jdkType="Python SDK" />
<orderEntry type="sourceFolder" forTests="false" />
</component>
</module>
\ 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"
start_daily_buy_list='20190102'
# api를 최대 몇 번까지 호출 하고 봇을 끌지 설정 하는 옵션
max_api_call=98
max_api_call=998
# openapi 1회 조회 시 대기 시간(0.2 보다-> 0.3이 안정적)
TR_REQ_TIME_INTERVAL = 0.3
......
lxml
PyQt5
pymysql
selenium
numpy
dart_fss
sqlalchemy
pandas
cryptography
\ No newline at end of file
lxml
pymysql
selenium
numpy<1.19.0
sqlalchemy
pandas
dart_fss
PyQt5
cryptography
matplotlib
sklearn
tensorflow==2.3.0
keras==2.4.3
\ No newline at end of file
from library.simulator_api import *
class Simulator:
def __init__(self):
self.set_info()
self.input_value()
def set_info(self):
self.simul_num=int(input("시뮬레이팅 알고리즘 번호 선택 : "))
option=str(input("시뮬레이팅 데이터베이스 초기화 여부 (y/n) : "))
if option=="y":
self.simul_reset='reset'
elif option=="n":
self.simul_reset='continue'
else:
print("Invalid Input")
sys.exit()
def input_value(self):
simulator_api(self.simul_num,self.simul_reset,0)
if __name__=="__main__":
Simulator()
\ No newline at end of file
......@@ -100,6 +100,9 @@ class Trader(QMainWindow):
if self.open_api.jango_check() and self.buy_time_check() and self.open_api.buy_check():
self.auto_trade_stock()
else:
break
if __name__ == "__main__":
app = QApplication(sys.argv)
trader = Trader()
......