Browse Source

Readd factor

pull/3858/head
Thomas Kaul 11 months ago
parent
commit
7d2c07bb46
  1. 9
      apps/api/src/services/data-provider/data-provider.service.ts

9
apps/api/src/services/data-provider/data-provider.service.ts

@ -666,13 +666,14 @@ export class DataProviderService {
} = {}; } = {};
for (const date in rootData) { for (const date in rootData) {
if (rootData[date].marketPrice === null) { if (isNumber(rootData[date].marketPrice)) {
continue;
}
data[date] = { data[date] = {
marketPrice: rootData[date].marketPrice marketPrice: new Big(factor)
.mul(rootData[date].marketPrice)
.toNumber()
}; };
} }
}
return data; return data;
} }

Loading…
Cancel
Save