GT::OrderFactory - Create orders

An OrderFactory is used to create an order when a system has detected an opportunity. This order will then be sent to the PortfolioManager by the SystemManager.

$of->create_buy_order($calc, $i, $sys_manager, $pf_manager)
$of->create_sell_order($calc, $i, $sys_manager, $pf_manager)

Those functions are called by the systems to launch an order. The SystemManager delegates this to an Order object. It will use the Order object given by set_default_order() or it will fallback to the order suggested by the system.