Alpaca SDK Version
There is discrepancy in my portfolio history data i.e. if I sum the profit/loss for the last month, I get $6752. I started with $100k (paper trading) and now (after 1 month) the Equity shows $116k. So what is right? Where did they get the $116k from? Please check the data in my screenshot and let me know if it makes sense - how can I test my algorithm when I am totaly unsure of the profit/loss it generates.
Paper or Live Tradng?
Get historic P/L:
hist= api.get_portfolio_history(period=“1M”, timeframe=“1D”)
Sum up P/L which does not match current Equity: