slowed down fx requests

This commit is contained in:
Martin Donnelly 2018-01-08 21:14:32 +00:00
parent bc90550cb5
commit 466a4e8cd5

View File

@ -2,7 +2,7 @@ const http = require('http');
const LimitedArray = require('limitedarray');
const trend = require('trend');
const logger = require('log4js').getLogger('fx');
const delay = 2764800; // 32 days divided by 1000
const delay = 5529600; // 32 days divided by 500
let fxCache = {};
const history = new LimitedArray(48); // one days worth in 5 minute chunks