|
|
|
@ -46,4 +46,33 @@ public class IndexController { |
|
|
|
String result = indexService.rsi(list); |
|
|
|
return Result.success("success", result); |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
@PostMapping("/ma") |
|
|
|
public Result ma(@RequestBody StockInfo stock) { |
|
|
|
List<StockDailyData> list = indexService.getStockData(stock); |
|
|
|
String result = indexService.ma(list); |
|
|
|
return Result.success("success", result); |
|
|
|
} |
|
|
|
|
|
|
|
@PostMapping("/cci") |
|
|
|
public Result cci(@RequestBody StockInfo stock) { |
|
|
|
List<StockDailyData> list = indexService.getStockData(stock); |
|
|
|
String result = indexService.cci(list); |
|
|
|
return Result.success("success", result); |
|
|
|
} |
|
|
|
|
|
|
|
@PostMapping("/expma") |
|
|
|
public Result expma(@RequestBody StockInfo stock) { |
|
|
|
List<StockDailyData> list = indexService.getStockData(stock); |
|
|
|
String result = indexService.expma(list); |
|
|
|
return Result.success("success", result); |
|
|
|
} |
|
|
|
|
|
|
|
@PostMapping("/wr") |
|
|
|
public Result wr(@RequestBody StockInfo stock) { |
|
|
|
List<StockDailyData> list = indexService.getStockData(stock); |
|
|
|
String result = indexService.wr(list); |
|
|
|
return Result.success("success", result); |
|
|
|
} |
|
|
|
} |