sync vnpy1.6.2

This commit is contained in:
msincenselee 2017-06-13 18:24:38 +08:00
parent 34e8246cc3
commit ed8ae55332
3 changed files with 9 additions and 4 deletions

View File

@ -1,6 +1,5 @@
# encoding: UTF-8
# 方向常量
DIRECTION_NONE = u'无方向'
DIRECTION_LONG = u''

View File

@ -6,7 +6,6 @@ from collections import OrderedDict
from pymongo import MongoClient
from pymongo.errors import ConnectionFailure
from vnpy.trader.vtGlobal import globalSetting
from vnpy.trader.language import text
from vnpy.trader.app.ctaStrategy.ctaEngine import CtaEngine
from vnpy.trader.app.dataRecorder.drEngine import DrEngine

View File

@ -1,15 +1,22 @@
# encoding: UTF-8
import sys
reload(sys)
sys.setdefaultencoding('utf8')
import os
import ctypes
import platform
import vtPath
# 将repostory的目录i作为根目录添加到系统环境中。
root_path = os.path.abspath(os.path.join(os.path.dirname(__file__), '..','..'))
sys.path.append(root_path)
from vnpy.trader.vtPath import *
from vnpy.trader.vtEngine import MainEngine
from vnpy.trader.uiMainWindow import *
# 加载底层接口
from vnpy.trader.gateway import ctpGateway
from gateway import ctpGateway
# 初始化的接口模块,以及其指定的名称,CTP是模块value是该模块下的多个连接配置文件,如 CTP_JR_connect.json
init_gateway_names = {'CTP': ['CTP', 'CTP_Prod', 'CTP_Post', 'CTP_EBF', 'CTP_JR', 'CTP_JR2']}