DOC: Fix docstring for TradingAlgorithm

Fix the example given in the class docstring as the original didn't work
on REPL.
This commit is contained in:
Matti Hanninen authored and Eddie Hebert committed 2013-06-14 15:43:40 -04:00
1 parent 8e27cc053c
commit d475766c63
1 file changed
+3 -2
+3 -2
View File
@@ -63,10 +63,11 @@ class TradingAlgorithm(object):
A new algorithm could look like this:
```
class MyAlgo(TradingAlgorithm):
def initialize(amount):
def initialize(self, sids, amount):
self.sids = sids
self.amount = amount
def handle_data(data):
def handle_data(self, data):
sid = self.sids[0]
self.order(sid, amount)
```