添加快速安装脚本

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():
"""主程序入口"""
# 创建事件引擎
ee = EventEngine2()
ee = EventEngine()
# 创建主引擎
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
from collections import OrderedDict
from datetime import datetime, timedelta
from Queue import Queue
from Queue import Queue, Empty
from threading import Thread
from vnpy.event import Event

View File

@ -218,33 +218,6 @@ class MainWindow(QtWidgets.QMainWindow):
except KeyError:
self.widgetDict['contractM'] = ContractManager(self.mainEngine)
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):