Undefined вместо нужного результата

Почему данный код выводит undefined вместо нужного поля из JSON?

async function getRatesByJson(path) {
  const response = await fetch(path),
    res = await response.json();
  return res;
}

const obj = {
  get rates() {
    let res;
    getRatesByJson('https://blockchain.info/ru/ticker')
      .then(rates => res = rates.RUB);
    return res;
  }
}

console.log(obj.rates);


Ответы (0 шт):