|
|
@ -14,6 +14,7 @@ import { ConfigurationService } from '@ghostfolio/api/services/configuration/con |
|
|
import { ImpersonationService } from '@ghostfolio/api/services/impersonation/impersonation.service'; |
|
|
import { ImpersonationService } from '@ghostfolio/api/services/impersonation/impersonation.service'; |
|
|
import { getIntervalFromDateRange } from '@ghostfolio/common/calculation-helper'; |
|
|
import { getIntervalFromDateRange } from '@ghostfolio/common/calculation-helper'; |
|
|
import { |
|
|
import { |
|
|
|
|
|
DEFAULT_DATE_RANGE, |
|
|
HEADER_KEY_IMPERSONATION, |
|
|
HEADER_KEY_IMPERSONATION, |
|
|
UNKNOWN_KEY |
|
|
UNKNOWN_KEY |
|
|
} from '@ghostfolio/common/config'; |
|
|
} from '@ghostfolio/common/config'; |
|
|
@ -82,7 +83,7 @@ export class PortfolioController { |
|
|
@Query('accounts') filterByAccounts?: string, |
|
|
@Query('accounts') filterByAccounts?: string, |
|
|
@Query('assetClasses') filterByAssetClasses?: string, |
|
|
@Query('assetClasses') filterByAssetClasses?: string, |
|
|
@Query('dataSource') filterByDataSource?: string, |
|
|
@Query('dataSource') filterByDataSource?: string, |
|
|
@Query('range') dateRange: DateRange = 'max', |
|
|
@Query('range') dateRange: DateRange = DEFAULT_DATE_RANGE, |
|
|
@Query('symbol') filterBySymbol?: string, |
|
|
@Query('symbol') filterBySymbol?: string, |
|
|
@Query('tags') filterByTags?: string, |
|
|
@Query('tags') filterByTags?: string, |
|
|
@Query('withMarkets') withMarketsParam = 'false' |
|
|
@Query('withMarkets') withMarketsParam = 'false' |
|
|
@ -321,7 +322,7 @@ export class PortfolioController { |
|
|
@Query('assetClasses') filterByAssetClasses?: string, |
|
|
@Query('assetClasses') filterByAssetClasses?: string, |
|
|
@Query('dataSource') filterByDataSource?: string, |
|
|
@Query('dataSource') filterByDataSource?: string, |
|
|
@Query('groupBy') groupBy?: GroupBy, |
|
|
@Query('groupBy') groupBy?: GroupBy, |
|
|
@Query('range') dateRange: DateRange = 'max', |
|
|
@Query('range') dateRange: DateRange = DEFAULT_DATE_RANGE, |
|
|
@Query('symbol') filterBySymbol?: string, |
|
|
@Query('symbol') filterBySymbol?: string, |
|
|
@Query('tags') filterByTags?: string |
|
|
@Query('tags') filterByTags?: string |
|
|
): Promise<PortfolioDividendsResponse> { |
|
|
): Promise<PortfolioDividendsResponse> { |
|
|
@ -422,7 +423,7 @@ export class PortfolioController { |
|
|
@Query('dataSource') filterByDataSource?: string, |
|
|
@Query('dataSource') filterByDataSource?: string, |
|
|
@Query('holdingType') filterByHoldingType?: string, |
|
|
@Query('holdingType') filterByHoldingType?: string, |
|
|
@Query('query') filterBySearchQuery?: string, |
|
|
@Query('query') filterBySearchQuery?: string, |
|
|
@Query('range') dateRange: DateRange = 'max', |
|
|
@Query('range') dateRange: DateRange = DEFAULT_DATE_RANGE, |
|
|
@Query('symbol') filterBySymbol?: string, |
|
|
@Query('symbol') filterBySymbol?: string, |
|
|
@Query('tags') filterByTags?: string |
|
|
@Query('tags') filterByTags?: string |
|
|
): Promise<PortfolioHoldingsResponse> { |
|
|
): Promise<PortfolioHoldingsResponse> { |
|
|
@ -455,7 +456,7 @@ export class PortfolioController { |
|
|
@Query('assetClasses') filterByAssetClasses?: string, |
|
|
@Query('assetClasses') filterByAssetClasses?: string, |
|
|
@Query('dataSource') filterByDataSource?: string, |
|
|
@Query('dataSource') filterByDataSource?: string, |
|
|
@Query('groupBy') groupBy?: GroupBy, |
|
|
@Query('groupBy') groupBy?: GroupBy, |
|
|
@Query('range') dateRange: DateRange = 'max', |
|
|
@Query('range') dateRange: DateRange = DEFAULT_DATE_RANGE, |
|
|
@Query('symbol') filterBySymbol?: string, |
|
|
@Query('symbol') filterBySymbol?: string, |
|
|
@Query('tags') filterByTags?: string |
|
|
@Query('tags') filterByTags?: string |
|
|
): Promise<PortfolioInvestmentsResponse> { |
|
|
): Promise<PortfolioInvestmentsResponse> { |
|
|
@ -527,7 +528,7 @@ export class PortfolioController { |
|
|
@Query('accounts') filterByAccounts?: string, |
|
|
@Query('accounts') filterByAccounts?: string, |
|
|
@Query('assetClasses') filterByAssetClasses?: string, |
|
|
@Query('assetClasses') filterByAssetClasses?: string, |
|
|
@Query('dataSource') filterByDataSource?: string, |
|
|
@Query('dataSource') filterByDataSource?: string, |
|
|
@Query('range') dateRange: DateRange = 'max', |
|
|
@Query('range') dateRange: DateRange = DEFAULT_DATE_RANGE, |
|
|
@Query('symbol') filterBySymbol?: string, |
|
|
@Query('symbol') filterBySymbol?: string, |
|
|
@Query('tags') filterByTags?: string, |
|
|
@Query('tags') filterByTags?: string, |
|
|
@Query('withExcludedAccounts') withExcludedAccountsParam = 'false' |
|
|
@Query('withExcludedAccounts') withExcludedAccountsParam = 'false' |
|
|
|