Merge pull request #1312 from vnpy/dev

v1.9.2 release dev->beta
This commit is contained in:
vn.py 2018-12-29 09:45:24 +08:00 committed by GitHub
commit 67f626e152
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 4 deletions

View File

@ -1,5 +1,7 @@
# encoding: UTF-8
from __future__ import print_function
from csv import DictReader
from datetime import datetime
from collections import OrderedDict, defaultdict
@ -306,7 +308,7 @@ class BacktestingEngine(object):
#----------------------------------------------------------------------
def output(self, content):
"""输出信息"""
print content
print(content)
#----------------------------------------------------------------------
def getTradeData(self, vtSymbol=''):

View File

@ -263,11 +263,11 @@ class WebsocketClient(object):
"""
用于Debug 记录最后一次发送出去的text
"""
self._lastSentText = text[:500]
self._lastSentText = text[:1000]
#----------------------------------------------------------------------
def _recordLastReceivedText(self, text):
"""
用于Debug 记录最后一次发送出去的text
"""
self._lastReceivedText = text[:500]
self._lastReceivedText = text[:1000]