Commit 46fe2a87 by rongjun

bug

parent 7515fd0f
...@@ -599,6 +599,7 @@ class PyCTP_Market(PyCTP_Market_API): ...@@ -599,6 +599,7 @@ class PyCTP_Market(PyCTP_Market_API):
, bsize1=DepthMarketData['BidVolume1']) , bsize1=DepthMarketData['BidVolume1'])
self.data.append(tick) self.data.append(tick)
print(tick, '\n') print(tick, '\n')
print(DepthMarketData, '\n')
dt = datetime.datetime.strptime(str(DepthMarketData['ActionDay'] + DepthMarketData['UpdateTime'], 'gb2312'), dt = datetime.datetime.strptime(str(DepthMarketData['ActionDay'] + DepthMarketData['UpdateTime'], 'gb2312'),
'%Y%m%d%H:%M:%S').replace(microsecond=DepthMarketData['UpdateMillisec'] * 1000) '%Y%m%d%H:%M:%S').replace(microsecond=DepthMarketData['UpdateMillisec'] * 1000)
un_time = str(time.mktime(dt.timetuple())) un_time = str(time.mktime(dt.timetuple()))
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment