|
| 1 | +package com.bitmart.api.request.finance.prv; |
| 2 | + |
| 3 | +import com.bitmart.api.annotations.ParamKey; |
| 4 | +import com.bitmart.api.request.Auth; |
| 5 | +import com.bitmart.api.request.CloudRequest; |
| 6 | +import com.bitmart.api.request.Method; |
| 7 | +import lombok.Data; |
| 8 | +import lombok.EqualsAndHashCode; |
| 9 | +import lombok.ToString; |
| 10 | +import lombok.experimental.Accessors; |
| 11 | + |
| 12 | +/** |
| 13 | + * Finance — query fixed savings history records |
| 14 | + */ |
| 15 | +@EqualsAndHashCode(callSuper = true) |
| 16 | +@Data |
| 17 | +@ToString |
| 18 | +@Accessors(chain = true) |
| 19 | +public class SavingFixedRecordRequest extends CloudRequest { |
| 20 | + |
| 21 | + /** |
| 22 | + * Record type |
| 23 | + * -subscribe |
| 24 | + * -redeem |
| 25 | + * -interest |
| 26 | + */ |
| 27 | + @ParamKey(value = "type", required = true) |
| 28 | + private String type; |
| 29 | + |
| 30 | + /** |
| 31 | + * Start time in milliseconds, (e.g. 1681701557927) |
| 32 | + */ |
| 33 | + @ParamKey("startTime") |
| 34 | + private Long startTime; |
| 35 | + |
| 36 | + /** |
| 37 | + * End time in milliseconds, (e.g. 1681701557927) |
| 38 | + */ |
| 39 | + @ParamKey("endTime") |
| 40 | + private Long endTime; |
| 41 | + |
| 42 | + /** |
| 43 | + * Coin name |
| 44 | + */ |
| 45 | + @ParamKey("coinName") |
| 46 | + private String coinName; |
| 47 | + |
| 48 | + /** |
| 49 | + * Current page number, default 1 |
| 50 | + */ |
| 51 | + @ParamKey(value = "currentPage", required = true) |
| 52 | + private Integer currentPage; |
| 53 | + |
| 54 | + /** |
| 55 | + * Page size, default 1, max 100 |
| 56 | + */ |
| 57 | + @ParamKey(value = "sizePage", required = true) |
| 58 | + private Integer sizePage; |
| 59 | + |
| 60 | + public SavingFixedRecordRequest() { |
| 61 | + super("/newearn/cloud/v1/saving/fixed/record", Method.GET, Auth.KEYED); |
| 62 | + } |
| 63 | +} |
0 commit comments