package com.yami.trading.huobi.websocket.constant;
|
|
import lombok.AllArgsConstructor;
|
import lombok.Builder;
|
import lombok.NoArgsConstructor;
|
import lombok.ToString;
|
|
import com.yami.trading.huobi.websocket.constant.enums.ExchangeEnum;
|
|
@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 String sign;
|
|
@Builder.Default
|
private boolean websocketAutoConnect = true;
|
|
@Override
|
public String getApiKey() {
|
return this.apiKey;
|
}
|
|
@Override
|
public String getSign() {return this.sign;}
|
|
@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;
|
}
|
|
}
|