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
2013-06-14 13:13:36 +03:00
committed by Eddie Hebert
parent 8e27cc053c
commit d475766c63
+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)
```