|
@@ -141,7 +141,7 @@ async function calcForCX(username: string, apiKey: string, supplyForDays: number
|
|
|
if (buyAmount > 0) {
|
|
if (buyAmount > 0) {
|
|
|
if (m.bids === 0)
|
|
if (m.bids === 0)
|
|
|
tr.children[2].classList.add('red');
|
|
tr.children[2].classList.add('red');
|
|
|
- toBuy[m.ticker] = buyAmount;
|
|
|
|
|
|
|
+ toBuy[m.ticker] = Math.round(buyAmount);
|
|
|
const bid = prices.get(m.ticker)!.Bid!;
|
|
const bid = prices.get(m.ticker)!.Bid!;
|
|
|
const epsilon = 10 ** (Math.floor(Math.log10(bid)) - 2);
|
|
const epsilon = 10 ** (Math.floor(Math.log10(bid)) - 2);
|
|
|
const limit = bid + 2 * epsilon;
|
|
const limit = bid + 2 * epsilon;
|