Alpaca API's endpoints can be used to calculate the daily profit/loss of your portfolio. Please visit this thread at the Alpaca forum to get more information.
Example on viewing gain/loss of your portfolio
You can use the information from the account endpoint to do things like calculating the daily profit or loss of your account. Example in python: import alpaca_trade_api as tradeapi if __name__ == â__main__â: ââłâ With the Alpaca API, you can check on your daily profit or loss by comparâŚ

