chore: sync brokerage accounts contract (WealthLedger/backend#138)
This commit is contained in:
Vendored
+42
-25
@@ -909,12 +909,54 @@ export interface components {
|
||||
version: number;
|
||||
archived?: boolean;
|
||||
};
|
||||
PortfolioStructureCategoryDto: {
|
||||
/** @enum {string} */
|
||||
type: "STOCK" | "BOND" | "OTHER" | "CASH";
|
||||
/** @description Exact known value as a decimal string. */
|
||||
value: string;
|
||||
/** @description Percentage including cash, rounded to six decimal places. Null for incomplete, negative or zero-total compositions. */
|
||||
sharePercent: string | null;
|
||||
};
|
||||
PortfolioStructureCurrencyDto: {
|
||||
currency: string;
|
||||
totalValue: string;
|
||||
/** @description Any negative constituent, even if netted positive. */
|
||||
hasNegativeValues: boolean;
|
||||
categories: components["schemas"]["PortfolioStructureCategoryDto"][];
|
||||
};
|
||||
PortfolioUnvaluedCategoryDto: {
|
||||
/** @enum {string} */
|
||||
type: "STOCK" | "BOND" | "OTHER";
|
||||
count: number;
|
||||
};
|
||||
PortfolioStructureDto: {
|
||||
currencies: components["schemas"]["PortfolioStructureCurrencyDto"][];
|
||||
/** @description Positions without current value and known valuation currency. Shares are unavailable across all currencies when nonempty. */
|
||||
unvaluedCategories: components["schemas"]["PortfolioUnvaluedCategoryDto"][];
|
||||
};
|
||||
UnrealizedReturnDto: {
|
||||
currency: string;
|
||||
/** @example 12.345678901 */
|
||||
absolute: string;
|
||||
/** @example 100.00 */
|
||||
costBasis: string;
|
||||
/** @example 12.34 */
|
||||
percent: string | null;
|
||||
partial: boolean;
|
||||
};
|
||||
PortfolioSummaryDto: {
|
||||
totalsByCurrency: components["schemas"]["MoneyDto"][];
|
||||
cashBalances: components["schemas"]["MoneyDto"][];
|
||||
structure: components["schemas"]["PortfolioStructureDto"];
|
||||
unrealizedReturnByCurrency: components["schemas"]["UnrealizedReturnDto"][];
|
||||
/** @description Number of non-zero stock positions, not the number of units. */
|
||||
stockPositionCount: number;
|
||||
/** @description Number of non-zero bond positions, not the number of units. */
|
||||
bondPositionCount: number;
|
||||
/** @description Number of non-zero fund positions, not the number of units. */
|
||||
fundPositionCount: number;
|
||||
/** @description Number of all non-zero positions, not the number of units. */
|
||||
totalPositionCount: number;
|
||||
};
|
||||
BrokerageAccountDto: {
|
||||
id: string;
|
||||
@@ -1026,31 +1068,6 @@ export interface components {
|
||||
ticker: string | null;
|
||||
logoName: string | null;
|
||||
};
|
||||
PortfolioStructureCategoryDto: {
|
||||
/** @enum {string} */
|
||||
type: "STOCK" | "BOND" | "OTHER" | "CASH";
|
||||
/** @description Exact known value as a decimal string. */
|
||||
value: string;
|
||||
/** @description Percentage including cash, rounded to six decimal places. Null for incomplete, negative or zero-total compositions. */
|
||||
sharePercent: string | null;
|
||||
};
|
||||
PortfolioStructureCurrencyDto: {
|
||||
currency: string;
|
||||
totalValue: string;
|
||||
/** @description Any negative constituent, even if netted positive. */
|
||||
hasNegativeValues: boolean;
|
||||
categories: components["schemas"]["PortfolioStructureCategoryDto"][];
|
||||
};
|
||||
PortfolioUnvaluedCategoryDto: {
|
||||
/** @enum {string} */
|
||||
type: "STOCK" | "BOND" | "OTHER";
|
||||
count: number;
|
||||
};
|
||||
PortfolioStructureDto: {
|
||||
currencies: components["schemas"]["PortfolioStructureCurrencyDto"][];
|
||||
/** @description Positions without current value and known valuation currency. Shares are unavailable across all currencies when nonempty. */
|
||||
unvaluedCategories: components["schemas"]["PortfolioUnvaluedCategoryDto"][];
|
||||
};
|
||||
PortfolioDto: {
|
||||
/** Format: date-time */
|
||||
lastSuccessfulAt: string;
|
||||
|
||||
Reference in New Issue
Block a user