Skip to content

Commit

Permalink
minor fix, console.log text
Browse files Browse the repository at this point in the history
  • Loading branch information
EC2 Default User committed Mar 20, 2019
1 parent 03f5939 commit 68f7312
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions bot.js
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ let tradeQty = 5;
let timeFrame = '15m'; // Trading Period: 1m,3m,5m,15m,30m,1h,2h,4h,6h,8h,12h,1d,3d,1w,1M
let decimalPlaces = 0.00000001; // Number of decimal places on tradingPair
let tradeInterval = 10000; // Interval of milliseconds bot will analyse price changes. Needs to be > 1000, due to Exchange API limits.
let totalETHInvested = 0.43; // ETH invested
let totalETHInvested = 0.43; // ETH invested 2/19/2019

setInterval(function() {

Expand Down Expand Up @@ -203,7 +203,7 @@ setInterval(function() {
binance.cancelOrders(tradePair, (error, response, symbol) => {
console.log(symbol + " cancel response:", response);
});
console.log(colors.cyan('Sell: last price < lower limit @ 2sigma'));
console.log(colors.cyan('Sell: last price > upper limit @ 2sigma'));
binance.sell(tradePair, tradeQty, optimalSellPrice);
}, 500);

Expand Down
2 changes: 1 addition & 1 deletion views/index.ejs
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@
var buy =[];
var sell =[];
for (var i=trades.length -60; i < trades.length; i++) {
for (var i=trades.length -70; i < trades.length; i++) {
time.push((trades[i].time/1000));
if(trades[i].isBuyer === true) {
buy.push(trades[i].price)
Expand Down

0 comments on commit 68f7312

Please sign in to comment.