新版仿ok交易所-后端
1
zj
yesterday f31fc9f42f78de0808e7f4bdc797c5e622df09e3
trading-order-admin/src/main/java/com/yami/trading/api/dto/OpenAction.java
@@ -17,18 +17,23 @@
@JsonNaming(PropertyNamingStrategies.SnakeCaseStrategy.class)
public class OpenAction {
    /**
     * 仓位类型:0:逐仓 1:全仓
     */
    private Integer locationType = 1;
    @NotBlank
    private String symbol;
    /**
     * direction "buy":多 "sell":空
     */
    @Pattern(regexp="^(buy|sell)$",message = "请输入正确的方向")
    @Pattern(regexp="^(buy|sell)$",message = "Please enter a valid direction")
    private String direction;
    /**
     * amount 委托数量(张)
     */
    @NotNull(message = "委托数量(张)必填")
    @DecimalMin(value = "0.00000001", message = "委托数量(张)不能小于0")
    @NotNull(message = "Order quantity (lots) is required")
    @DecimalMin(value = "0.00000001", message = "Order quantity cannot be less than 0")
    private BigDecimal amount;
    /**
     * lever_rate 杠杆倍数
@@ -39,8 +44,8 @@
    /**
     * price 交易价格
     */
    @NotNull(message = "交易价格必填")
    @DecimalMin(value = "0.00000001", message = "交易价格不能小于0")
    @NotNull(message = "Price is required")
    @DecimalMin(value = "0.00000001", message = "Price cannot be less than 0")
    private BigDecimal price;
    /**
@@ -58,7 +63,7 @@
     */
    @NotNull
    @JsonProperty("price_type")
    @Pattern(regexp="^(limit|opponent)$",message = "请输入订单报价类型")
    @Pattern(regexp="^(limit|opponent)$",message = "Please enter a valid order price type")
    private String price_type;