From d0eba3d1ca46f15f67fbfc04ee14b19534e61e3b Mon Sep 17 00:00:00 2001 From: Thomas Wiecki Date: Fri, 26 Dec 2014 13:13:53 +0100 Subject: [PATCH] DOC: Fix typo in TradingAlgorithm doc string. --- zipline/algorithm.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/zipline/algorithm.py b/zipline/algorithm.py index 4eb709e4..a28e553e 100644 --- a/zipline/algorithm.py +++ b/zipline/algorithm.py @@ -94,10 +94,10 @@ class TradingAlgorithm(object): A new algorithm could look like this: ``` - from zipline.api import order + from zipline.api import order, symbol def initialize(context): - context.sid = 'AAPL' + context.sid = symbol('AAPL') context.amount = 100 def handle_data(context, data):