ThinkChat2.0新版上线,更智能更精彩,支持会话、画图、阅读、搜索等,送10W Token,即刻开启你的AI之旅 广告
- 接口地址:http://域名/data/v1/kline/list ``` syntax = "proto3"; package lh_server; type KLintListReq2 struct { StartTime int64 //0为最初始数据(日期格式20060102) EndTime int64 //0为最新数据(日期格式20060102) SymbolsType int64 //1:个股行情(STK_MKT_Quotation) 2:版块/指数/自定义动态/静态 多股行情(IDX_MKT_Quotation) 99: 板块或指数个股行情明细、分红明细等 STK_MKT_Quotation Symbols string //股票代码 多只股票用","连接 (与 SymbolsType 搭配使用) } message RspKLineData{ int32 code = 1; //状态码(20000:成功) string message = 2; //错误消息内容 repeated KLineData data = 3; //返回数据 } message KLineData{ int64 tradeDate = 1; //交易日期(年月日时分秒) double open = 2; //开盘价 double close = 3; //收盘价 double high = 4; //最高价 double low = 5; //最低价 int64 volume = 6; //成交量 int64 amount = 7; //成交金额 double preClose = 8; //昨收价 //int64 openDate = 9; //周期开市时间 //int64 closeDate = 10; //周期毕市时间 int32 indexYear = 9; //年 int32 indexQuarter = 10; //季 int32 indexMonth = 11; //月 int32 indexWeek = 12; //周 double limitUp = 13; //涨停价 double limitDown = 14; //跌停价 } ``` > V2版本接口 (响应JSON) - 接口地址:http://域名/data/v2/kline/list ``` type KLintListReq2 struct { StartTime int64 //0为最初始数据 EndTime int64 //0为最新数据 SymbolsType int64 //1:个股行情(STK_MKT_Quotation) 2:版块/指数/自定义动态/静态 多股行情(IDX_MKT_Quotation) 99: 板块或指数个股行情明细、分红明细等 STK_MKT_Quotation Symbols string //股票代码 多只股票用","连接 (与 SymbolsType 搭配使用) } type KLintListV2Rsp struct { Code int Message string Data []string ErrMessage []string } ```