Hi guys,
I am writing an algo and want to check the filled price, such that if current price is DELTA below the filled price, I will initiate stop loss. I was using 'cost_basis' from positions object,
f_cost = self.portfolio.positions[sid]['cost_basis']
I don't think this is correct though, see,
{'GOOG': Position({'amount': 9, 'last_sale_price': nan, 'cost_basis': nan, 'sid': 'GOOG'})}
Can you guys help?
Thank you.