Quantopian's community platform is shutting down. Please read this post for more information and download your code.
Back to Community
Does any one know how i can get the net value of my bot?

Does any one know how i can get the net value of my bot? It would also be useful if i could get how much starting cash my bot has in the init function.

2 responses

get_environment has the starting cash

print get_environment('capital_base')

context.portfolio.starting_cash

Click a line number in def initialize. Run. Type context at the prompt follow by [Enter], then click the little triangle, and again on portfolio and account. Those are the two main containers of ready-made variables. For a few more, info on get_environment()