Is there a way to easily calculate profit/loss for individual trades?
I know there are two endpoints to grab historical activity/order data
I am wondering how to correlate a buy/sell together. For instance, if I buy 2 shares of Delta stock (DAL) on 12/1, and sell 1 share on 2/3, I would like to know the buy date, buy price, sell date, and sell price for that trade of 1 share of Delta stock.
From what I have seen, there are individual Orders for buy and sell, but no way to correlate the pair together?