The portfolio information is not updated right after a buy/sell.
However, after sometime it does get updated. Trying to understand if there is some sort of check to be done before looking at the Portfolio details.
For example:
I expect to see:
2016-10-19 09:31 PRINT BUY:
2016-10-19 09:31 PRINT Position Count: 1
But I see:
2016-10-19 09:31 PRINT BUY:
2016-10-19 09:31 PRINT Position Count: 0
Just trying to understand what's going on.
Output:
2016-10-19 09:31 PRINT BUY:
2016-10-19 09:31 PRINT Position Count: 0
2016-10-19 09:31 PRINT Portfolio Cash: 1000.0
2016-10-19 09:31 PRINT Portfolio Value: 1000.0
2016-10-19 15:30 PRINT SELL:
2016-10-19 15:30 PRINT Position Count: 1
2016-10-19 15:30 PRINT Portfolio Cash: 411.724999963
2016-10-19 15:30 PRINT Portfolio Value: 997.324999963
2016-10-20 09:31 PRINT BUY:
2016-10-20 09:31 PRINT Position Count: 0
2016-10-20 09:31 PRINT Portfolio Cash: 996.499998897
2016-10-20 09:31 PRINT Portfolio Value: 996.499998897
2016-10-20 15:30 PRINT SELL:
2016-10-20 15:30 PRINT Position Count: 1
2016-10-20 15:30 PRINT Portfolio Cash: 412.049998831
2016-10-20 15:30 PRINT Portfolio Value: 996.999998831