添加快速安装脚本
This commit is contained in:
parent
678b3c457d
commit
02c03f7444
@ -25,7 +25,7 @@ from vnpy.trader.app import (riskManager, dataRecorder,
|
|||||||
def main():
|
def main():
|
||||||
"""主程序入口"""
|
"""主程序入口"""
|
||||||
# 创建事件引擎
|
# 创建事件引擎
|
||||||
ee = EventEngine2()
|
ee = EventEngine()
|
||||||
|
|
||||||
# 创建主引擎
|
# 创建主引擎
|
||||||
me = MainEngine(ee)
|
me = MainEngine(ee)
|
||||||
|
8
install.bat
Normal file
8
install.bat
Normal file
@ -0,0 +1,8 @@
|
|||||||
|
::Install Python Modules
|
||||||
|
pip install pymongo websocket-client msgpack-python qdarkstyle
|
||||||
|
|
||||||
|
::Install Ta-Lib
|
||||||
|
conda install -c quantopian ta-lib=0.4.9
|
||||||
|
|
||||||
|
:: Install vn.py
|
||||||
|
python setup.py install
|
@ -11,7 +11,7 @@ import os
|
|||||||
import copy
|
import copy
|
||||||
from collections import OrderedDict
|
from collections import OrderedDict
|
||||||
from datetime import datetime, timedelta
|
from datetime import datetime, timedelta
|
||||||
from Queue import Queue
|
from Queue import Queue, Empty
|
||||||
from threading import Thread
|
from threading import Thread
|
||||||
|
|
||||||
from vnpy.event import Event
|
from vnpy.event import Event
|
||||||
|
@ -218,33 +218,6 @@ class MainWindow(QtWidgets.QMainWindow):
|
|||||||
except KeyError:
|
except KeyError:
|
||||||
self.widgetDict['contractM'] = ContractManager(self.mainEngine)
|
self.widgetDict['contractM'] = ContractManager(self.mainEngine)
|
||||||
self.widgetDict['contractM'].show()
|
self.widgetDict['contractM'].show()
|
||||||
|
|
||||||
#----------------------------------------------------------------------
|
|
||||||
def openCta(self):
|
|
||||||
"""打开CTA组件"""
|
|
||||||
try:
|
|
||||||
self.widgetDict['ctaM'].showMaximized()
|
|
||||||
except KeyError:
|
|
||||||
self.widgetDict['ctaM'] = CtaEngineManager(self.mainEngine.ctaEngine, self.eventEngine)
|
|
||||||
self.widgetDict['ctaM'].showMaximized()
|
|
||||||
|
|
||||||
#----------------------------------------------------------------------
|
|
||||||
def openDr(self):
|
|
||||||
"""打开行情数据记录组件"""
|
|
||||||
try:
|
|
||||||
self.widgetDict['drM'].showMaximized()
|
|
||||||
except KeyError:
|
|
||||||
self.widgetDict['drM'] = DrEngineManager(self.mainEngine.drEngine, self.eventEngine)
|
|
||||||
self.widgetDict['drM'].showMaximized()
|
|
||||||
|
|
||||||
#----------------------------------------------------------------------
|
|
||||||
def openRm(self):
|
|
||||||
"""打开组件"""
|
|
||||||
try:
|
|
||||||
self.widgetDict['rmM'].show()
|
|
||||||
except KeyError:
|
|
||||||
self.widgetDict['rmM'] = RmEngineManager(self.mainEngine.rmEngine, self.eventEngine)
|
|
||||||
self.widgetDict['rmM'].show()
|
|
||||||
|
|
||||||
#----------------------------------------------------------------------
|
#----------------------------------------------------------------------
|
||||||
def closeEvent(self, event):
|
def closeEvent(self, event):
|
||||||
|
Loading…
Reference in New Issue
Block a user