Refactored code, moved declaration of intervals into one place. Also fixed an issue where keyobj would be left undefined on start-up instead of being initialized with data, causing the first execution of the calculateAndEmitPrices() method to return errors.
Refactored code, moved declaration of intervals into one place. Also fixed an issue where keyobj would be left undefined on start-up instead of being initialized with data, causing the first execution of the calculateAndEmitPrices() method to return errors.