diff --git a/pom.xml b/pom.xml index 71847c7..27a7520 100644 --- a/pom.xml +++ b/pom.xml @@ -5,7 +5,7 @@ com.mtheory7 wyatt - 7.3.3 + 7.4.0 jar wyatt diff --git a/src/main/java/com/mtheory7/wyatt/mind/Wyatt.java b/src/main/java/com/mtheory7/wyatt/mind/Wyatt.java index e56c1f0..954022a 100644 --- a/src/main/java/com/mtheory7/wyatt/mind/Wyatt.java +++ b/src/main/java/com/mtheory7/wyatt/mind/Wyatt.java @@ -54,8 +54,10 @@ public class Wyatt { @Value("${initialInvestment}") private Double INITIAL_INVESTMENT; + @Value("${versionValue}") private String VERSION; + @Value("${developmentMode}") public void setDevelopmentMode(boolean mode) { DEVELOPMENT_MODE = mode; @@ -361,7 +363,8 @@ public void predictAndTrade() { CalcUtils.roundTo((currentPrice - Double.valueOf(openOrder.getPrice())), 2); logger.trace( "Current buy back: " + currentMarginPercent + "% ($" + buyBackDifference + ")"); - if (currentMarginPercent > 10.0) { + if (currentMarginPercent > 10.0 + || (System.currentTimeMillis() - openOrder.getTime()) > 432000000) { logger.trace("Deciding to submit a market buy back at $" + currentPrice); if (!DEVELOPMENT_MODE) { executeMarketBuyBack(); diff --git a/src/main/resources/binance-api-client-1.0.0.jar b/src/main/resources/binance-api-client-1.0.0.jar index 52ded1d..932980d 100644 Binary files a/src/main/resources/binance-api-client-1.0.0.jar and b/src/main/resources/binance-api-client-1.0.0.jar differ