Advertisement
Guest User

Untitled

a guest
May 21st, 2018
63
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.64 KB | None | 0 0
  1. @@ -0,0 +1,24 @@
  2. const EventEmitter = require('event-emitter-es6');
  3. const async = require('async');
  4. const log4js = require('log4js');
  5.  
  6. const logger = log4js.getLogger('DownloadTickersManager');
  7. logger.level = 'debug';
  8.  
  9. class DownloadTickersManager extends EventEmitter {
  10.  
  11. constructor(exchanges, tickerRepository) {
  12.  
  13. super();
  14. this._exchanges = exchanges;
  15. this._tickerRepository = tickerRepository;
  16. this._tasks = [];
  17. }
  18.  
  19. async getTickerByExchange(exchange, coins) {
  20. this._tickerRepository.findByExchangeAndCoin([exchange], coins, )
  21. }
  22.  
  23. }
  24.  
  25. module.exports = DownloadTickersManager;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement