Summary
In this chapter, we really went for the proverbial jugular of our Robo-advisor. While many consider that rebalancing or financial planning is what defines a Robo-advisor, most of your effort and headaches will focus on order management. There’s no way around it; it’s a beast.
We started by introducing some key terms and concepts required for implementing basic order management processes. We established that fractional trading is the way to go, as it enables us to trade with effectively no minimum limits on orders.
To get hands-on with orders, we started with some updates to previous classes to make sure we can connect our Goals, portfolios, and accounts. We then set up the basic Order
class and added some helper class methods for checking whether orders were valid. To do that, we added a handy Python module for checking market opening hours.
Once we had a basic order in play, we went right into splitting orders as part of a seven-step order management...