quantopian/zipline — pull request #342 by humdings (2014-06-02 21:08:15+00:00)
Title: MAINT: Refactored target order methods

MAINT: Refactored target order methods

Refactored the target order methods to separate their logic from the
other order methods.

This makes order_target the only target method that calls order()
directly.

order_target_value is passed to order_target instead of order_value.

order_target_percent is passed to order_target_value rather than
order_value.

This simplified the code and decouples the logic of target orders from
the other order methods. Allows the target order methods to be
developed independently from order_value and order_percent.