| | |
| | | /** |
| | | * 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 杠杆倍数 |
| | |
| | | /** |
| | | * 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; |
| | | |
| | | /** |
| | |
| | | */ |
| | | @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; |
| | | |
| | | |