当前位置: 首页 > article >正文

股票基础数据(二)

二. 股票基础数据

文章目录

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

接口描述:

接口地址:/StockApi/stock/findCanRong

请求方式:Get

consumes:["application/json"]

produces:["*/*"]

请求参数

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

响应示例:

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

响应参数:

参数名称参数说明类型schema
code响应代码integer(int32)integer(int32)
data响应的数据array
exceptionMessage异常信息string
message响应信息string
success是否成功 true 为成功 false 为不成功boolean
timestamp当前时间戳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是否必须数据类型schema
AuthorizationToken令牌headerfalsestring
stockRostockRobodytrue股票对象股票对象

schema属性说明

股票对象

参数名称参数说明in是否必须数据类型schema
keyword搜索的关键字bodyfalsestring
pageNum页数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
}

响应参数:

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

schema属性说明

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

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

股票展示信息

参数名称参数说明类型schema
amplitude涨跌幅度number
amplitudeProportion涨跌幅度百分比string
closingPrice收盘价number
code股票的代码string
date当前天string
exchange交易所类型integer(int32)
fullCode股票的全代码string
highestPrice最高价格number
lowestPrice最低价格number
name股票的名称string
nowPrice当前的价格number
openingPrice开盘价number
tradingValue成交量金额number
tradingVolume成交量(股)integer(int64)
yesClosingPrice昨天的收盘价number
zt是否涨停 1为涨停 0为不涨停integer(int32)

image-20231026194459734

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

接口描述:

接口地址:/StockApi/stock/listDbType

请求方式:Get

consumes:

produces:["*/*"]

请求参数

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

响应示例:

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

响应参数:

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

schema属性说明

字典配置展示

参数名称参数说明类型schema
codecodestring
namenamestring

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是否必须数据类型schema
AuthorizationToken令牌headerfalsestring

响应示例:

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

响应参数:

参数名称参数说明类型schema
code响应代码integer(int32)integer(int32)
data响应的数据array
exceptionMessage异常信息string
message响应信息string
success是否成功 true 为成功 false 为不成功boolean
timestamp当前时间戳integer(int64)integer(int64)

image-20231026195016988

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

接口描述:

接口地址:/StockApi/stockCrawler/getStockInfo

请求方式Get

consumes:["application/json"]

produces:["*/*"]

请求示例

{
	"code": ""
}

请求参数

参数名称参数说明in是否必须数据类型schema
AuthorizationToken令牌headerfalsestring
code股票六位数编码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
}

响应参数:

参数名称参数说明类型schema
code响应代码integer(int32)integer(int32)
data响应的数据股票展示信息股票展示信息
exceptionMessage异常信息string
message响应信息string
success是否成功 true 为成功 false 为不成功boolean
timestamp当前时间戳integer(int64)integer(int64)

schema属性说明

股票展示信息

参数名称参数说明类型schema
amplitude涨跌幅度number
amplitudeProportion涨跌幅度百分比string
closingPrice收盘价number
code股票的代码string
date当前天string
exchange交易所类型integer(int32)
fullCode股票的全代码string
highestPrice最高价格number
lowestPrice最低价格number
name股票的名称string
nowPrice当前的价格number
openingPrice开盘价number
tradingValue成交量金额number
tradingVolume成交量(股)integer(int64)
yesClosingPrice昨天的收盘价number
zt是否涨停 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是否必须数据类型schema
AuthorizationToken令牌headerfalsestring
stockRostockRobodytrue股票对象股票对象

schema属性说明

股票对象

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

响应示例:

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

响应参数:

参数名称参数说明类型schema
code响应代码integer(int32)integer(int32)
data响应的数据string
exceptionMessage异常信息string
message响应信息string
success是否成功 true 为成功 false 为不成功boolean
timestamp当前时间戳integer(int64)integer(int64)

获取天级别 K线:

image-20231026201059924

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

接口描述:

接口地址:/StockApi/stockCrawler/showKData

请求方式POST

consumes:["application/json"]

produces:["*/*"]

请求示例

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

请求参数

参数名称参数说明in是否必须数据类型schema
AuthorizationToken令牌headerfalsestring
stockRostockRobodytrue股票对象股票对象

schema属性说明

股票对象

参数名称参数说明in是否必须数据类型schema
code股票的编码bodytruestring
type查看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
}

响应参数:

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

schema属性说明

股票K线数据展示

参数名称参数说明类型schema
amplitude涨跌幅度number
amplitudeProportion涨跌幅度百分比number
changingProportion换手率number
close收盘价number
code股票的代码string
day当前天string
high最高价格number
idinteger(int32)
low最低价格number
name股票的名称string
open开盘价number
preClose前收number
priceChange前涨跌额度number
subAmplitude今日震幅 high -lownumber
subAmplitudeProportion今日震幅比例number
than量比number
tradeDate交易天string(date-time)
tradingValue成交量金额number
volume成交量(股)integer(int64)

按照日期升序排列

查询天 type =2

image-20231026201752799

查询 15分钟的, type : 6

image-20231026202023766

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

接口描述:

接口地址:/StockApi/stockCrawler/showStockKline

请求方式POST

consumes:["application/json"]

produces:["*/*"]

请求示例

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

请求参数

参数名称参数说明in是否必须数据类型schema
AuthorizationToken令牌headerfalsestring
stockRostockRobodytrue股票对象股票对象

schema属性说明

股票对象

参数名称参数说明in是否必须数据类型schema
code股票的编码bodytruestring
type查看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是否必须数据类型schema
AuthorizationToken令牌headerfalsestring
stockRostockRobodytrue股票对象股票对象

schema属性说明

股票对象

参数名称参数说明in是否必须数据类型schema
code股票的编码bodytruestring
type查看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
}

响应参数:

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

schema属性说明

参数名称参数说明类型schema
code股票编码string
date日期string
details明细数据array
willZt是否将要涨停boolean

分时数据查询: type 为1

image-20231026204831965

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

image-20231026204914597

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

接口描述:

接口地址:/StockApi/stockCrawler/listRelationBk

请求方式:Get

consumes:

produces:["*/*"]

请求示例

{
	"code": "002812"
}

请求参数

参数名称参数说明in是否必须数据类型schema
AuthorizationToken令牌headerfalsestring
code股票编码bodytruestring股票六位数编码

响应示例:

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

响应参数:

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

schema属性说明

股票与版块

参数名称参数说明类型schema
amplitude幅度integer(int32)
bkCode版块编码string
bkName版块名称string
stockCode股票编码string

image-20231026205240920

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

接口描述:

接口地址:/StockApi/stockCrawler/showHistoryMoney

请求方式:Get

consumes:

produces:["*/*"]

请求示例

{
	"code": "002812"
}

请求参数

参数名称参数说明in是否必须数据类型schema
AuthorizationToken令牌headerfalsestring
code股票编码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
}

响应参数:

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

schema属性说明

版块资金流

参数名称参数说明类型schema
bkCode版块编码string
bkName版块名称string
bkNowPrice最新价string
bkNowProportion涨跌幅number(double)
currentDate当前时间string(date-time)
currentDateStr当前时间字符串形式string
market市场integer(int32)
sortNum版块排名数integer(int32)
todayMainInflow今日主力净注入净额string
todayMainInflowCode今日主力净注入股票编码string
todayMainInflowName今日主力净注入股票名称string
todayMainInflowProportion今日主力净注入净额 占比string
todayMiddleInflow今日 中单净注入净额string
todayMiddleInflowProportion今日 中单净注入净额 占比string
todayMoreInflow今日 大单净注入净额string
todayMoreInflowProportion今日 大单净注入净额 占比string
todaySmallInflow今日 小单净注入净额string
todaySmallInflowProportion今日 小单净注入净额 占比string
todaySuperInflow今日 超大净注入净额string
todaySuperInflowProportion今日 超大净注入净额 占比string
type类型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是否必须数据类型schema
AuthorizationToken令牌headerfalsestring
code股票编码bodytruestring股票编码

响应示例:

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

响应参数:

参数名称参数说明类型schema
code响应代码integer(int32)integer(int32)
data响应的数据array股票今日资金数据展示Vo
exceptionMessage异常信息string
message响应信息string
success是否成功 true 为成功 false 为不成功boolean
timestamp当前时间戳integer(int64)integer(int64)

schema属性说明

股票今日资金数据展示Vo

参数名称参数说明类型schema
bkCode股票编码string
bkName股票名称string
bkNowPrice最新价string
bkNowProportion最新价涨跌比例string
code股票编码string
currentDate日期string(date-time)
name股票名称string
todayMainInflow今日主力净注入净额string
todayMiddleInflow今日 中单净注入净额string
todayMoreInflow今日 大单净注入净额string
todaySmallInflow今日 小单净注入净额string
todaySuperInflow今日 超大净注入净额string
type类型integer(int32)

image-20231026205743797

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

接口描述:

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

请求方式GET

consumes:``

produces:["*/*"]

请求参数

参数名称参数说明in是否必须数据类型schema
AuthorizationToken令牌headerfalsestring
codecodepathtruestring
daysdayspathtrueinteger

响应示例:

{
	"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
}

响应参数:

参数名称参数说明类型schema
code响应代码integer(int32)integer(int32)
data响应的数据arrayStockIndicatorCarrierDomain
exceptionMessage异常信息string
message响应信息string
success是否成功 true 为成功 false 为不成功boolean
timestamp当前时间戳integer(int64)integer(int64)

schema属性说明

StockIndicatorCarrierDomain

参数名称参数说明类型schema
amountnumber(double)
amplitudenumber(double)
bias12number(double)
bias24number(double)
bias6number(double)
bollBOLLBOLL
cci14CCICCI
changingProportionnumber
closenumber(double)
closeTimestring(date-time)
dmiDMIDMI
ema10number(double)
ema20number(double)
ema5number(double)
ema60number(double)
highnumber(double)
kdjKDJKDJ
lownumber(double)
ma10number(double)
ma20number(double)
ma40number(double)
ma5number(double)
ma60number(double)
macdMACDMACD
opennumber(double)
pctChangenumber(double)
preClosenumber(double)
priceChangenumber(double)
qpcvXlcQPCVXlcQPCV
rsi12RSIRSI
rsi24RSIRSI
rsi6RSIRSI
stockNamestring
symbolstring
tdinteger(int32)
timestampstring(date-time)
top3In20XlcTOPMVXlcTOPMV
top4In30XlcTOPMVXlcTOPMV
top5In60XlcTOPMVXlcTOPMV
volumenumber(double)
wr10number(double)
wr14number(double)
wr20number(double)
wr6number(double)

BOLL

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

CCI

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

DMI

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

KDJ

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

MACD

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

XlcQPCV

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

RSI

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

XlcTOPMV

参数名称参数说明类型schema
athnumber(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是否必须数据类型schema
AuthorizationToken令牌headerfalsestring
stockRostockRobodytrue股票对象股票对象

schema属性说明

股票对象

参数名称参数说明in是否必须数据类型schema
code股票的编码bodyfalsestring
endDate结束日期bodyfalsestring
pageNum页数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
}

响应参数:

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

schema属性说明

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

参数名称参数说明类型schema
listlist数据array股票记录展示Vo
total总数integer(int64)

股票记录展示Vo

参数名称参数说明类型schema
amplitude涨跌额number
amplitudeProportion涨跌幅度number
appointThan委比string
avgPrice平均价number
buyHand买手integer(int32)
changingProportion换手率number
closingPrice收盘价number
code编码string
currDate当前日期string(date-time)
dynamicPriceRatio动态的市盈率number
highestPrice最高价number
highestTime最高价时间string(date-time)
innerDish内盘integer(int32)
lowestPrice最低价number
lowestTime最低价时间string(date-time)
ltMarket流动市值number
market市值number
name名称string
openingPrice开盘价number
outDish外盘integer(int32)
sellHand卖手integer(int32)
staticPriceRatio静态的市盈率number
than量比number
tradingValue成交额number
tradingVolume成交量number
ttmPriceRatiottm 的市盈率number
yesClosingPrice昨日收盘价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是否必须数据类型schema
AuthorizationToken令牌headerfalsestring
stockDayStatRostockDayStatRobodytrue股票天数统计Ro股票天数统计Ro

schema属性说明

股票天数统计Ro

参数名称参数说明in是否必须数据类型schema
code股票的编码bodyfalsestring
endDate结束日期bodyfalsestring
endDayNum结束的天数字bodyfalseinteger(int32)
month月份bodyfalseinteger(int32)
pageNum页数bodytrueinteger(int32)
pageSize每页显示最大数量bodytrueinteger(int32)
startDate开始日期bodyfalsestring
startDayNum开始的天数字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
}

响应参数:

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

schema属性说明

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

参数名称参数说明类型schema
listlist数据array股票记录展示Vo
total总数integer(int64)

股票记录展示Vo

参数名称参数说明类型schema
amplitude涨跌额number
amplitudeProportion涨跌幅度number
appointThan委比string
avgPrice平均价number
buyHand买手integer(int32)
changingProportion换手率number
closingPrice收盘价number
code编码string
currDate当前日期string(date-time)
dynamicPriceRatio动态的市盈率number
highestPrice最高价number
highestTime最高价时间string(date-time)
innerDish内盘integer(int32)
lowestPrice最低价number
lowestTime最低价时间string(date-time)
ltMarket流动市值number
market市值number
name名称string
openingPrice开盘价number
outDish外盘integer(int32)
sellHand卖手integer(int32)
staticPriceRatio静态的市盈率number
than量比number
tradingValue成交额number
tradingVolume成交量number
ttmPriceRatiottm 的市盈率number
yesClosingPrice昨日收盘价number

image-20231026210524089

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

接口描述:

接口地址:/StockApi/stockHistory/showTodayMoneyImage

请求方式Get

consumes:["application/json"]

produces:["*/*"]

请求示例

{
	"code": ""
}

请求参数

参数名称参数说明in是否必须数据类型schema
AuthorizationToken令牌headerfalsestring
code股票编码bodytruestring股票对象

schema属性说明

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

接口描述:

接口地址:/StockApi/stockHistory/stageZDFRange

请求方式POST

consumes:["application/json"]

produces:["*/*"]

请求示例

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

请求参数

参数名称参数说明in是否必须数据类型schema
AuthorizationToken令牌headerfalsestring
stageRostageRobodytrue阶段性的Ro阶段性的Ro

schema属性说明

阶段性的Ro

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

响应示例:

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

响应参数:

参数名称参数说明类型schema
code响应代码integer(int32)integer(int32)
data响应的数据选中的策略展示VO选中的策略展示VO
exceptionMessage异常信息string
message响应信息string
success是否成功 true 为成功 false 为不成功boolean
timestamp当前时间戳integer(int64)integer(int64)

schema属性说明

选中的策略展示VO

参数名称参数说明类型schema
changeValue幅度值number(double)
codes股票编码集合array
details详情信息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是否必须数据类型schema
AuthorizationToken令牌headerfalsestring
stockUpdateLogRostockUpdateLogRobodytrue股票更新日志Ro股票更新日志Ro

schema属性说明

股票更新日志Ro

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

响应示例:

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

响应参数:

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

schema属性说明

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

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

股票更新历史

参数名称参数说明类型schema
code股票codestring
exchange股票 exchangeinteger(int32)
fullCode股票 全编码string
name股票名称string
updateTime更新时间string(date-time)
updateType更新类型 1为新上市 2为名称修改 3为退市integer(int32)

image-20231026212436319


http://www.kler.cn/a/137469.html

相关文章:

  • 全网最全jmeter接口测试/接口自动化测试看这篇文章就够了:跨线程组传递jmeter变量及cookie的处理
  • 渲染器——简单Diff算法
  • 政府采购变数大,联想还值不值得代理渠道商们“跟”?
  • 用javascript方法,禁止用户操作页面
  • Apache Doris安装部署
  • 【JavaSE】-4-循环结构
  • 【CSH 入门基础 10 -- csh 设置 脚本执行的优先级】
  • UE4基础篇十六:自定义 EQS 生成器
  • uniapp-轮播图点击预览功能
  • re 2021强网杯复现
  • Java8Stream快速使用
  • IOS输入框聚焦会把内容区域顶起
  • 海外IP代理科普——API代理
  • matlab求矩阵的伪逆或者负二分之一次方
  • Mybatis系列之 parameterMap 弃用了
  • 请求的接口响应状态为已取消的原因
  • Linux防火墙常用操作及端口开放
  • 基于STC12C5A60S2系列1T 8051单片机的液晶显示器LCD1602显示两行常规字符应用
  • 【python】Python生成GIF动图,多张图片转动态图,pillow
  • 接口自动化测试:pytest基础讲解