Commit a3409b4e by rongjun

bug

parent b7b9c6e8
......@@ -598,6 +598,7 @@ class PyCTP_Market(PyCTP_Market_API):
, asize1=DepthMarketData['AskVolume1']
, bsize1=DepthMarketData['BidVolume1'])
self.data.append(tick)
print(tick, '\n')
dt = datetime.datetime.strptime(str(DepthMarketData['ActionDay'] + DepthMarketData['UpdateTime'], 'gb2312'),
'%Y%m%d%H:%M:%S').replace(microsecond=DepthMarketData['UpdateMillisec'] * 1000)
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