| | |
| | | @ApiOperation(value = "findUsdtCnyExchange", notes = "Cny|Usdt兑换")
|
| | | @GetMapping(value = "/findUsdtCnyExchange")
|
| | | public Result findUsdtCnyExchange(@ApiParam(name = "type", value = "类型", type="string", required=true) @RequestParam("type") String type) {
|
| | | log.info("type值----->{}", type);
|
| | | return platformCnyUsdtExchangeService.findUsdtCnyExchange(type);
|
| | | }
|
| | |
|
| | |
| | | homeSymbolsVo.setUpOrDown(upOrDown); |
| | | homeSymbolsVo.setVolume(symbolObject.getAmount()); |
| | | if (cnyUsdtExchange != null) { |
| | | BigDecimal cnyPrice = newestPrice.multiply(cnyUsdtExchange.getValue()).setScale(2, BigDecimal.ROUND_HALF_UP); |
| | | BigDecimal cnyPrice = newestPrice.multiply(cnyUsdtExchange.getValue().add(cnyUsdtExchange.getDiff())).setScale(2, BigDecimal.ROUND_HALF_UP); |
| | | homeSymbolsVo.setCnyPrice(cnyPrice); |
| | | } |
| | | |