标准化rpc和event对外暴露的类和函数

This commit is contained in:
chenxy123 2017-05-07 23:13:35 +08:00
parent e2070e1b0e
commit da77c1eac7
11 changed files with 10 additions and 5 deletions

View File

@ -0,0 +1,3 @@
# encoding: UTF-8
from .eventEngine import EventEngine, EventEngine2, Event

View File

@ -0,0 +1,3 @@
# encoding: UTF-8
from .vnrpc import RpcServer, RpcClient, RemoteException

View File

@ -26,7 +26,7 @@ from datetime import datetime, timedelta
from ctaBase import * from ctaBase import *
from strategy import STRATEGY_CLASS from strategy import STRATEGY_CLASS
from vnpy.event.eventEngine import * from vnpy.event import *
from vnpy.trader.vtEvent import * from vnpy.trader.vtEvent import *
from vtConstant import * from vtConstant import *
from vtGateway import VtSubscribeReq, VtOrderReq, VtCancelOrderReq, VtLogData from vtGateway import VtSubscribeReq, VtOrderReq, VtCancelOrderReq, VtLogData

View File

@ -8,8 +8,8 @@ import platform
import vtPath import vtPath
from uiMainWindow import * from uiMainWindow import *
from eventEngine import * from vnpy.event import EventEngine
from vnpy.rpc.vnrpc import RpcClient from vnpy.rpc import RpcClient
from ctaStrategy.ctaEngine import CtaEngine from ctaStrategy.ctaEngine import CtaEngine
from dataRecorder.drEngine import DrEngine from dataRecorder.drEngine import DrEngine

View File

@ -7,8 +7,7 @@ from datetime import datetime
from time import sleep from time import sleep
from threading import Thread from threading import Thread
import eventType from vnpy.rpc import RpcServer
from vnpy.rpc.vnrpc import RpcServer
from vtEngine import MainEngine from vtEngine import MainEngine