DOC: Fix docstring for TradingAlgorithm

Get the amount from the algorithm object instead of referring to
a (undefined) global.
This commit is contained in:
Matti Hanninen
2013-06-14 15:43:51 -04:00
committed by Eddie Hebert
parent d475766c63
commit 43d3757004
+1
View File
@@ -69,6 +69,7 @@ class TradingAlgorithm(object):
def handle_data(self, data):
sid = self.sids[0]
amount = self.amount
self.order(sid, amount)
```
To then to run this algorithm: