I cannot find an easy way to see a Position’s ROI AFTER buying and selling a position. What is the easiest way to see this?
John Paul
I cannot find an easy way to see a Position’s ROI AFTER buying and selling a position. What is the easiest way to see this?
John Paul
Hi John, Alpaca doesn’t display the ROI for individual closed positions like it does for open positions, but you can use a simple script to extract individual ROI, and then print them to a CSV or database table.
Try this script, just put in your API info and run it locally. It should print a CSV called “TradeROI.csv” to the same directory you run the script from: