@cranberry-money/shared-constants
Version:
Shared constants for Blueberry platform
27 lines • 1.33 kB
JavaScript
export const SNAPSHOT_REASON_TRADE = 'TRADE';
export const SNAPSHOT_REASON_REBALANCE = 'REBALANCE';
export const SNAPSHOT_REASON_VALUATION = 'VALUATION';
export const SNAPSHOT_REASON_AUDIT = 'AUDIT';
export const SNAPSHOT_REASON = {
TRADE: SNAPSHOT_REASON_TRADE,
REBALANCE: SNAPSHOT_REASON_REBALANCE,
VALUATION: SNAPSHOT_REASON_VALUATION,
AUDIT: SNAPSHOT_REASON_AUDIT,
};
export const SNAPSHOT_REASON_LABEL_TRADE = 'Trade Execution';
export const SNAPSHOT_REASON_LABEL_REBALANCE = 'Portfolio Rebalance';
export const SNAPSHOT_REASON_LABEL_VALUATION = 'Valuation Update';
export const SNAPSHOT_REASON_LABEL_AUDIT = 'Audit Record';
export const SNAPSHOT_REASON_LABELS = {
[SNAPSHOT_REASON.TRADE]: SNAPSHOT_REASON_LABEL_TRADE,
[SNAPSHOT_REASON.REBALANCE]: SNAPSHOT_REASON_LABEL_REBALANCE,
[SNAPSHOT_REASON.VALUATION]: SNAPSHOT_REASON_LABEL_VALUATION,
[SNAPSHOT_REASON.AUDIT]: SNAPSHOT_REASON_LABEL_AUDIT,
};
export const SNAPSHOT_REASON_OPTIONS = [
{ value: SNAPSHOT_REASON_TRADE, label: SNAPSHOT_REASON_LABEL_TRADE },
{ value: SNAPSHOT_REASON_REBALANCE, label: SNAPSHOT_REASON_LABEL_REBALANCE },
{ value: SNAPSHOT_REASON_VALUATION, label: SNAPSHOT_REASON_LABEL_VALUATION },
{ value: SNAPSHOT_REASON_AUDIT, label: SNAPSHOT_REASON_LABEL_AUDIT },
];
//# sourceMappingURL=holdings.js.map