diff --git a/examples/TushareDataService/dataService.py b/examples/TushareDataService/dataService.py index 2e5e511b..381de683 100644 --- a/examples/TushareDataService/dataService.py +++ b/examples/TushareDataService/dataService.py @@ -60,7 +60,7 @@ def downMinuteBarBySymbol(symbol): cl = db[symbol] cl.ensure_index([('datetime', ASCENDING)], unique=True) # 添加索引 - df = ts.bar(symbol, ktype='1min') + df = ts.bar(symbol, freq='1min') df = df.sort_index() for ix, row in df.iterrows():