You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Ghostfolio/libs/common/src/lib/interfaces/responses/public-portfolio-response.i...

39 lines
790 B

import { PortfolioPosition } from '../portfolio-position.interface';
export interface PublicPortfolioResponse extends PublicPortfolioResponseV1 {
alias?: string;
hasDetails: boolean;
holdings: {
[symbol: string]: Pick<
PortfolioPosition,
| 'allocationInPercentage'
| 'countries'
| 'currency'
| 'dataSource'
| 'dateOfFirstActivity'
| 'markets'
| 'name'
| 'netPerformancePercentWithCurrencyEffect'
| 'sectors'
| 'symbol'
| 'url'
| 'valueInBaseCurrency'
| 'valueInPercentage'
>;
};
}
interface PublicPortfolioResponseV1 {
performance: {
'1d': {
relativeChange: number;
};
max: {
relativeChange: number;
};
ytd: {
relativeChange: number;
};
};
}