Skip to content

Commit

Permalink
chore: adjust poll interval
Browse files Browse the repository at this point in the history
  • Loading branch information
rosendolu committed Jul 14, 2024
1 parent 040947e commit 9a39068
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/middleware/binance.js
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ module.exports = {
if (symbolMap.size === 0) return;
const topGainer = [...symbolMap.values()]
.sort((a, b) => Number(b.percentChange) - Number(a.percentChange))
.slice(0, 6)
.slice(0, 10)
.map(item => [item.symbol, item.percentChange]);

ctx.eventName = 'topGainer';
Expand Down
2 changes: 1 addition & 1 deletion src/schedule/binance.schedule.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ utils.waitFor(

log.info('calculated %s symbols %s', iter.length, utils.displayDuration(start));
},
() => 15 * 6e4
() => 10 * 6e4
);

// spot/24hrTicker
Expand Down

0 comments on commit 9a39068

Please sign in to comment.