Components and page: Portfolio
justchrister opened this issue · comments
Purpose
For users to get a quick insight into how much their investments are currently worth, and the impact it has made. It should inspire further investments, and sharing it with family and friends.
It's calculated based on buy orders in the exchange service, and the any amount in the accountBalance service.
To-do
- Design portfolio page
- Component: chart with filters (component)
- Calls to action (increase your subscription, invest some more etc)
- Co2 Calculations (3 cars, planerides etc) with beautiful illustrations
Resiliency
Error handling
If there are no values in the table for the actual
Fallbacks
Decoupling
Save the values to its own supbase table
Wireframes
- Chart
- Number that is ticking upward
- Data filters
- Manage reoccurring payments
- Illustrations of the environmental impact
API
We need to create a microservice (based on standard scaffolding) that lets you:
- getPortfolioValue (from date, to date, (if null send latest value), interval=hours, days, weeks, months, quarters, includeForecast, forecastDays (forecast should do a call to getPortfolioForecast))
- getPortfolioForecast (based on average returns from