[Fix]Close #785
This commit is contained in:
parent
acad328f12
commit
5438df5c45
@ -60,7 +60,7 @@ def downMinuteBarBySymbol(symbol):
|
|||||||
cl = db[symbol]
|
cl = db[symbol]
|
||||||
cl.ensure_index([('datetime', ASCENDING)], unique=True) # 添加索引
|
cl.ensure_index([('datetime', ASCENDING)], unique=True) # 添加索引
|
||||||
|
|
||||||
df = ts.bar(symbol, ktype='1min')
|
df = ts.bar(symbol, freq='1min')
|
||||||
df = df.sort_index()
|
df = df.sort_index()
|
||||||
|
|
||||||
for ix, row in df.iterrows():
|
for ix, row in df.iterrows():
|
||||||
|
Loading…
Reference in New Issue
Block a user