实现联系人备注

This commit is contained in:
tony 2026-07-08 15:36:54 +08:00
parent 83a4c9a199
commit 4b3e172784
5 changed files with 9 additions and 19 deletions

View File

@ -22,7 +22,7 @@
<dependency>
<groupId>vip.uuquant</groupId>
<artifactId>uuquant-exchange-api</artifactId>
<version>20260327.1656</version>
<version>20260619.0130</version>
</dependency>
</dependencies>

View File

@ -11,8 +11,8 @@ public class StrategyApplication {
// 调试模式
DebugConfig debugConfig = new DebugConfig();
debugConfig.setAgentHost("192.168.0.105");
debugConfig.setRobotId(2038210296263434242L);
debugConfig.setRobotApiKey("454d7146f092fdbbcfdef0ff554d9aa4");
debugConfig.setRobotId(2074501096701927426L);
debugConfig.setRobotApiKey("be7520970034b54cb7f2bccab0d546ca");
StrategyRunner strategyRunner = StrategyRunner.getInstance();
strategyRunner.setDebugConfig(debugConfig);

View File

@ -16,7 +16,7 @@ public class CommonConstant {
public static final ExchangeFactory exchangeFactory = new ExchangeFactory();
static {
webSocketManager.setLogEnabled(false);
webSocketManager.setLogEnabled(true);
}
private CommonConstant() {

View File

@ -4,7 +4,7 @@ import com.alibaba.fastjson2.JSONArray;
import com.alibaba.fastjson2.JSONObject;
import com.hengyi.xbaseweb.common.result.ApiResult;
import com.sample.trend.config.CommonConstant;
import com.sample.trend.strategy.util.AtrCalculator;
import com.sample.trend.util.AtrCalculator;
import okhttp3.Response;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
@ -22,7 +22,6 @@ import vip.uuquant.tradesystem.runner.enums.AlarmLevel;
import vip.uuquant.tradesystem.runner.enums.RobotChartType;
import vip.uuquant.tradesystem.runner.strategy.BaseStrategy;
import vip.uuquant.tradesystem.runner.vo.AccountVO;
import vip.uuquant.tradesystem.runner.vo.RobotVO;
import vip.uuquant.tradesystem.runner.vo.SymbolVO;
import java.math.BigDecimal;
@ -204,7 +203,7 @@ public class AutoGridStrategy extends BaseStrategy {
tryParams("base_quantity", "atr_multiplier", "kline_interval", "kline_period",
"grid_adjust_interval", "min_gap", "max_gap", "upper_bound", "lower_bound",
"grid_count", "testMode");
"grid_count", "test_mode");
baseQuantity = getRunParams().getBigDecimal("base_quantity");
atrMultiplier = getRunParams().getBigDecimal("atr_multiplier");
@ -215,7 +214,7 @@ public class AutoGridStrategy extends BaseStrategy {
maxGap = getRunParams().getBigDecimal("max_gap");
upperBound = getRunParams().getBigDecimal("upper_bound");
lowerBound = getRunParams().getBigDecimal("lower_bound");
testMode = getRunParams().getBooleanValue("testMode");
testMode = getRunParams().getBooleanValue("test_mode");
leverage = getRunParams().getIntValue("leverage");
if (leverage <= 0) {
leverage = 10;
@ -239,11 +238,7 @@ public class AutoGridStrategy extends BaseStrategy {
}
}
RobotVO robotInfo = getRobotInfo();
if (robotInfo != null) {
robotId = robotInfo.getRobotId();
}
robotId = getRobotConfig().getRobotId();
initBitGetClient();
initCharts();
@ -303,11 +298,6 @@ public class AutoGridStrategy extends BaseStrategy {
AccountVO account = getAccount();
bitGetClient.init(account.getApiKey(), account.getSecretKey(), account.getPassphrase(),
null, CommonConstant.webSocketManager);
try {
bitGetClient.setLeverage(getSymbol(), leverage);
} catch (Exception e) {
logger.warn("设置杠杆失败:{}", e.getMessage());
}
try {
bitGetClient.createPublicWebsocket(webSocketMessageHandler);
bitGetClient.createPrivateWebsocket(webSocketMessageHandler);

View File

@ -1,4 +1,4 @@
package com.sample.trend.strategy.util;
package com.sample.trend.util;
import com.alibaba.fastjson2.JSONArray;