MAINT: Adds symbol to the list of api_methods.

This commit is contained in:
llllllllll
2014-08-06 18:18:56 -04:00
parent d73d2336ac
commit 90405b1c99
2 changed files with 9 additions and 9 deletions
+9
View File
@@ -486,6 +486,15 @@ class TradingAlgorithm(object):
for name, value in chain(positionals, iteritems(kwargs)):
self._recorded_vars[name] = value
@api_method
def symbol(self, symbol_str, as_of_date=None):
"""
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 order(self, sid, amount,
limit_price=None,