29
29
import static com .binance .api .client .domain .account .NewOrder .*;
30
30
31
31
public class Wyatt {
32
- private final static boolean DEVELOPING = true ;
32
+ private final static boolean DEVELOPING = false ;
33
33
private final static Logger logger = Logger .getLogger (Wyatt .class );
34
34
private static CandlestickInterval [] intervalList = {
35
35
CandlestickInterval .ONE_MINUTE , CandlestickInterval .THREE_MINUTES ,
@@ -138,6 +138,9 @@ public void gatherMindData() {
138
138
* perform a sell and a buy back to make an incremental amount of money.
139
139
*/
140
140
public void predictAndTrade () {
141
+ if (DEVELOPING ) {
142
+
143
+ }
141
144
predictionEngine .executeThoughtProcess (mindData );
142
145
Double target = predictionEngine .targetPrice ;
143
146
Double buyBack = Math .round (target * PredictionEngine .buyBackAfterThisPercentage * 100.0 ) / 100.0 ;
@@ -303,7 +306,7 @@ private void executeMarketBuyBack() {
303
306
String message = "Executing market buy back of " + BTCtoBuyFloored + " BTC @ $" + lastPrice ;
304
307
logger .info (message );
305
308
sendTweet (message );
306
- NewOrderResponse newOrderResponse = client .newOrder (marketBuy ("BTCUSDT" , BTCtoBuyFloored .toString ()));
309
+ client .newOrder (marketBuy ("BTCUSDT" , BTCtoBuyFloored .toString ()));
307
310
new CalcUtils ().sleeper (15000 );
308
311
}
309
312
@@ -341,6 +344,6 @@ private void sendTweet(String message) {
341
344
* Report that the system is in developer mode
342
345
*/
343
346
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 " );
345
348
}
346
349
}
0 commit comments