Files
catalyst/zipline
Scott Sanderson 49eaeeb6ae BUG: Apply integer truncation to order amounts earlier in the pipeline.
Truncate non-integer order amounts in `TradingAlgorithm.order` instead of
`Blotter.order`.  This fixes an issue where non-integer orders coming out of
order_value can spuriously trigger a `LongOnly` trading guard.

Example:

sid.price == 2.0
order_value(sid, 5) -> order(sid, 2.5) -> truncated to order(sid, 2.0)
order_value(sid, -5) -> order(sid, -2.5) -> LongOnlyViolation b/c 2.0 - 2.5 < 0
2014-06-09 11:42:43 -04:00
..
2014-04-10 10:57:12 -04:00
2014-05-07 15:34:41 -04:00
2014-04-25 18:29:49 -04:00
2014-03-26 20:46:20 +09:00
2014-05-07 15:34:41 -04:00
2014-03-26 17:52:35 +09:00