当前位置:首页 > 编程笔记 > 正文
已解决

股票基础数据(二)

来自网友在路上 11058105提问 提问时间:2023-11-21 21:14:14阅读次数: 105

最佳答案 问答题库1058位专家为你答疑解惑

二. 股票基础数据

文章目录

  • 二. 股票基础数据
    • 一. 查询股票融资信息数据
    • 二. 查询所有的股票信息
    • 三. 查询所有的股票类型信息
    • 四. 根据类型查询所有的股票数据信息
    • 五. 查询股票当前的基本信息
    • 六. 查询股票的K线图, 返回对应的 base64 信息
    • 七. 展示股票的K线图数据, 对应的是数据信息
    • 八. 展示股票的K线图, 以图形展示
    • 九. 展示股票某一天的分时数据
    • 十. 查询股票关联的版块信息
    • 十一. 展示股票历史资金信息
    • 十二. 展示股票今日资金信息
    • 十三. 获取天级别最近的历史记录
    • 十四. 查询股票的历史记录
    • 十五. 查看天/星期范围统计的历史记录
    • 十六. 展示股票今日资金信息,Image 处理成图进行展示
    • 十七. 查看最近多少天某个属性的涨跌幅度值
    • 十八. 查询近一个月的更新记录信息

一. 查询股票融资信息数据

接口描述:

接口地址:/StockApi/stock/findCanRong

请求方式:Get

consumes:["application/json"]

produces:["*/*"]

请求参数

参数名称参数说明in是否必须数据类型schemaAuthorizationToken令牌headerfalsestring

响应示例:

{"code": 0,"data": [],"exceptionMessage": "","message": "","success": true,"timestamp": 0
}

响应参数:

参数名称参数说明类型schemacode响应代码integer(int32)integer(int32)data响应的数据arrayexceptionMessage异常信息stringmessage响应信息stringsuccess是否成功 true 为成功 false 为不成功booleantimestamp当前时间戳integer(int64)integer(int64)

image-20231026194137066

二. 查询所有的股票信息

接口描述:

接口地址:/StockApi/stock/list

请求方式POST

consumes:["application/json"]

produces:["*/*"]

请求示例

{"code": "","codeType": 0,"codes": [],"count": 0,"days": 0,"endDate": "","exchange": 0,"keyword": "","pageNum": 0,"pageSize": 0,"startDate": "","subPattern": "","type": 0,"willZtEndTime": "","zbType": ""
}

请求参数

参数名称参数说明in是否必须数据类型schemaAuthorizationToken令牌headerfalsestringstockRostockRobodytrue股票对象股票对象

schema属性说明

股票对象

参数名称参数说明in是否必须数据类型schemakeyword搜索的关键字bodyfalsestringpageNum页数bodytrueinteger(int32)pageSize每页显示最大数量bodytrueinteger(int32)

响应示例:

{"code": 0,"data": {"list": [{"amplitude": 0,"amplitudeProportion": "","closingPrice": 0,"code": "","date": "","exchange": 0,"fullCode": "","highestPrice": 0,"lowestPrice": 0,"name": "","nowPrice": 0,"openingPrice": 0,"tradingValue": 0,"tradingVolume": 0,"yesClosingPrice": 0,"zt": 0}],"total": 0},"exceptionMessage": "","message": "","success": true,"timestamp": 0
}

响应参数:

参数名称参数说明类型schemacode响应代码integer(int32)integer(int32)data响应的数据分页展示«股票展示信息»分页展示«股票展示信息»exceptionMessage异常信息stringmessage响应信息stringsuccess是否成功 true 为成功 false 为不成功booleantimestamp当前时间戳integer(int64)integer(int64)

schema属性说明

分页展示«股票展示信息»

参数名称参数说明类型schemalistlist数据array股票展示信息total总数integer(int64)

股票展示信息

参数名称参数说明类型schemaamplitude涨跌幅度numberamplitudeProportion涨跌幅度百分比stringclosingPrice收盘价numbercode股票的代码stringdate当前天stringexchange交易所类型integer(int32)fullCode股票的全代码stringhighestPrice最高价格numberlowestPrice最低价格numbername股票的名称stringnowPrice当前的价格numberopeningPrice开盘价numbertradingValue成交量金额numbertradingVolume成交量(股)integer(int64)yesClosingPrice昨天的收盘价numberzt是否涨停 1为涨停 0为不涨停integer(int32)

image-20231026194459734

三. 查询所有的股票类型信息

接口描述:

接口地址:/StockApi/stock/listDbType

请求方式:Get

consumes:

produces:["*/*"]

请求参数

参数名称参数说明in是否必须数据类型schemaAuthorizationToken令牌headerfalsestring

响应示例:

{"code": 0,"data": [{"code": "","name": ""}],"exceptionMessage": "","message": "","success": true,"timestamp": 0
}

响应参数:

参数名称参数说明类型schemacode响应代码integer(int32)integer(int32)data响应的数据array字典配置展示exceptionMessage异常信息stringmessage响应信息stringsuccess是否成功 true 为成功 false 为不成功booleantimestamp当前时间戳integer(int64)integer(int64)

schema属性说明

字典配置展示

参数名称参数说明类型schemacodecodestringnamenamestring

image-20231026195241501

{"code": 20000,"success": true,"message": null,"timestamp": 1698321126695,"exceptionMessage": null,"data": [{"code": "1","name": "上海"},{"code": "2","name": "深圳"},{"code": "3","name": "创业板"},{"code": "4","name": "北京板"},{"code": "5","name": "上海和深圳"},{"code": "6","name": "上海和深圳和创业"},{"code": "7","name": "上海和深圳和创业和北京"},{"code": "8","name": "所有"}]
}

四. 根据类型查询所有的股票数据信息

接口描述:

接口地址:/StockApi/stock/listAllByDbType/{codeType}

请求方式:Get

produces:["*/*"]

请求示例

/StockApi/stock/listAllByDbType/1

其中, codeType 支持的 类型枚举为:

 	SH(1, "上海"),SZ(2, "深圳"),CY(3, "创业板"),BJ(4, "北京板"),SH_SZ(5, "上海和深圳"),SH_SZ_CY(6, "上海和深圳和创业"),SH_SZ_CY_BJ(7, "上海和深圳和创业和北京"),ALL(8, "所有");

请求参数

参数名称参数说明in是否必须数据类型schemaAuthorizationToken令牌headerfalsestring

响应示例:

{"code": 0,"data": [],"exceptionMessage": "","message": "","success": true,"timestamp": 0
}

响应参数:

参数名称参数说明类型schemacode响应代码integer(int32)integer(int32)data响应的数据arrayexceptionMessage异常信息stringmessage响应信息stringsuccess是否成功 true 为成功 false 为不成功booleantimestamp当前时间戳integer(int64)integer(int64)

image-20231026195016988

五. 查询股票当前的基本信息

接口描述:

接口地址:/StockApi/stockCrawler/getStockInfo

请求方式Get

consumes:["application/json"]

produces:["*/*"]

请求示例

{"code": ""
}

请求参数

参数名称参数说明in是否必须数据类型schemaAuthorizationToken令牌headerfalsestringcode股票六位数编码bodytruestring

schema属性说明

响应示例:

{"code": 0,"data": {"amplitude": 0,"amplitudeProportion": "","closingPrice": 0,"code": "","date": "","exchange": 0,"fullCode": "","highestPrice": 0,"lowestPrice": 0,"name": "","nowPrice": 0,"openingPrice": 0,"tradingValue": 0,"tradingVolume": 0,"yesClosingPrice": 0,"zt": 0},"exceptionMessage": "","message": "","success": true,"timestamp": 0
}

响应参数:

参数名称参数说明类型schemacode响应代码integer(int32)integer(int32)data响应的数据股票展示信息股票展示信息exceptionMessage异常信息stringmessage响应信息stringsuccess是否成功 true 为成功 false 为不成功booleantimestamp当前时间戳integer(int64)integer(int64)

schema属性说明

股票展示信息

参数名称参数说明类型schemaamplitude涨跌幅度numberamplitudeProportion涨跌幅度百分比stringclosingPrice收盘价numbercode股票的代码stringdate当前天stringexchange交易所类型integer(int32)fullCode股票的全代码stringhighestPrice最高价格numberlowestPrice最低价格numbername股票的名称stringnowPrice当前的价格numberopeningPrice开盘价numbertradingValue成交量金额numbertradingVolume成交量(股)integer(int64)yesClosingPrice昨天的收盘价numberzt是否涨停 1为涨停 0为不涨停integer(int32)

http://127.0.0.1:8081/StockApi/stockCrawler/getStockInfo?code=002812

image-20231026200235659

六. 查询股票的K线图, 返回对应的 base64 信息

接口描述:

接口地址:/StockApi/stockCrawler/getStockKline

请求方式POST

consumes:["application/json"]

produces:["*/*"]

请求示例

{"code": "002812","type": 2
}

请求参数

参数名称参数说明in是否必须数据类型schemaAuthorizationToken令牌headerfalsestringstockRostockRobodytrue股票对象股票对象

schema属性说明

股票对象

参数名称参数说明in是否必须数据类型schemacode股票的编码bodytruestringtype查看K线的类型bodytrueinteger(int32)1为分钟 2为天 3为周 4为月

响应示例:

{"code": 0,"data": "","exceptionMessage": "","message": "","success": true,"timestamp": 0
}

响应参数:

参数名称参数说明类型schemacode响应代码integer(int32)integer(int32)data响应的数据stringexceptionMessage异常信息stringmessage响应信息stringsuccess是否成功 true 为成功 false 为不成功booleantimestamp当前时间戳integer(int64)integer(int64)

获取天级别 K线:

image-20231026201059924

七. 展示股票的K线图数据, 对应的是数据信息

接口描述:

接口地址:/StockApi/stockCrawler/showKData

请求方式POST

consumes:["application/json"]

produces:["*/*"]

请求示例

{"code": "","type": 0,"count":90
}

请求参数

参数名称参数说明in是否必须数据类型schemaAuthorizationToken令牌headerfalsestringstockRostockRobodytrue股票对象股票对象

schema属性说明

股票对象

参数名称参数说明in是否必须数据类型schemacode股票的编码bodytruestringtype查看K线的类型bodytrueinteger(int32)1为1分钟 2为天 5为5分钟 6为15分钟 7为30分钟 8为60分钟count数据数量bodyfalseint数据的数据,默认为 90

响应示例:

{"code": 0,"data": [{"amplitude": 0,"amplitudeProportion": 0,"changingProportion": 0,"close": 0,"code": "","day": "","high": 0,"id": 0,"low": 0,"name": "","open": 0,"preClose": 0,"priceChange": 0,"subAmplitude": 0,"subAmplitudeProportion": 0,"than": 0,"tradeDate": "","tradingValue": 0,"volume": 0}],"exceptionMessage": "","message": "","success": true,"timestamp": 0
}

响应参数:

参数名称参数说明类型schemacode响应代码integer(int32)integer(int32)data响应的数据array股票K线数据展示exceptionMessage异常信息stringmessage响应信息stringsuccess是否成功 true 为成功 false 为不成功booleantimestamp当前时间戳integer(int64)integer(int64)

schema属性说明

股票K线数据展示

参数名称参数说明类型schemaamplitude涨跌幅度numberamplitudeProportion涨跌幅度百分比numberchangingProportion换手率numberclose收盘价numbercode股票的代码stringday当前天stringhigh最高价格numberidinteger(int32)low最低价格numbername股票的名称stringopen开盘价numberpreClose前收numberpriceChange前涨跌额度numbersubAmplitude今日震幅 high -lownumbersubAmplitudeProportion今日震幅比例numberthan量比numbertradeDate交易天string(date-time)tradingValue成交量金额numbervolume成交量(股)integer(int64)

按照日期升序排列

查询天 type =2

image-20231026201752799

查询 15分钟的, type : 6

image-20231026202023766

八. 展示股票的K线图, 以图形展示

接口描述:

接口地址:/StockApi/stockCrawler/showStockKline

请求方式POST

consumes:["application/json"]

produces:["*/*"]

请求示例

{"code": "","type": 0
}

请求参数

参数名称参数说明in是否必须数据类型schemaAuthorizationToken令牌headerfalsestringstockRostockRobodytrue股票对象股票对象

schema属性说明

股票对象

参数名称参数说明in是否必须数据类型schemacode股票的编码bodytruestringtype查看K线的类型bodytrueinteger(int32)1为分钟 2为天

响应示例:

图片形式展示

如 展示股票的今日分时图 type 为1

image-20231026202743149

展示天 type = 2

image-20231026202820353

九. 展示股票某一天的分时数据

接口描述:

接口地址:/StockApi/stockCrawler/showDayKData

请求方式POST

consumes:["application/json"]

produces:["*/*"]

请求示例

{"code": "002812","startDate": "2023-10-26","type": 1
}

请求参数

参数名称参数说明in是否必须数据类型schemaAuthorizationToken令牌headerfalsestringstockRostockRobodytrue股票对象股票对象

schema属性说明

股票对象

参数名称参数说明in是否必须数据类型schemacode股票的编码bodytruestringtype查看K线的类型bodytrueinteger(int32)1为1分钟 5为5分钟 6为15分钟 7为30分钟 8为60分钟 为1的话,只能是当前天。startDate展示那一天的数据bodyfalsestring选择日期,不传入的话为最新的交易日willZtEndTime截止要涨停的时间bodyfalsestring截止涨停的时间, 即在这个时间点之前,是否有要涨停的动作。 打板时用
默认为: 10:00:00

响应示例:

{"code": 0,"data": {"details": [],"code":"002812","date":"2023-10-26","willZt": false},"exceptionMessage": "","message": "","success": true,"timestamp": 0
}

响应参数:

参数名称参数说明类型schemacode响应代码integer(int32)integer(int32)data响应的数据股票今日涨停和昨日连板数据分析股票今日涨停和昨日连板数据分析exceptionMessage异常信息stringmessage响应信息stringsuccess是否成功 true 为成功 false 为不成功booleantimestamp当前时间戳integer(int64)integer(int64)

schema属性说明

参数名称参数说明类型schemacode股票编码stringdate日期stringdetails明细数据arraywillZt是否将要涨停boolean

分时数据查询: type 为1

image-20231026204831965

5 分钟的数据查询, 日期可以为 其他天, 但要在最新 30天以内。

image-20231026204914597

十. 查询股票关联的版块信息

接口描述:

接口地址:/StockApi/stockCrawler/listRelationBk

请求方式:Get

consumes:

produces:["*/*"]

请求示例

{"code": "002812"
}

请求参数

参数名称参数说明in是否必须数据类型schemaAuthorizationToken令牌headerfalsestringcode股票编码bodytruestring股票六位数编码

响应示例:

{"code": 0,"data": [{"amplitude": 0,"bkCode": "","bkName": "","stockCode": ""}],"exceptionMessage": "","message": "","success": true,"timestamp": 0
}

响应参数:

参数名称参数说明类型schemacode响应代码integer(int32)integer(int32)data响应的数据array股票与版块exceptionMessage异常信息stringmessage响应信息stringsuccess是否成功 true 为成功 false 为不成功booleantimestamp当前时间戳integer(int64)integer(int64)

schema属性说明

股票与版块

参数名称参数说明类型schemaamplitude幅度integer(int32)bkCode版块编码stringbkName版块名称stringstockCode股票编码string

image-20231026205240920

十一. 展示股票历史资金信息

接口描述:

接口地址:/StockApi/stockCrawler/showHistoryMoney

请求方式:Get

consumes:

produces:["*/*"]

请求示例

{"code": "002812"
}

请求参数

参数名称参数说明in是否必须数据类型schemaAuthorizationToken令牌headerfalsestringcode股票编码bodytruestring股票编码

响应示例:

{"code": 0,"data": [{"bkCode": "","bkName": "","bkNowPrice": "","bkNowProportion": 0,"currentDate": "","currentDateStr": "","market": 0,"sortNum": 0,"todayMainInflow": "","todayMainInflowCode": "","todayMainInflowName": "","todayMainInflowProportion": "","todayMiddleInflow": "","todayMiddleInflowProportion": "","todayMoreInflow": "","todayMoreInflowProportion": "","todaySmallInflow": "","todaySmallInflowProportion": "","todaySuperInflow": "","todaySuperInflowProportion": "","type": 0}],"exceptionMessage": "","message": "","success": true,"timestamp": 0
}

响应参数:

参数名称参数说明类型schemacode响应代码integer(int32)integer(int32)data响应的数据array版块资金流exceptionMessage异常信息stringmessage响应信息stringsuccess是否成功 true 为成功 false 为不成功booleantimestamp当前时间戳integer(int64)integer(int64)

schema属性说明

版块资金流

参数名称参数说明类型schemabkCode版块编码stringbkName版块名称stringbkNowPrice最新价stringbkNowProportion涨跌幅number(double)currentDate当前时间string(date-time)currentDateStr当前时间字符串形式stringmarket市场integer(int32)sortNum版块排名数integer(int32)todayMainInflow今日主力净注入净额stringtodayMainInflowCode今日主力净注入股票编码stringtodayMainInflowName今日主力净注入股票名称stringtodayMainInflowProportion今日主力净注入净额 占比stringtodayMiddleInflow今日 中单净注入净额stringtodayMiddleInflowProportion今日 中单净注入净额 占比stringtodayMoreInflow今日 大单净注入净额stringtodayMoreInflowProportion今日 大单净注入净额 占比stringtodaySmallInflow今日 小单净注入净额stringtodaySmallInflowProportion今日 小单净注入净额 占比stringtodaySuperInflow今日 超大净注入净额stringtodaySuperInflowProportion今日 超大净注入净额 占比stringtype类型integer(int32)

image-20231026205521873

十二. 展示股票今日资金信息

接口描述:

接口地址:/StockApi/stockCrawler/showTodayMoney

请求方式Get

consumes:

produces:["*/*"]

请求示例

{"code": "","codeType": 0,"codes": [],"count": 0,"days": 0,"endDate": "","exchange": 0,"keyword": "","pageNum": 0,"pageSize": 0,"startDate": "","subPattern": "","type": 0,"willZtEndTime": "","zbType": ""
}

请求参数

参数名称参数说明in是否必须数据类型schemaAuthorizationToken令牌headerfalsestringcode股票编码bodytruestring股票编码

响应示例:

{"code": 0,"data": [{"bkCode": "","bkName": "","bkNowPrice": "","bkNowProportion": "","code": "","currentDate": "","name": "","todayMainInflow": "","todayMiddleInflow": "","todayMoreInflow": "","todaySmallInflow": "","todaySuperInflow": "","type": 0}],"exceptionMessage": "","message": "","success": true,"timestamp": 0
}

响应参数:

参数名称参数说明类型schemacode响应代码integer(int32)integer(int32)data响应的数据array股票今日资金数据展示VoexceptionMessage异常信息stringmessage响应信息stringsuccess是否成功 true 为成功 false 为不成功booleantimestamp当前时间戳integer(int64)integer(int64)

schema属性说明

股票今日资金数据展示Vo

参数名称参数说明类型schemabkCode股票编码stringbkName股票名称stringbkNowPrice最新价stringbkNowProportion最新价涨跌比例stringcode股票编码stringcurrentDate日期string(date-time)name股票名称stringtodayMainInflow今日主力净注入净额stringtodayMiddleInflow今日 中单净注入净额stringtodayMoreInflow今日 大单净注入净额stringtodaySmallInflow今日 小单净注入净额stringtodaySuperInflow今日 超大净注入净额stringtype类型integer(int32)

image-20231026205743797

十三. 获取天级别最近的历史记录

接口描述:

接口地址:/StockApi/stockHistory/getLastHistory/{code}/{days}

请求方式GET

consumes:``

produces:["*/*"]

请求参数

参数名称参数说明in是否必须数据类型schemaAuthorizationToken令牌headerfalsestringcodecodepathtruestringdaysdayspathtrueinteger

响应示例:

{"code": 0,"data": [{"amount": 0,"amplitude": 0,"bias12": 0,"bias24": 0,"bias6": 0,"boll": {"continueExpand": 0,"d": 0,"m": 0,"u": 0},"cci14": {"tp": 0,"value": 0},"changingProportion": 0,"close": 0,"closeTime": "","dmi": {"adx": 0,"adxr": 0,"dim": 0,"dip": 0,"dmm": 0,"dmp": 0,"dx": 0,"tr": 0},"ema10": 0,"ema20": 0,"ema5": 0,"ema60": 0,"high": 0,"kdj": {"d": 0,"j": 0,"k": 0},"low": 0,"ma10": 0,"ma20": 0,"ma40": 0,"ma5": 0,"ma60": 0,"macd": {"continueRise": 0,"dea": 0,"dif": 0,"fastEma": 0,"macdValue": 0,"slowEma": 0},"open": 0,"pctChange": 0,"preClose": 0,"priceChange": 0,"qpcv": {"arise": 0,"crise": 0,"vrise": 0,"yang": 0},"rsi12": {"emaDown": 0,"emaUp": 0,"value": 0},"rsi24": {"emaDown": 0,"emaUp": 0,"value": 0},"rsi6": {"emaDown": 0,"emaUp": 0,"value": 0},"stockName": "","symbol": "","td": 0,"timestamp": "","top3In20": {"ath": 0,"atl": 0,"vth": 0,"vtl": 0},"top4In30": {"ath": 0,"atl": 0,"vth": 0,"vtl": 0},"top5In60": {"ath": 0,"atl": 0,"vth": 0,"vtl": 0},"volume": 0,"wr10": 0,"wr14": 0,"wr20": 0,"wr6": 0}],"exceptionMessage": "","message": "","success": true,"timestamp": 0
}

响应参数:

参数名称参数说明类型schemacode响应代码integer(int32)integer(int32)data响应的数据arrayStockIndicatorCarrierDomainexceptionMessage异常信息stringmessage响应信息stringsuccess是否成功 true 为成功 false 为不成功booleantimestamp当前时间戳integer(int64)integer(int64)

schema属性说明

StockIndicatorCarrierDomain

参数名称参数说明类型schemaamountnumber(double)amplitudenumber(double)bias12number(double)bias24number(double)bias6number(double)bollBOLLBOLLcci14CCICCIchangingProportionnumberclosenumber(double)closeTimestring(date-time)dmiDMIDMIema10number(double)ema20number(double)ema5number(double)ema60number(double)highnumber(double)kdjKDJKDJlownumber(double)ma10number(double)ma20number(double)ma40number(double)ma5number(double)ma60number(double)macdMACDMACDopennumber(double)pctChangenumber(double)preClosenumber(double)priceChangenumber(double)qpcvXlcQPCVXlcQPCVrsi12RSIRSIrsi24RSIRSIrsi6RSIRSIstockNamestringsymbolstringtdinteger(int32)timestampstring(date-time)top3In20XlcTOPMVXlcTOPMVtop4In30XlcTOPMVXlcTOPMVtop5In60XlcTOPMVXlcTOPMVvolumenumber(double)wr10number(double)wr14number(double)wr20number(double)wr6number(double)

BOLL

参数名称参数说明类型schemacontinueExpandinteger(int32)dnumber(double)mnumber(double)unumber(double)

CCI

参数名称参数说明类型schematpnumber(double)valuenumber(double)

DMI

参数名称参数说明类型schemaadxnumber(double)adxrnumber(double)dimnumber(double)dipnumber(double)dmmnumber(double)dmpnumber(double)dxnumber(double)trnumber(double)

KDJ

参数名称参数说明类型schemadnumber(double)jnumber(double)knumber(double)

MACD

参数名称参数说明类型schemacontinueRiseinteger(int32)deanumber(double)difnumber(double)fastEmanumber(double)macdValuenumber(double)slowEmanumber(double)

XlcQPCV

参数名称参数说明类型schemaariseinteger(int32)criseinteger(int32)vriseinteger(int32)yanginteger(int32)

RSI

参数名称参数说明类型schemaemaDownnumber(double)emaUpnumber(double)valuenumber(double)

XlcTOPMV

参数名称参数说明类型schemaathnumber(double)atlnumber(double)vthnumber(double)vtlnumber(double)

image-20231026210021729

十四. 查询股票的历史记录

接口描述:

接口地址:/StockApi/stockHistory/history

请求方式POST

consumes:["application/json"]

produces:["*/*"]

请求示例

{"code": "","endDate": "","pageNum": 0,"pageSize": 0,"startDate": ""
}

请求参数

参数名称参数说明in是否必须数据类型schemaAuthorizationToken令牌headerfalsestringstockRostockRobodytrue股票对象股票对象

schema属性说明

股票对象

参数名称参数说明in是否必须数据类型schemacode股票的编码bodyfalsestringendDate结束日期bodyfalsestringpageNum页数bodytrueinteger(int32)pageSize每页显示最大数量bodytrueinteger(int32)startDate开始日期bodyfalsestring

响应示例:

{"code": 0,"data": {"list": [{"amplitude": 0,"amplitudeProportion": 0,"appointThan": "","avgPrice": 0,"buyHand": 0,"changingProportion": 0,"closingPrice": 0,"code": "","currDate": "","dynamicPriceRatio": 0,"highestPrice": 0,"highestTime": "","innerDish": 0,"lowestPrice": 0,"lowestTime": "","ltMarket": 0,"market": 0,"name": "","openingPrice": 0,"outDish": 0,"sellHand": 0,"staticPriceRatio": 0,"than": 0,"tradingValue": 0,"tradingVolume": 0,"ttmPriceRatio": 0,"yesClosingPrice": 0}],"total": 0},"exceptionMessage": "","message": "","success": true,"timestamp": 0
}

响应参数:

参数名称参数说明类型schemacode响应代码integer(int32)integer(int32)data响应的数据分页展示«股票记录展示Vo»分页展示«股票记录展示Vo»exceptionMessage异常信息stringmessage响应信息stringsuccess是否成功 true 为成功 false 为不成功booleantimestamp当前时间戳integer(int64)integer(int64)

schema属性说明

分页展示«股票记录展示Vo»

参数名称参数说明类型schemalistlist数据array股票记录展示Vototal总数integer(int64)

股票记录展示Vo

参数名称参数说明类型schemaamplitude涨跌额numberamplitudeProportion涨跌幅度numberappointThan委比stringavgPrice平均价numberbuyHand买手integer(int32)changingProportion换手率numberclosingPrice收盘价numbercode编码stringcurrDate当前日期string(date-time)dynamicPriceRatio动态的市盈率numberhighestPrice最高价numberhighestTime最高价时间string(date-time)innerDish内盘integer(int32)lowestPrice最低价numberlowestTime最低价时间string(date-time)ltMarket流动市值numbermarket市值numbername名称stringopeningPrice开盘价numberoutDish外盘integer(int32)sellHand卖手integer(int32)staticPriceRatio静态的市盈率numberthan量比numbertradingValue成交额numbertradingVolume成交量numberttmPriceRatiottm 的市盈率numberyesClosingPrice昨日收盘价number

按照日期 降序展示

image-20231026210306693

十五. 查看天/星期范围统计的历史记录

接口描述:

接口地址:/StockApi/stockHistory/listDayRange

请求方式POST

consumes:["application/json"]

produces:["*/*"]

请求示例

{"code": "","endDate": "","endDayNum": 0,"month": 0,"pageNum": 0,"pageSize": 0,"startDate": "","startDayNum": 0,"weeks": []
}

请求参数

参数名称参数说明in是否必须数据类型schemaAuthorizationToken令牌headerfalsestringstockDayStatRostockDayStatRobodytrue股票天数统计Ro股票天数统计Ro

schema属性说明

股票天数统计Ro

参数名称参数说明in是否必须数据类型schemacode股票的编码bodyfalsestringendDate结束日期bodyfalsestringendDayNum结束的天数字bodyfalseinteger(int32)month月份bodyfalseinteger(int32)pageNum页数bodytrueinteger(int32)pageSize每页显示最大数量bodytrueinteger(int32)startDate开始日期bodyfalsestringstartDayNum开始的天数字bodyfalseinteger(int32)weeks星期几的集合bodyfalsearray

响应示例:

{"code": 0,"data": {"list": [{"amplitude": 0,"amplitudeProportion": 0,"appointThan": "","avgPrice": 0,"buyHand": 0,"changingProportion": 0,"closingPrice": 0,"code": "","currDate": "","dynamicPriceRatio": 0,"highestPrice": 0,"highestTime": "","innerDish": 0,"lowestPrice": 0,"lowestTime": "","ltMarket": 0,"market": 0,"name": "","openingPrice": 0,"outDish": 0,"sellHand": 0,"staticPriceRatio": 0,"than": 0,"tradingValue": 0,"tradingVolume": 0,"ttmPriceRatio": 0,"yesClosingPrice": 0}],"total": 0},"exceptionMessage": "","message": "","success": true,"timestamp": 0
}

响应参数:

参数名称参数说明类型schemacode响应代码integer(int32)integer(int32)data响应的数据分页展示«股票记录展示Vo»分页展示«股票记录展示Vo»exceptionMessage异常信息stringmessage响应信息stringsuccess是否成功 true 为成功 false 为不成功booleantimestamp当前时间戳integer(int64)integer(int64)

schema属性说明

分页展示«股票记录展示Vo»

参数名称参数说明类型schemalistlist数据array股票记录展示Vototal总数integer(int64)

股票记录展示Vo

参数名称参数说明类型schemaamplitude涨跌额numberamplitudeProportion涨跌幅度numberappointThan委比stringavgPrice平均价numberbuyHand买手integer(int32)changingProportion换手率numberclosingPrice收盘价numbercode编码stringcurrDate当前日期string(date-time)dynamicPriceRatio动态的市盈率numberhighestPrice最高价numberhighestTime最高价时间string(date-time)innerDish内盘integer(int32)lowestPrice最低价numberlowestTime最低价时间string(date-time)ltMarket流动市值numbermarket市值numbername名称stringopeningPrice开盘价numberoutDish外盘integer(int32)sellHand卖手integer(int32)staticPriceRatio静态的市盈率numberthan量比numbertradingValue成交额numbertradingVolume成交量numberttmPriceRatiottm 的市盈率numberyesClosingPrice昨日收盘价number

image-20231026210524089

十六. 展示股票今日资金信息,Image 处理成图进行展示

接口描述:

接口地址:/StockApi/stockHistory/showTodayMoneyImage

请求方式Get

consumes:["application/json"]

produces:["*/*"]

请求示例

{"code": ""
}

请求参数

参数名称参数说明in是否必须数据类型schemaAuthorizationToken令牌headerfalsestringcode股票编码bodytruestring股票对象

schema属性说明

十七. 查看最近多少天某个属性的涨跌幅度值

接口描述:

接口地址:/StockApi/stockHistory/stageZDFRange

请求方式POST

consumes:["application/json"]

produces:["*/*"]

请求示例

{"property":"closingPrice","code":"002812","startDate":"2023-10-11","endDate": "2023-10-26"
}

请求参数

参数名称参数说明in是否必须数据类型schemaAuthorizationToken令牌headerfalsestringstageRostageRobodytrue阶段性的Ro阶段性的Ro

schema属性说明

阶段性的Ro

参数名称参数说明in是否必须数据类型schemacode股票编码bodytruestringstartDate开始日期bodytruestringendDate结束日期bodytruestringproperty股票的某个属性bodytruestring属性支持 HistoryVo 中的相关的 double 属性

响应示例:

{"code": 0,"data": {"changeValue": 0,"codes": [],"details": []},"exceptionMessage": "","message": "","success": true,"timestamp": 0
}

响应参数:

参数名称参数说明类型schemacode响应代码integer(int32)integer(int32)data响应的数据选中的策略展示VO选中的策略展示VOexceptionMessage异常信息stringmessage响应信息stringsuccess是否成功 true 为成功 false 为不成功booleantimestamp当前时间戳integer(int64)integer(int64)

schema属性说明

选中的策略展示VO

参数名称参数说明类型schemachangeValue幅度值number(double)codes股票编码集合arraydetails详情信息array

image-20231026212248784

十八. 查询近一个月的更新记录信息

接口描述:

接口地址:/StockApi/stockLog/list

请求方式POST

consumes:["application/json"]

produces:["*/*"]

请求示例

{"pageSize": 15,"pageNum": 1,"code": "","startDate": "2023-10-12","endDate": "2023-10-26","udpateType": "1"  
}

请求参数

参数名称参数说明in是否必须数据类型schemaAuthorizationToken令牌headerfalsestringstockUpdateLogRostockUpdateLogRobodytrue股票更新日志Ro股票更新日志Ro

schema属性说明

股票更新日志Ro

参数名称参数说明in是否必须数据类型schemacode股票的编码bodyfalsestringendDate结束日期bodytruestringpageNum页数bodytrueinteger(int32)pageSize每页显示最大数量bodytrueinteger(int32)startDate开始日期bodytruestringupdateType更新类型 1为新上市 2为名称修改 3为退市bodyfalse

响应示例:

{"code": 0,"data": {"list": [{"code": "","exchange": 0,"fullCode": "","name": "","updateTime": "","updateType": 0}],"total": 0},"exceptionMessage": "","message": "","success": true,"timestamp": 0
}

响应参数:

参数名称参数说明类型schemacode响应代码integer(int32)integer(int32)data响应的数据分页展示«股票更新历史»分页展示«股票更新历史»exceptionMessage异常信息stringmessage响应信息stringsuccess是否成功 true 为成功 false 为不成功booleantimestamp当前时间戳integer(int64)integer(int64)

schema属性说明

分页展示«股票更新历史»

参数名称参数说明类型schemalistlist数据array股票更新历史total总数integer(int64)

股票更新历史

参数名称参数说明类型schemacode股票codestringexchange股票 exchangeinteger(int32)fullCode股票 全编码stringname股票名称stringupdateTime更新时间string(date-time)updateType更新类型 1为新上市 2为名称修改 3为退市integer(int32)

image-20231026212436319

查看全文

99%的人还看了

猜你感兴趣

版权申明

本文"股票基础数据(二)":http://eshow365.cn/6-41562-0.html 内容来自互联网,请自行判断内容的正确性。如有侵权请联系我们,立即删除!