We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2ad3da7 commit f69b783Copy full SHA for f69b783
1 file changed
node-binance-api.js
@@ -819,7 +819,7 @@ let api = function Binance() {
819
*/
820
roundStep: function (qty, stepSize) {
821
const precision = stepSize.toString().split('.')[1].length || 0;
822
- return ((Math.round(qty / stepSize) | 0) * stepSize).toFixed(precision);
+ return ((Math.floor(qty / stepSize) | 0) * stepSize).toFixed(precision);
823
},
824
825
/**
0 commit comments