text: const Request = require('./request');
  const request = new Request();
  
  async function scheduler() {
    console.log('starting in...', new Date().toISOString());
    const requests = [
      {
        url: 'https://www.mercadobitcoin.net/api/BTC/ticker/',
        url: 'https://www.NOTEXISTll.net',
        url: 'https://www.mercadobitcoin.net/api/BTC/orderbook/',
      },
    ]
      .map((data) => ({
        ...data,
        timeout: 2000,
        method: 'get',
      }))
      .map((params) => request.makeRequest(params));
    const result = await Promise.allSettled(requests);
    const allFailed = [];
    const allSucceded = [];
  
    for (const { status, value, reason } of result) {
      console.log('result.status', result);
      if (status === 'rejected') {
        allFailed.push(reason);
        continue;
      }
      allSucceded.push(value);
    }
    console.log({
      allFailed: JSON.stringify(allFailed),
      allSucceded: JSON.stringify(allSucceded),
    });
  }
  
  const PERIOD = 2000;
  setInterval(scheduler, PERIOD);
  