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
package com.yami.trading.huobi.websocket.client;
 
import java.util.List;
 
import com.yami.trading.huobi.websocket.client.req.wallet.CreateWithdrawRequest;
import com.yami.trading.huobi.websocket.client.req.wallet.DepositAddressRequest;
import com.yami.trading.huobi.websocket.client.req.wallet.DepositWithdrawRequest;
import com.yami.trading.huobi.websocket.client.req.wallet.WithdrawAddressRequest;
import com.yami.trading.huobi.websocket.client.req.wallet.WithdrawQuotaRequest;
import com.yami.trading.huobi.websocket.constant.Options;
import com.yami.trading.huobi.websocket.constant.enums.ExchangeEnum;
import com.yami.trading.huobi.websocket.exception.SDKException;
import com.yami.trading.huobi.websocket.model.wallet.*;
import com.yami.trading.huobi.websocket.service.huobi.HuobiWalletService;
 
public interface WalletClient {
 
  List<DepositAddress> getDepositAddress(DepositAddressRequest request);
 
  WithdrawQuota getWithdrawQuota(WithdrawQuotaRequest request);
 
  WithdrawAddressResult getWithdrawAddress(WithdrawAddressRequest request);
 
  Long createWithdraw(CreateWithdrawRequest request);
 
  Long cancelWithdraw(Long withdrawId);
 
  List<DepositWithdraw> getDepositWithdraw(DepositWithdrawRequest request);
 
  WithdrawOrderResult getWithdrawOrder(String clientOrderId);
 
  static WalletClient create(Options options) {
 
    if (options.getExchange().equals(ExchangeEnum.HUOBI)) {
      return new HuobiWalletService(options);
    }
    throw new SDKException(SDKException.INPUT_ERROR, "Unsupport Exchange.");
  }
}