def test(self):
cx = self.Symbol_Db['equity'].find()
symbolSet = set([d['code'] for d in cx])
for code in symbolSet:
start = self.Symbol_Db['equity'].find({"code" : code})[0]['timeToMarket']
try:
start = datetime.datetime.strptime(str(start), '%Y%m%d')
except :
print code
start = start.strftime("%Y-%m-%d")
print start
return
#----------------------------------------------------------------------
评论列表
文章目录