Marcin Szymański
4 months ago
No known key found for this signature in database
GPG Key ID: E663B71BA170173C
13 changed files with
18 additions and
0 deletions
-
apps/api/src/app/portfolio/calculator/roai/portfolio-calculator-baln-buy-and-sell-in-two-activities.spec.ts
-
apps/api/src/app/portfolio/calculator/roai/portfolio-calculator-baln-buy-and-sell.spec.ts
-
apps/api/src/app/portfolio/calculator/roai/portfolio-calculator-baln-buy.spec.ts
-
apps/api/src/app/portfolio/calculator/roai/portfolio-calculator-btceur.spec.ts
-
apps/api/src/app/portfolio/calculator/roai/portfolio-calculator-btcusd-buy-and-sell-partially.spec.ts
-
apps/api/src/app/portfolio/calculator/roai/portfolio-calculator-btcusd.spec.ts
-
apps/api/src/app/portfolio/calculator/roai/portfolio-calculator-fee.spec.ts
-
apps/api/src/app/portfolio/calculator/roai/portfolio-calculator-googl-buy.spec.ts
-
apps/api/src/app/portfolio/calculator/roai/portfolio-calculator-item.spec.ts
-
apps/api/src/app/portfolio/calculator/roai/portfolio-calculator-liability.spec.ts
-
apps/api/src/app/portfolio/calculator/roai/portfolio-calculator-msft-buy-with-dividend.spec.ts
-
apps/api/src/app/portfolio/calculator/roai/portfolio-calculator-novn-buy-and-sell-partially.spec.ts
-
apps/api/src/app/portfolio/calculator/roai/portfolio-calculator-novn-buy-and-sell.spec.ts
|
|
@ -90,6 +90,7 @@ describe('PortfolioCalculator', () => { |
|
|
|
...activityDummyData, |
|
|
|
date: new Date('2021-11-22'), |
|
|
|
feeInAssetProfileCurrency: 1.55, |
|
|
|
feeInBaseCurrency: 1.55, |
|
|
|
quantity: 2, |
|
|
|
SymbolProfile: { |
|
|
|
...symbolProfileDummyData, |
|
|
@ -105,6 +106,7 @@ describe('PortfolioCalculator', () => { |
|
|
|
...activityDummyData, |
|
|
|
date: new Date('2021-11-30'), |
|
|
|
feeInAssetProfileCurrency: 1.65, |
|
|
|
feeInBaseCurrency: 1.65, |
|
|
|
quantity: 1, |
|
|
|
SymbolProfile: { |
|
|
|
...symbolProfileDummyData, |
|
|
@ -120,6 +122,7 @@ describe('PortfolioCalculator', () => { |
|
|
|
...activityDummyData, |
|
|
|
date: new Date('2021-11-30'), |
|
|
|
feeInAssetProfileCurrency: 0, |
|
|
|
feeInBaseCurrency: 0, |
|
|
|
quantity: 1, |
|
|
|
SymbolProfile: { |
|
|
|
...symbolProfileDummyData, |
|
|
|
|
|
@ -90,6 +90,7 @@ describe('PortfolioCalculator', () => { |
|
|
|
...activityDummyData, |
|
|
|
date: new Date('2021-11-22'), |
|
|
|
feeInAssetProfileCurrency: 1.55, |
|
|
|
feeInBaseCurrency: 1.55, |
|
|
|
quantity: 2, |
|
|
|
SymbolProfile: { |
|
|
|
...symbolProfileDummyData, |
|
|
@ -105,6 +106,7 @@ describe('PortfolioCalculator', () => { |
|
|
|
...activityDummyData, |
|
|
|
date: new Date('2021-11-30'), |
|
|
|
feeInAssetProfileCurrency: 1.65, |
|
|
|
feeInBaseCurrency: 1.65, |
|
|
|
quantity: 2, |
|
|
|
SymbolProfile: { |
|
|
|
...symbolProfileDummyData, |
|
|
|
|
|
@ -90,6 +90,7 @@ describe('PortfolioCalculator', () => { |
|
|
|
...activityDummyData, |
|
|
|
date: new Date('2021-11-30'), |
|
|
|
feeInAssetProfileCurrency: 1.55, |
|
|
|
feeInBaseCurrency: 1.55, |
|
|
|
quantity: 2, |
|
|
|
SymbolProfile: { |
|
|
|
...symbolProfileDummyData, |
|
|
|
|
|
@ -101,6 +101,7 @@ describe('PortfolioCalculator', () => { |
|
|
|
...activity, |
|
|
|
date: parseDate(activity.date), |
|
|
|
feeInAssetProfileCurrency: 4.46, |
|
|
|
feeInBaseCurrency: 4.46, |
|
|
|
SymbolProfile: { |
|
|
|
...symbolProfileDummyData, |
|
|
|
currency: 'USD', |
|
|
|
|
|
@ -104,6 +104,7 @@ describe('PortfolioCalculator', () => { |
|
|
|
...activityDummyData, |
|
|
|
date: new Date('2015-01-01'), |
|
|
|
feeInAssetProfileCurrency: 0, |
|
|
|
feeInBaseCurrency: 0, |
|
|
|
quantity: 2, |
|
|
|
SymbolProfile: { |
|
|
|
...symbolProfileDummyData, |
|
|
@ -119,6 +120,7 @@ describe('PortfolioCalculator', () => { |
|
|
|
...activityDummyData, |
|
|
|
date: new Date('2017-12-31'), |
|
|
|
feeInAssetProfileCurrency: 0, |
|
|
|
feeInBaseCurrency: 0, |
|
|
|
quantity: 1, |
|
|
|
SymbolProfile: { |
|
|
|
...symbolProfileDummyData, |
|
|
|
|
|
@ -101,6 +101,7 @@ describe('PortfolioCalculator', () => { |
|
|
|
...activity, |
|
|
|
date: parseDate(activity.date), |
|
|
|
feeInAssetProfileCurrency: 4.46, |
|
|
|
feeInBaseCurrency: 4.46, |
|
|
|
SymbolProfile: { |
|
|
|
...symbolProfileDummyData, |
|
|
|
currency: 'USD', |
|
|
|
|
|
@ -90,6 +90,7 @@ describe('PortfolioCalculator', () => { |
|
|
|
...activityDummyData, |
|
|
|
date: new Date('2021-09-01'), |
|
|
|
feeInAssetProfileCurrency: 49, |
|
|
|
feeInBaseCurrency: 49, |
|
|
|
quantity: 0, |
|
|
|
SymbolProfile: { |
|
|
|
...symbolProfileDummyData, |
|
|
|
|
|
@ -104,6 +104,7 @@ describe('PortfolioCalculator', () => { |
|
|
|
date: new Date('2023-01-03'), |
|
|
|
feeInAssetProfileCurrency: 1, |
|
|
|
quantity: 1, |
|
|
|
feeInBaseCurrency: 0.9238, |
|
|
|
SymbolProfile: { |
|
|
|
...symbolProfileDummyData, |
|
|
|
currency: 'USD', |
|
|
|
|
|
@ -90,6 +90,7 @@ describe('PortfolioCalculator', () => { |
|
|
|
...activityDummyData, |
|
|
|
date: new Date('2022-01-01'), |
|
|
|
feeInAssetProfileCurrency: 0, |
|
|
|
feeInBaseCurrency: 0, |
|
|
|
quantity: 1, |
|
|
|
SymbolProfile: { |
|
|
|
...symbolProfileDummyData, |
|
|
|
|
|
@ -90,6 +90,7 @@ describe('PortfolioCalculator', () => { |
|
|
|
...activityDummyData, |
|
|
|
date: new Date('2023-01-01'), // Date in future
|
|
|
|
feeInAssetProfileCurrency: 0, |
|
|
|
feeInBaseCurrency: 0, |
|
|
|
quantity: 1, |
|
|
|
SymbolProfile: { |
|
|
|
...symbolProfileDummyData, |
|
|
|
|
|
@ -90,6 +90,7 @@ describe('PortfolioCalculator', () => { |
|
|
|
...activityDummyData, |
|
|
|
date: new Date('2021-09-16'), |
|
|
|
feeInAssetProfileCurrency: 19, |
|
|
|
feeInBaseCurrency: 19, |
|
|
|
quantity: 1, |
|
|
|
SymbolProfile: { |
|
|
|
...symbolProfileDummyData, |
|
|
@ -105,6 +106,7 @@ describe('PortfolioCalculator', () => { |
|
|
|
...activityDummyData, |
|
|
|
date: new Date('2021-11-16'), |
|
|
|
feeInAssetProfileCurrency: 0, |
|
|
|
feeInBaseCurrency: 0, |
|
|
|
quantity: 1, |
|
|
|
SymbolProfile: { |
|
|
|
...symbolProfileDummyData, |
|
|
|
|
|
@ -104,6 +104,7 @@ describe('PortfolioCalculator', () => { |
|
|
|
...activity, |
|
|
|
date: parseDate(activity.date), |
|
|
|
feeInAssetProfileCurrency: activity.fee, |
|
|
|
feeInBaseCurrency: 4.25, |
|
|
|
SymbolProfile: { |
|
|
|
...symbolProfileDummyData, |
|
|
|
currency: activity.currency, |
|
|
|
|
|
@ -104,6 +104,7 @@ describe('PortfolioCalculator', () => { |
|
|
|
...activity, |
|
|
|
date: parseDate(activity.date), |
|
|
|
feeInAssetProfileCurrency: activity.fee, |
|
|
|
feeInBaseCurrency: activity.fee, |
|
|
|
SymbolProfile: { |
|
|
|
...symbolProfileDummyData, |
|
|
|
currency: activity.currency, |
|
|
|