-
Notifications
You must be signed in to change notification settings - Fork 14
Open
Description
script = f"""
dataPath = "{self.db_client.db_url}"
db = database(dataPath)
bar_columns = ["symbol", "exchange", "datetime", "interval", "volume", "turnover", "open_interest", "open_price", "high_price", "low_price", "close_price"]
bar_type = [SYMBOL, SYMBOL, NANOTIMESTAMP, SYMBOL, DOUBLE, DOUBLE, DOUBLE, DOUBLE, DOUBLE, DOUBLE, DOUBLE]
bar = table(1:0, bar_columns, bar_type)
db.createPartitionedTable(
bar,
"bar",
partitionColumns=["datetime"],
sortColumns=["symbol", "exchange", "interval", "datetime"],
keepDuplicates=LAST)
"""
self.db_client.execute(script)
我通过如上脚本进行执行的时候,一直报错,但是我看接口的参数我都传了
Metadata
Metadata
Assignees
Labels
No labels