Artificial Intelligence, Sentiment Analysis, Finance, Stock Market, Python.
log function defined earlier, it will notify you whenever a trade order (buying or selling stocks) is executed: def notify_order(self, order): if order.status in [order.Submitted, order.Accepted]: # Buy/Sell order submitted/accepted to/by broker - Nothing to do return # Check if an order has been