新增印度股票行情接口

This commit is contained in:
dengli
2023-11-29 22:01:26 +08:00
parent 53039f9055
commit d8a8a20861
4 changed files with 161 additions and 4 deletions

View File

@@ -114,6 +114,46 @@ public class StockApiController {
return this.stockService.getNewStock();
}
//印度股票个股详情
@RequestMapping({"getINDStockInfo.do"})
@ApiOperation(value = "印度股票个股详情", httpMethod = "GET")
@ResponseBody
public ServerResponse getINDStockInfo(@RequestParam("stockCode") String stockCode) {
return this.stockService.getStockInfo(stockCode);
}
//印度股票时线-K线
@RequestMapping({"getINDTimeK.do"})
@ApiOperation(value = "印度股票时线-K线", httpMethod = "GET")
@ResponseBody
public ServerResponse getINDTimeK(@RequestParam("stockCode") String stockCode) {
return this.stockService.getTimeK(stockCode);
}
//印度股票日线-K线
@RequestMapping({"getINDDayK.do"})
@ApiOperation(value = "印度股票日线-K线", httpMethod = "GET")
@ResponseBody
public ServerResponse getINDDayK(@RequestParam("stockCode") String stockCode) {
return this.stockService.getDayK(stockCode);
}
//印度股票周线-K线
@RequestMapping({"getINDWeekK.do"})
@ApiOperation(value = "印度股票周线-K线", httpMethod = "GET")
@ResponseBody
public ServerResponse getINDWeekK(@RequestParam("stockCode") String stockCode) {
return this.stockService.getWeekK(stockCode);
}
//印度股票月线-K线
@RequestMapping({"getINDMonthK.do"})
@ApiOperation(value = "印度股票月线-K线", httpMethod = "GET")
@ResponseBody
public ServerResponse getINDMonthK(@RequestParam("stockCode") String stockCode) {
return this.stockService.getMonthK(stockCode);
}
//根据股票id查询 股票指数、大盘指数信息
@RequestMapping({"getMarketByStockGid.do"})
@ApiOperation(value = "根据股票id查询 股票指数、大盘指数信息", httpMethod = "GET")