This PR exposes the historical 7-day avg standard deviation and historical returns to the portfolio endpoint.
The volatility property of each asset in this endpoint response will be replaced with metrics containing the historical std_dev as volatility and returns as returns as timeseries.
Further Improvements
[ ] Frontend changes to plot
The graph on the frontend will need to also plot these timeseries on the three timeframes (1-yr, 3-months, 1-month).
Summary
Fixes #80
Details
This PR exposes the historical 7-day avg standard deviation and historical returns to the
portfolio
endpoint.The
volatility
property of each asset in this endpoint response will be replaced withmetrics
containing the historical std_dev asvolatility
and returns asreturns
as timeseries.Further Improvements
The graph on the frontend will need to also plot these timeseries on the three timeframes (1-yr, 3-months, 1-month).