From 8f3671bf24659bbffd8e3e9196c7293e5155a5e2 Mon Sep 17 00:00:00 2001 From: Thomas Wiecki Date: Fri, 26 Dec 2014 13:12:52 +0100 Subject: [PATCH] DOC: Fix typo in TradingAlgorithm doc string. --- zipline/algorithm.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/zipline/algorithm.py b/zipline/algorithm.py index 1c17bde9..4eb709e4 100644 --- a/zipline/algorithm.py +++ b/zipline/algorithm.py @@ -100,7 +100,7 @@ class TradingAlgorithm(object): context.sid = 'AAPL' context.amount = 100 - def handle_data(self, data): + def handle_data(context, data): sid = context.sid amount = context.amount order(sid, amount)