Get_portfolio_history returns wrong data

The get_portfolio_history API returns wrong data, which can be observed in both API and web UI.

I have 31K as my total equity but the portfolio history shows 37K.

It seems this is a known issue according to the documentation. Hopefully it can be fixed soon.