From c64a585e54b4aaf1a82cb3615a715c6f3f4e4493 Mon Sep 17 00:00:00 2001 From: Richard Frank Date: Wed, 7 Aug 2013 16:09:55 -0400 Subject: [PATCH] BUG: TransactionVolumeExceedsOrder was referenced but not defined --- zipline/errors.py | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/zipline/errors.py b/zipline/errors.py index c7859b49..0f75bd6b 100644 --- a/zipline/errors.py +++ b/zipline/errors.py @@ -104,6 +104,15 @@ Transaction {txn} not in same direction as corresponding order {order}. class TransactionWithNoAmount(ZiplineError): + """ + Raised if a transact call returns a transaction with zero amount. + """ + msg = """ +Transaction {txn} has an amount of zero. +""".strip() + + +class TransactionVolumeExceedsOrder(ZiplineError): """ Raised if a transact call returns a transaction with a volume greater than the corresponding order.