Skip to content

Commit

Permalink
randomize order size
Browse files Browse the repository at this point in the history
  • Loading branch information
bharathrao committed Jul 29, 2020
1 parent 49f03ef commit 359b718
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/bot/src/mm.js
Original file line number Diff line number Diff line change
Expand Up @@ -237,7 +237,7 @@ module.exports = (async function () {
}

function sendEMAOrders(difforderbook) {
const qty = config.quantity
const qty = config.quantity + (Math.random()/10).toFixed(2)
let patch = []
if(Object.keys(orders).length > 0) patch.push({op: 'remove', value: Object.keys(orders)})
if (difforderbook.bid > ema) patch.push({op: 'add', value: [newOrder('sell', difforderbook.bid, qty)]})
Expand Down

0 comments on commit 359b718

Please sign in to comment.