| | |
| | | package com.xcong.excoin.modules.contract.controller; |
| | | |
| | | import com.xcong.excoin.common.response.Result; |
| | | import com.xcong.excoin.modules.contract.parameter.dto.SubmitOrderDto; |
| | | import com.xcong.excoin.modules.contract.service.ContractHoldOrderService; |
| | | import io.swagger.annotations.Api; |
| | | import io.swagger.annotations.ApiOperation; |
| | | import lombok.extern.slf4j.Slf4j; |
| | | import org.springframework.web.bind.annotation.RequestMapping; |
| | | import org.springframework.web.bind.annotation.RestController; |
| | | import org.springframework.web.bind.annotation.*; |
| | | |
| | | import javax.annotation.Resource; |
| | | |
| | | /** |
| | | * @author wzy |
| | | * @date 2020-05-27 |
| | | **/ |
| | | @Slf4j |
| | | @Api(value = "ContractOrderController", tags = "合约订单历史接口类") |
| | | @Api(value = "ContractOrderController", tags = "合约订单接口类") |
| | | @RestController |
| | | @RequestMapping(value = "/api/contractOrder") |
| | | public class ContractOrderController { |
| | | |
| | | @Resource |
| | | private ContractHoldOrderService contractHoldOrderService; |
| | | |
| | | @ApiOperation(value = "市价提交合约订单") |
| | | @PostMapping(value = "/submitOrder") |
| | | public Result submitOrder(@RequestBody SubmitOrderDto submitOrderDto) { |
| | | return contractHoldOrderService.submitOrder(submitOrderDto); |
| | | } |
| | | |
| | | @ApiOperation(value = "查询当前持仓订单列表") |
| | | @GetMapping(value = "/findHoldOrderList") |
| | | public Result findHoldOrderList() { |
| | | return null; |
| | | } |
| | | |
| | | @ApiOperation(value = "根据Id查询订单详情") |
| | | @GetMapping(value = "/findOrderDetail") |
| | | public Result findOrderDetail() { |
| | | return null; |
| | | } |
| | | |
| | | @ApiOperation(value = "根据Id平仓") |
| | | @GetMapping(value = "/closingOrder") |
| | | public Result closingOrder() { |
| | | return null; |
| | | } |
| | | |
| | | @ApiOperation(value = "一键平仓") |
| | | @GetMapping(value = "/oneKeyClosing") |
| | | public Result oneKeyClosing() { |
| | | return null; |
| | | } |
| | | |
| | | @ApiOperation(value = "设置止盈止损") |
| | | @PostMapping(value = "/setTargetProfitOrLoss") |
| | | public Result setTargetProfitOrLoss() { |
| | | return null; |
| | | } |
| | | |
| | | @ApiOperation(value = "调整保证金") |
| | | @PostMapping(value = "/tuneUpBond") |
| | | public Result tuneUpBond() { |
| | | return null; |
| | | } |
| | | |
| | | @ApiOperation(value = "分页查询历史订单列表") |
| | | @GetMapping(value = "/findHistoryOrderList") |
| | | public Result findHistoryOrderList() { |
| | | return null; |
| | | } |
| | | |
| | | } |