| | |
| | | import javax.annotation.Resource;
|
| | | import javax.validation.Valid;
|
| | |
|
| | | import com.xcong.excoin.modules.coin.entity.OrderCoinsEntity;
|
| | | import org.springframework.validation.annotation.Validated;
|
| | | import org.springframework.web.bind.annotation.GetMapping;
|
| | | import org.springframework.web.bind.annotation.PostMapping;
|
| | |
| | | Integer tradeType = submitSalesWalletCoinOrderDto.getTradeType();
|
| | | BigDecimal price = submitSalesWalletCoinOrderDto.getPrice();
|
| | | BigDecimal amount = submitSalesWalletCoinOrderDto.getAmount();
|
| | | return orderCoinService.submitSalesWalletCoinOrder(symbol,type,tradeType,price,amount);
|
| | | if("NEKK".equals(symbol)){
|
| | | return orderCoinService.submitSalesWalletCoinOrderWithMatch(symbol,type,tradeType,price,amount,submitSalesWalletCoinOrderDto.getEntrustAmount());
|
| | |
|
| | | }else{
|
| | | return orderCoinService.submitSalesWalletCoinOrder(symbol,type,tradeType,price,amount,submitSalesWalletCoinOrderDto.getEntrustAmount());
|
| | | }
|
| | | }
|
| | |
|
| | | /**
|