count = 0
num = 0
symbol = "RM"
library_list = conn.list_libraries()
if symbol+"__tick" not in library_list:
conn.initialize_library(symbol+"__tick",lib_type=TICK_STORE)
print(symbol+"__tick","注册成功")
lib = conn[symbol+"__tick"]
for key in f.keys():
if "RM911" in key:
name = key
df = pd.read_hdf("E:/hdf5_data/RM.hdf5", key=key)
# df = pd.read_csv(new_data_path+file,encoding="gbk")
df.index = df['交易日'].astype("str")+" "+df['最后修改时间'].astype("str")+"."+df['最后修改毫秒'].astype("str")
df.index = pd.to_datetime(df.index)
df.index = [i.replace(tzinfo=tzchina).astimezone(utc) for i in df.index]
# print(df[['交易日','最后修改时间','最后修改毫秒']].head())
# print(df.columns)
num +=len(df)
to_symbol = name.split("_")[0]
lib.write(to_symbol, df)
df_01 = lib.read('RM901')
df_03 = lib.read('RM903')
can I just save the data in one time for a same symbol? the data I read from the tickstore is just a small part of the tick data which I save into the tickstore?