Combining results of paginated calls with coinlib api

I am trying to import data to google sheets using coinlib api.

I have this code

function getMarketCap(sheetname) {
  var ss = SpreadsheetApp.getActiveSpreadsheet();
  var sheet = ss.getSheetByName(sheetname);
  var assets = [];
  var idRange = sheet.getRange("B1:B");
  var lastRow = getLastRowOfRange(idRange);
  var cellRange = sheet.getRange(1, 2, lastRow).getValues();
  var mcRange = sheet.getRange(1, 3, lastRow);
  var mcValues = [];
  for (var i = 0; i < cellRange.length; i++) {
    assets[i] = cellRange[i];

  var req = [];
  for (var i = 1; i < 12; i++) {
      muteHttpExceptions: true,
      method: "get",
      url: "" + i + "&order=rank_asc",
  var responses = UrlFetchApp.fetchAll(req);
  var res = responses.filter(function(e){return e.getResponseCode() == 200}).map(function(e){return JSON.parse(e.getContentText())});
  if (responses.length != res.length) Logger.log("%s errors occurred.", responses.length - res.length);
  var mcValues = [];
  assets.forEach(function(e, h) {
    mcValues[h] = [];
    res.some(function(f) {
      Object.keys(f.coins).some(function(g) {
        if (f.coins[g].symbol == e[0]) {
          mcValues[h][0] = f.coins[g].market_cap;
          return true;
      if (mcValues[h][0]) return true;
    if (!mcValues[h][0]) mcValues[h][0] = 'xxx';


My column B in my sheet has all my coin symbols but doing it this way for some reason doesn't get data for each coin. I am certain that each of the coins on my list should be included in pages 1-11 of the coinlib coinlist requests.

Im wondering if this is a problem caused by using fetchall. How can I change this so they are separate requests and then combine the data into a single array to get the data from?

This code is from this question where I was using CMC api Using coinmarketcap api v2 with google sheets - adding to js object with multiple calls