Update history manipulation to use /portfolio