新版仿ok交易所-后端
1
zj
8 days ago 579177ac64462d0fec885eb10af3097245134f80
trading-order-admin/src/main/java/com/yami/trading/api/dto/OpenAction.java
@@ -27,13 +27,13 @@
    /**
     * 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 杠杆倍数
@@ -44,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;
    /**
@@ -63,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;