Skip to content

Commit

Permalink
Ignore difforderbook
Browse files Browse the repository at this point in the history
  • Loading branch information
bharathrao committed Jul 28, 2020
1 parent 58cd898 commit 6f59ebd
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/bot/src/mm.js
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ module.exports = (async function () {
}

function newOrder(side, price, quantity) {
console.log('Order:', side, quantity, price)
console.log('Order:', side, price, quantity)
return isSpot ? spotOrder(side, price, quantity) : futuresOrder(side, price, quantity)
}

Expand Down Expand Up @@ -227,6 +227,7 @@ module.exports = (async function () {
}

function onDiffOrderBook(difforderbook) {
if(difforderbook.instrument !== instrument().id) return
console.log('ema', ema, 'bid', difforderbook.bid, 'ask', difforderbook.ask, 'qty', config.quantity)
if (!ema || config.strategy != 'EMA') return console.log('Returning ema:', ema, 'strategy', config.strategy)
setTimeout(() => sendEMAOrders(difforderbook), 100)
Expand Down

0 comments on commit 6f59ebd

Please sign in to comment.