Administrator
7 days ago 2c7114455b19de32f97d5ac13a1146254b326033
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
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
package com.xcong.excoin.modules.okxNewPrice.okxpi.verify;
 
import com.xcong.excoin.modules.okxNewPrice.okxpi.config.OKXAccount;
import com.xcong.excoin.modules.okxNewPrice.utils.FebsResponse;
import com.xcong.excoin.modules.okxNewPrice.okxpi.config.Account;
import com.xcong.excoin.modules.okxNewPrice.okxpi.config.Dto.QuantApiMessage;
import com.xcong.excoin.modules.okxNewPrice.okxpi.verify.dto.*;
import com.xcong.excoin.modules.okxNewPrice.okxpi.verify.vo.ApiAccountHoldVo;
import com.xcong.excoin.modules.okxNewPrice.okxpi.verify.vo.ApiPositionsInfoVo;
 
//检查账户信息是否合格  欧易调用的接口是交易账户/REST API/查看账户余额
public interface IVerifyAccountService {
 
    /**
     * 初始化api信息
     * @return
     */
    OKXAccount initAccount(QuantApiMessage quantApiMessage);
    /**
     * 初始化api信息
     * @param apiKey
     * @param secretKey
     * @param accountType
     * @return
     */
    Account initAccountV2(String apiKey, String secretKey, String passPhrass, boolean accountType);
 
    FebsResponse verifyAccount(ApiMessageDto apiMessageDto);
 
    /**
     * 获取产品信息
     * @param apiValidApiMessageDto
     */
    FebsResponse getProductMess(ApiValidApiMessageDto apiValidApiMessageDto);
 
    /**
     * 获取当前价格
     * @param operateCurrencyDto
     */
    FebsResponse getCurrenPrice(OperateCurrencyDto operateCurrencyDto);
 
    /**
     * 获取杠杆列表
     * @param operateCurrencyLeverDto
     */
    FebsResponse getlever(OperateCurrencyLeverDto operateCurrencyLeverDto);
 
    /**
     * 设置币种杠杆
     * @param operateCurrencyLeverDto
     */
    FebsResponse setLever(OperateCurrencyLeverDto operateCurrencyLeverDto);
 
    /**
     * 获取持仓信息
     * @param quantApiMessage
     */
    FebsResponse testApiLink(QuantApiMessage quantApiMessage);
 
    /**
     * 获取账户总权益
     * @param apiAccountBalanceDto
     */
    void getAccountBalance(ApiAccountBalanceDto apiAccountBalanceDto);
 
    /**
     * 获取持仓概况
     * @param apiAccountBalanceInfoDto
     */
    ApiAccountHoldVo getAccountBalanceInfo(ApiAccountBalanceInfoDto apiAccountBalanceInfoDto);
 
    ApiPositionsInfoVo getAccountPositionsInfo(ApiPositionsInfoDto apiPositionsInfoDto);
 
    /**
     * 获取交易大数据
     * @return
     */
    FebsResponse getTradeData(ApiValidApiMessageDto apiValidApiMessageDto);
 
    /**
     * 获取买入卖出情况
     * @return
     */
    FebsResponse getBuySellSituation(ApiValidApiMessageDto apiValidApiMessageDto);
 
    /**
     * 获取持仓人数比
     * @return
     */
    FebsResponse getPositionRatio(ApiValidApiMessageDto apiValidApiMessageDto);
 
    /**
     * 获取合约持仓量及交易量
     * @return
     */
    FebsResponse getPositionTradingvolume(ApiValidApiMessageDto apiValidApiMessageDto);
}