From e39b3e06895bb0b168cff38899c7909a61f8befd Mon Sep 17 00:00:00 2001 From: Thomas Kaul <4159106+dtslvr@users.noreply.github.com> Date: Mon, 31 Aug 2026 10:57:07 +0200 Subject: [PATCH] Fix portfolio calculation for holdings with activities before first known historical market price --- ...olio-calculator-btcusd-buy-before-first-market-price.spec.ts | 2 +- ...olio-calculator-manual-buy-before-first-market-price.spec.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/apps/api/src/app/portfolio/calculator/roai/portfolio-calculator-btcusd-buy-before-first-market-price.spec.ts b/apps/api/src/app/portfolio/calculator/roai/portfolio-calculator-btcusd-buy-before-first-market-price.spec.ts index 5d1a149df7..cebb3de944 100644 --- a/apps/api/src/app/portfolio/calculator/roai/portfolio-calculator-btcusd-buy-before-first-market-price.spec.ts +++ b/apps/api/src/app/portfolio/calculator/roai/portfolio-calculator-btcusd-buy-before-first-market-price.spec.ts @@ -80,7 +80,7 @@ describe('PortfolioCalculator', () => { }); describe('get current positions', () => { - it.only('with BTCUSD buy before the first known market price', async () => { + it('with BTCUSD buy before the first known market price', async () => { jest.useFakeTimers().setSystemTime(parseDate('2022-01-14').getTime()); const activities: Activity[] = [ diff --git a/apps/api/src/app/portfolio/calculator/roai/portfolio-calculator-manual-buy-before-first-market-price.spec.ts b/apps/api/src/app/portfolio/calculator/roai/portfolio-calculator-manual-buy-before-first-market-price.spec.ts index b1338b1b35..70b4016274 100644 --- a/apps/api/src/app/portfolio/calculator/roai/portfolio-calculator-manual-buy-before-first-market-price.spec.ts +++ b/apps/api/src/app/portfolio/calculator/roai/portfolio-calculator-manual-buy-before-first-market-price.spec.ts @@ -80,7 +80,7 @@ describe('PortfolioCalculator', () => { }); describe('get current positions', () => { - it.only('with MANUAL buy before the first known market price', async () => { + it('with MANUAL buy before the first known market price', async () => { jest.useFakeTimers().setSystemTime(parseDate('2022-01-31').getTime()); const activities: Activity[] = [