Quantopian's community platform is shutting down. Please read this post for more information and download your code.
Back to Community
How to get each stock's value or return.

e.g. I buy or short 4 stocks, the total return is 12%.
I want to know the return of each stock to analyze them.
How to do this? Which API can help this?

1 response

I think you can do this by importing the backtest into a research notebook.