* Add createdAt to snapshot and public portfolio endpoint response * Update changelog --------- Co-authored-by: Verbindolai <nikolaiwieczorek@web.de> Co-authored-by: Thomas Kaul <4159106+dtslvr@users.noreply.github.com>
44 lines
958 B
TypeScript
44 lines
958 B
TypeScript
import {
|
|
PortfolioPosition,
|
|
PortfolioSummary
|
|
} from '@ghostfolio/common/interfaces';
|
|
import { Market, MarketAdvanced } from '@ghostfolio/common/types';
|
|
|
|
export interface PortfolioDetails {
|
|
accounts: {
|
|
[id: string]: {
|
|
balance: number;
|
|
currency: string;
|
|
name: string;
|
|
valueInBaseCurrency: number;
|
|
valueInPercentage?: number;
|
|
};
|
|
};
|
|
createdAt: Date;
|
|
holdings: { [symbol: string]: PortfolioPosition };
|
|
markets?: {
|
|
[key in Market]: {
|
|
id: Market;
|
|
valueInBaseCurrency?: number;
|
|
valueInPercentage: number;
|
|
};
|
|
};
|
|
marketsAdvanced?: {
|
|
[key in MarketAdvanced]: {
|
|
id: MarketAdvanced;
|
|
valueInBaseCurrency?: number;
|
|
valueInPercentage: number;
|
|
};
|
|
};
|
|
platforms: {
|
|
[id: string]: {
|
|
balance: number;
|
|
currency: string;
|
|
name: string;
|
|
valueInBaseCurrency: number;
|
|
valueInPercentage?: number;
|
|
};
|
|
};
|
|
summary?: PortfolioSummary;
|
|
}
|