mirror of
https://github.com/wassname/catalyst.git
synced 2026-08-02 12:30:45 +08:00
DOC: Fix docstring for TradingAlgorithm
Get the amount from the algorithm object instead of referring to a (undefined) global.
This commit is contained in:
committed by
Eddie Hebert
parent
d475766c63
commit
43d3757004
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user