添加快速安装脚本

This commit is contained in:
vn.py 2017-06-05 16:22:16 +08:00
parent 678b3c457d
commit 02c03f7444
4 changed files with 10 additions and 29 deletions

View File

@ -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
View 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

View File

@ -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

View File

@ -219,33 +219,6 @@ class MainWindow(QtWidgets.QMainWindow):
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):
"""关闭事件""" """关闭事件"""