BUG: Various functions were missing from the API.

This commit is contained in:
Thomas Wiecki
2014-12-31 09:43:35 +01:00
parent 994f7ceee5
commit f474ee7eed
2 changed files with 16 additions and 3 deletions
+9 -2
View File
@@ -608,14 +608,21 @@ class TradingAlgorithm(object):
self._recorded_vars[name] = value
@api_method
def symbol(self, symbol_str, as_of_date=None):
def symbol(self, symbol_str):
"""
Default symbol lookup for any source that directly maps the
symbol to the identifier (e.g. yahoo finance).
Keyword argument as_of_date is ignored.
"""
return symbol_str
@api_method
def symbols(self, *args):
"""
Default symbols lookup for any source that directly maps the
symbol to the identifier (e.g. yahoo finance).
"""
return args
@api_method
def order(self, sid, amount,
limit_price=None,