大智慧数据(1)-6.03代码表文件数据结构

Published
rt = io.open("D:\dzh2\data\sh\STKINFO70.DAT","rb")
rt.seek("set",0x44a6)

rt.seek("set",0x5b666)
rtdata = {
    byte code[10];
    BYTE name[50];
    INT datatime;
    int unknown1;
    float refclose;
    float open;
    float high;
    float low;
    float new;
    float volume;
    float amount;
    float lotnow;
    float buy1;
    float buy2;
    float buy3;
    float buy4;
    float buy5;
    float buy1v;
    float buy2v;
    float buy3v;
    float buy4v;
    float buy5v;
    float sell1;
    float sell2;
    float sell3;
    float sell4;
    float sell5;
    float sell1v;
    float sell2v;
    float sell3v;
    float sell4v;
    float sell5v;
}

data = rt.read(rtdata)

io.open()
io.print(data.code,rt.seek())
io.print(data.name,time(data.datatime - 28800),data.refclose)
io.print(data.open,data.high,data.low,data.new)
io.print(data.volume,data.amount,data.lotnow)
io.print("")
io.print(data.buy1,data.buy2,data.buy3,data.buy4,data.buy5)
io.print(data.buy1v,data.buy2v,data.buy3v,data.buy4v,data.buy5v)
io.print(data.sell1,data.sell2,data.sell3,data.sell4,data.sell5)
io.print(data.sell1v,data.sell2v,data.sell3v,data.sell4v,data.sell5v)
execute("pause")
io.close()
rt.close()

一个数据块大小320字节

资源:

大智慧最新的财务,除权数据;行业,地域,概念题材,主题(自定义数据,适合旧版本引入)

https://www.55188.com/thread-8117220-1-1.html