| | |
| | | FollowTraderProfitInfoVo.setDeclaration(declaration);
|
| | | Integer isAll = followTraderInfoEntity.getIsAll();
|
| | | FollowTraderProfitInfoVo.setIsAll(isAll);
|
| | |
|
| | | Date entryTime = followTraderInfoEntity.getEntryTime();
|
| | | int datePoor = getDatePoor(entryTime, new Date());
|
| | | FollowTraderProfitInfoVo.setEntryDays(datePoor);
|
| | |
|
| | | String labels = followTraderInfoEntity.getLabels();
|
| | | if(StrUtil.isNotEmpty(labels)) {
|
| | |
| | | tradeProfitInfoVo.setTotalFollowerCnt(totalFollowerCnt);
|
| | | BigDecimal totalOrderCnt = followTraderProfitInfoVo.getTotalOrderCnt();
|
| | | tradeProfitInfoVo.setTotalOrderCnt(totalOrderCnt);
|
| | | }
|
| | | BigDecimal thirtyProfitRatio = followTraderProfitInfoVo.getThirtyProfitRatio();
|
| | | tradeProfitInfoVo.setThirtyProfitRatio(thirtyProfitRatio);
|
| | | BigDecimal thirtyRatio = followTraderProfitInfoVo.getThirtyRatio();
|
| | | tradeProfitInfoVo.setThirtyRatio(thirtyRatio);
|
| | | }
|
| | | return Result.ok(tradeProfitInfoVo);
|
| | | }
|
| | |
|
| | |
| | | myFollowOrderVo.setLeverRatio(leverRatio);
|
| | | BigDecimal rewardAmount = contractOrderEntity.getRewardAmount().setScale(2, BigDecimal.ROUND_DOWN);
|
| | | myFollowOrderVo.setRewardAmount(rewardAmount);
|
| | | BigDecimal rewardRatio = contractOrderEntity.getRewardRatio().setScale(4, BigDecimal.ROUND_DOWN);
|
| | | BigDecimal rewardRatio = contractOrderEntity.getRewardRatio() == null ? BigDecimal.ZERO : contractOrderEntity.getRewardRatio().setScale(4, BigDecimal.ROUND_DOWN);
|
| | | myFollowOrderVo.setRewardRatio(rewardRatio);
|
| | | int symbolCnt = contractOrderEntity.getSymbolCnt();
|
| | | myFollowOrderVo.setSymbolCnt(symbolCnt);
|