ipo
zyy
2025-12-30 d9430c2ed4e2bc3564f4c9057563dd5f5605f28b
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
package com.yami.trading.huobi.websocket.client.req.account;
 
import java.util.List;
 
import lombok.*;
 
import com.yami.trading.huobi.websocket.constant.enums.QuerySortEnum;
import com.yami.trading.huobi.websocket.constant.enums.AccountHistoryTransactTypeEnum;
import org.apache.commons.lang3.StringUtils;
 
@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
@ToString
public class AccountHistoryRequest {
 
  private Long accountId;
 
  private String currency;
 
  private List<AccountHistoryTransactTypeEnum> types;
 
  private Long startTime;
 
  private Long endTime;
 
  private QuerySortEnum sort;
 
  private Integer size;
 
  private Long fromId;
 
  public String getTypesString(){
    String typeString = null;
    if (this.getTypes() != null && this.getTypes().size() > 0) {
      typeString = StringUtils.join(types,",");
    }
    return typeString;
  }
 
}