Skip to content

Commit 25fd3fe

Browse files
committed
.
1 parent 58bec12 commit 25fd3fe

File tree

2 files changed

+7
-4
lines changed

2 files changed

+7
-4
lines changed

src/main/java/Main.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ public class Main {
66
private final static Logger logger = Logger.getLogger(Main.class);
77

88
public static void main(String[] args) {
9-
logger.info("Starting WYATT (v5.0.5) ...");
9+
logger.info("Starting WYATT (v5.0.6) ...");
1010
if (args.length < 6) {
1111
logger.error("Not enough arguments have been given");
1212
System.exit(-1);

src/main/java/mind/Wyatt.java

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
import static com.binance.api.client.domain.account.NewOrder.*;
3030

3131
public class Wyatt {
32-
private final static boolean DEVELOPING = true;
32+
private final static boolean DEVELOPING = false;
3333
private final static Logger logger = Logger.getLogger(Wyatt.class);
3434
private static CandlestickInterval[] intervalList = {
3535
CandlestickInterval.ONE_MINUTE, CandlestickInterval.THREE_MINUTES,
@@ -138,6 +138,9 @@ public void gatherMindData() {
138138
* perform a sell and a buy back to make an incremental amount of money.
139139
*/
140140
public void predictAndTrade() {
141+
if (DEVELOPING) {
142+
143+
}
141144
predictionEngine.executeThoughtProcess(mindData);
142145
Double target = predictionEngine.targetPrice;
143146
Double buyBack = Math.round(target * PredictionEngine.buyBackAfterThisPercentage * 100.0) / 100.0;
@@ -303,7 +306,7 @@ private void executeMarketBuyBack() {
303306
String message = "Executing market buy back of " + BTCtoBuyFloored + " BTC @ $" + lastPrice;
304307
logger.info(message);
305308
sendTweet(message);
306-
NewOrderResponse newOrderResponse = client.newOrder(marketBuy("BTCUSDT", BTCtoBuyFloored.toString()));
309+
client.newOrder(marketBuy("BTCUSDT", BTCtoBuyFloored.toString()));
307310
new CalcUtils().sleeper(15000);
308311
}
309312

@@ -341,6 +344,6 @@ private void sendTweet(String message) {
341344
* Report that the system is in developer mode
342345
*/
343346
private void reportDevMode() {
344-
logger.error("Wyatt is currently in development mode! Exit to perform trades");
347+
logger.error("Wyatt is currently in development mode! Not performing trades or tweets");
345348
}
346349
}

0 commit comments

Comments
 (0)