Merge pull request #67 from quantopian/fawce_alpha1

removed logging of zero volume orders.
This commit is contained in:
fawce
2012-06-18 16:15:28 -07:00
2 changed files with 0 additions and 16 deletions
-2
View File
@@ -287,8 +287,6 @@ class PerformanceTracker(object):
if self.results_socket:
msg = zp.PERF_FRAME(self.to_dict())
self.results_socket.send(msg)
else:
log.debug(self.to_dict())
#
if self.trading_environment.max_drawdown:
-14
View File
@@ -151,20 +151,6 @@ class TransactionSimulator(object):
dt.replace(tzinfo = pytz.utc),
direction
)
elif len(orders) > 0:
warning = """
Calculated a zero volume transaction on trade:
{event}
for orders:
{orders}
"""
warning = warning.format(
event=str(event),
orders=str(orders)
)
LOGGER.warn(warning)
return None
def create_transaction(self, sid, amount, price, dt, direction):
self.txn_count += 1