export const mockPortfolios = [ { id: 1, name: 'Основной портфель', currency: 'RUB', createdAt: '2024-01-01T00:00:00Z', updatedAt: '2024-06-01T00:00:00Z', totalValue: 285000, positionCount: 5, shareCount: 3, bondCount: 2, description: null, }, { id: 2, name: 'ИИС', currency: 'RUB', createdAt: '2024-03-15T00:00:00Z', updatedAt: '2024-06-10T00:00:00Z', totalValue: 150000, positionCount: 3, shareCount: 2, bondCount: 1, description: 'Индивидуальный инвестиционный счёт', }, ] export const mockPositions = [ { id: 1, secid: 'SBER', shortName: 'Сбер', type: 'share', quantity: 100, buyPrice: 275, currentPrice: 289.5, totalCost: 27500, currentValue: 28950, weightPercent: 10.2, pnl: 1450, pnlPercent: 5.27, dividendIncome: 3500, totalReturn: 4950, totalReturnPercent: 18, change: 14.5, changePercent: 5.27, notes: null, tags: ['DIVIDEND', 'GROWTH'], }, { id: 2, secid: 'VTBR', shortName: 'ВТБ', type: 'share', quantity: 5000, buyPrice: 0.021, currentPrice: 0.0234, totalCost: 105, currentValue: 117, weightPercent: 0.04, pnl: 12, pnlPercent: 11.43, dividendIncome: 0, totalReturn: 12, totalReturnPercent: 11.43, change: 0.0024, changePercent: 11.43, notes: null, tags: ['SPECULATIVE'], }, { id: 3, secid: 'SU26238RMFS5', shortName: 'ОФЗ 26238', type: 'bond', quantity: 10, buyPrice: 97, currentPrice: 98.5, totalCost: 9700, currentValue: 9850, weightPercent: 3.5, pnl: 150, pnlPercent: 1.55, dividendIncome: 0, totalReturn: 150, totalReturnPercent: 1.55, change: 1.5, changePercent: 1.55, yieldToMaturity: 8.2, duration: 3.5, couponValue: 36.9, couponPercent: 7.5, nextCouponDate: '2024-07-15', matDate: '2027-05-15', accruedInt: 8.45, bid: 98.3, offer: 98.6, couponPeriod: 182, bondType: 'ОФЗ', }, ] export const mockPortfolioDetail = { id: 1, name: 'Основной портфель', currency: 'RUB', description: null, createdAt: '2024-01-01T00:00:00Z', updatedAt: '2024-06-01T00:00:00Z', positions: mockPositions, totalValue: 285000, analytics: { totalInvested: 250000, totalValue: 285000, totalPnl: 35000, totalPnlPercent: 14, totalDividends: 5000, totalReturn: 40000, totalReturnPercent: 16, positionCount: 5, weightedYield: null, }, } export const mockAnalytics = { positions: mockPositions, summary: { totalInvested: 250000, totalValue: 285000, totalPnl: 35000, totalPnlPercent: 14, totalDividends: 5000, totalReturn: 40000, totalReturnPercent: 16, positionCount: 5, weightedYield: 7.5, }, }