Skip to content

why tickstore cannot save the diferrent data for a symbol for many times? is there something I do wrong? #958

@tianjixuetu

Description

@tianjixuetu

Arctic Version

# Arctic version 1.80.4

Arctic Store

#TickStore

Platform and version

windows 10 64 python3.8

Description of problem and/or code sample that reproduces the issue

save tick data

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)

read tick data

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions