Quantopian's community platform is shutting down. Please read this post for more information and download your code.
Back to Community
number of shares sold

I am closing out my long position using order_target(stock, 0). How can I log how many shares are sold off to close the position?

1 response

Can start with track_orders() and adapt perhaps.