| | |
| | | package com.xcong.excoin.modules.contract.controller; |
| | | |
| | | import com.xcong.excoin.common.response.Result; |
| | | import com.xcong.excoin.modules.contract.parameter.dto.ChangeBondDto; |
| | | import com.xcong.excoin.modules.contract.parameter.dto.ProfitOrLessDto; |
| | | import com.xcong.excoin.modules.contract.parameter.dto.SubmitOrderDto; |
| | | import com.xcong.excoin.modules.contract.parameter.dto.SymbolDto; |
| | | import com.xcong.excoin.modules.contract.parameter.dto.*; |
| | | import com.xcong.excoin.modules.contract.parameter.vo.ContractMoneyInfoVo; |
| | | import com.xcong.excoin.modules.contract.parameter.vo.HoldOrderListVo; |
| | | import com.xcong.excoin.modules.contract.service.ContractHoldOrderService; |
| | |
| | | @ApiResponse(code = 0, message = "success", response = HoldOrderListVo.class) |
| | | }) |
| | | @GetMapping(value = "/findHoldOrderList") |
| | | public Result findHoldOrderList(@ApiParam(name = "symbol", value = "币种", required = true, example = "BTC/USDT") @RequestParam(value = "symbol", required = false) String symbol) { |
| | | public Result findHoldOrderList(@ApiParam(name = "symbol", value = "币种", example = "BTC/USDT") @RequestParam(value = "symbol", required = false) String symbol) { |
| | | return contractHoldOrderService.findHoldOrderList(symbol); |
| | | } |
| | | |
| | | @ApiOperation(value = "未完成--根据Id查询订单详情") |
| | | @ApiOperation(value = "根据Id查询持仓订单详情") |
| | | @GetMapping(value = "/findHoldOrderDetail") |
| | | public Result findHoldOrderDetail(@ApiParam(name = "id", value = "持仓ID", required = true, example = "1") @RequestParam(value = "id") Long id) { |
| | | return null; |
| | | return contractHoldOrderService.findHoldOrderDetailById(id); |
| | | } |
| | | |
| | | @ApiOperation(value = "根据Id平仓") |
| | |
| | | |
| | | @ApiOperation(value = "调整保证金") |
| | | @PostMapping(value = "/changeBond") |
| | | public Result changeBond(ChangeBondDto changeBondDto) { |
| | | public Result changeBond(@RequestBody @Validated ChangeBondDto changeBondDto) { |
| | | return contractHoldOrderService.changeBond(changeBondDto); |
| | | } |
| | | |
| | | @ApiOperation(value = "未完成--分页查询历史订单列表") |
| | | @GetMapping(value = "/findHistoryOrderList") |
| | | public Result findHistoryOrderList() { |
| | | public Result findHistoryOrderList(@RequestBody @Validated OrderListDto orderListDto) { |
| | | return null; |
| | | } |
| | | |
| | |
| | | return contractHoldOrderService.findContractMoneyInfo(symbol); |
| | | } |
| | | |
| | | @ApiOperation(value = "调整杠杆") |
| | | @GetMapping(value = "/changeLeverRate") |
| | | public Result changeLeverRate(@RequestBody @Validated ChangeLeverRateDto changeLeverRateDto) { |
| | | return contractHoldOrderService.changeLeverRate(changeLeverRateDto); |
| | | } |
| | | |
| | | } |