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); }