-
Notifications
You must be signed in to change notification settings - Fork 193
Expand file tree
/
Copy pathHuobiOptions.java
More file actions
65 lines (50 loc) · 1.15 KB
/
HuobiOptions.java
File metadata and controls
65 lines (50 loc) · 1.15 KB
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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
package com.huobi.constant;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.NoArgsConstructor;
import lombok.ToString;
import com.huobi.constant.enums.ExchangeEnum;
import java.net.Proxy;
@Builder
@AllArgsConstructor
@NoArgsConstructor
@ToString
public class HuobiOptions implements Options {
@Builder.Default
private String restHost = "https://api.huobi.pro";
@Builder.Default
private String websocketHost = "wss://api.huobi.pro";
private String apiKey;
private String secretKey;
private Proxy proxy;
@Builder.Default
private boolean websocketAutoConnect = true;
@Override
public String getApiKey() {
return this.apiKey;
}
@Override
public String getSecretKey() {
return this.secretKey;
}
@Override
public ExchangeEnum getExchange() {
return ExchangeEnum.HUOBI;
}
@Override
public String getRestHost() {
return this.restHost;
}
@Override
public String getWebSocketHost() {
return this.websocketHost;
}
@Override
public boolean isWebSocketAutoConnect() {
return this.websocketAutoConnect;
}
@Override
public Proxy getProxy(){
return this.proxy;
};
}